﻿var tPopWait=50;
var tPopShow=6000;
var showPopStep=20;
var popOpacity=95;
var tfontcolor="#000000";
var tbgcolor="#ffffe1";
var tbordercolor="#666666";

var sPop=null,curShow=null,tFadeOut=null,tFadeIn=null,tFadeWaiting=null;

document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {  background-color: " + tbgcolor + ";color:" + tfontcolor + "; border: 1px " + tbordercolor + " solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");

function showPopupText()
{
  var o=event.srcElement;
  MouseX=event.x;
  MouseY=event.y;
  if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
  //if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
  if(o.dypop!=sPop)
  {
    sPop=o.dypop;
    clearTimeout(curShow);
    clearTimeout(tFadeOut);
    clearTimeout(tFadeIn);
    clearTimeout(tFadeWaiting);  
    if(sPop==null || sPop=="")
    {
      dypopLayer.innerHTML="";
      dypopLayer.style.filter="Alpha()";
      dypopLayer.filters.Alpha.opacity=0;  
    }
    else
    {
      if(o.dyclass!=null) popStyle=o.dyclass 
      else popStyle="cPopText";
      curShow=setTimeout("showIt()",tPopWait);
    }
  }
}

function showIt()
{
  dypopLayer.className=popStyle;
  dypopLayer.innerHTML=sPop;
  popWidth=dypopLayer.clientWidth;
  popHeight=dypopLayer.clientHeight;
  if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
    else popLeftAdjust=0;
  if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
    else popTopAdjust=0;
  dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
  dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
  dypopLayer.style.filter="Alpha(Opacity=0)";
  fadeOut();
}

function fadeOut(){
  if(dypopLayer.filters.Alpha.opacity<popOpacity)
  {
    dypopLayer.filters.Alpha.opacity+=showPopStep;
    tFadeOut=setTimeout("fadeOut()",1);
  }
  else
  {
    dypopLayer.filters.Alpha.opacity=popOpacity;
    tFadeWaiting=setTimeout("fadeIn()",tPopShow);
  }
}

function fadeIn()
{
  if(dypopLayer.filters.Alpha.opacity>0)
  {
    dypopLayer.filters.Alpha.opacity-=1;
    tFadeIn=setTimeout("fadeIn()",1);
  }
}

document.onmouseover=showPopupText;

function GetSeenum(st1,st2,st3) 
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","GetSeenum.asp?st1="+st1+"&st2="+st2+"&st3="+st3,false); 
oBao.send(); 
document.getElementById("info").innerHTML=oBao.responseText 
} 

function GetUserOrder1(st1) 
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","GetUserOrder.asp?s=1&st1="+st1,false); 
oBao.send(); 
document.getElementById("orderinfo1").innerHTML=oBao.responseText 
} 

function GetUserOrder2(st1) 
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","GetUserOrder.asp?s=2&st1="+st1,false); 
oBao.send(); 
document.getElementById("orderinfo2").innerHTML=oBao.responseText 
} 

function GetUserOrder3(st1) 
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","GetUserOrder.asp?s=3&st1="+st1,false); 
oBao.send(); 
document.getElementById("orderinfo3").innerHTML=oBao.responseText 
} 

function GetUserinfo(st1,st2) 
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","GetUserinfo.asp?st1="+st1+"&st2="+st2,false); 
oBao.send(); 
document.getElementById("userinfo").innerHTML=oBao.responseText 
} 

function Get16(st1) 
{
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","Get16.asp?st1="+st1,false); 
oBao.send(); 
document.getElementById("16info").innerHTML=oBao.responseText 
} 

function userchqx(st1)
{
if(st1!=-1){
var oBao = new ActiveXObject("Microsoft.XMLHTTP"); 
oBao.open("POST","Getuserqx.asp?st1="+st1,false); 
oBao.setRequestHeader("Content-Type","text/xml");
oBao.setRequestHeader("Content-Type","utf-8");
oBao.send(); 
var ReturnValue=oBao.responseText;
var re = /<meta http-equiv=\"Content-Type\" content=\"text\/html\; charset=utf-8\">/g
var idtemp = "";
ReturnValue = ReturnValue.replace(re,idtemp).replace(/\r/g,idtemp).replace(/\n/g,idtemp);
if (ReturnValue==1){
location.replace("error.asp?i=14");
}
if (ReturnValue==2){
location.replace("error.asp?i=15");
}
}
}

function GetGGAD(st1)
{
if(st1!=-1){
if(st1==7 || st1==8 || st1==9 || st1==13 || st1==1001 || st1==15 || st1==17){
specialcode="<table align=\"center\" border=\"0\" width=\"770\" cellspacing=\"0\" cellpadding=\"0\" bgColor=\"#ffffff\">\n";
specialcode=specialcode+"	<tr>\n";
specialcode=specialcode+"		<td align=\"center\"><script type=\"text\/javascript\"><\!--\n";
specialcode=specialcode+"google_ad_client = \"pub-2421213032676833\"\;\n";
specialcode=specialcode+"\/* 728x90, 创建于 09-11-6 *\/\n";
specialcode=specialcode+"google_ad_slot = \"3808869782\"\;\n";
specialcode=specialcode+"google_ad_width = 728\;\n";
specialcode=specialcode+"google_ad_height = 90\;\n";
specialcode=specialcode+"\/\/-->\n";
specialcode=specialcode+"</script>\n";
specialcode=specialcode+"<script type=\"text\/javascript\"\n";
specialcode=specialcode+"src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
specialcode=specialcode+"</script></td>\n";
specialcode=specialcode+"	</tr>\n";
specialcode=specialcode+"</table>\n";
specialcode=specialcode+"<table border=\"0\" width=\"780\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#FFFFFF\">\n";
specialcode=specialcode+"	<tr>\n";
specialcode=specialcode+"		<td width=\"5\"></td>\n";
specialcode=specialcode+"		<td width=\"770\"><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
specialcode=specialcode+"			<tr>\n";
specialcode=specialcode+"				<td height=\"5\"></td>\n";
specialcode=specialcode+"			</tr>\n";
specialcode=specialcode+"		</table></td>\n";
specialcode=specialcode+"		<td width=\"5\"></td>\n";
specialcode=specialcode+"	</tr>\n";
specialcode=specialcode+"</table>\n";
document.write(specialcode);
}}
}