function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function unSearchLayer(){
  document.all.bodyly.style.display='none';
  document.getElementById("SearchDiv").style.display='none';
  } 
function JumpSearchLayer(){
document.all.bodyly.style.display="block";   
document.all.bodyly.style.width=document.body.clientWidth;   
document.all.bodyly.style.height=1750;   
document.getElementById("SearchDiv").style.display='block';
document.all.SearchDiv.style.top=document.documentElement.scrollTop+50;   
document.all.SearchDiv.style.left=document.body.clientWidth/2-370;  
var xmlhttp;
try
{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch (e){try{xmlhttp=new XMLHttpRequest();}
catch (e){}
}                                //escape() 函数可对字符串进行编码，这样就可以在所有的计算机上读取该字符串
}
xmlhttp.open("get","vip/xuanze_index.asp");
xmlhttp.onreadystatechange=function()
{if(4==xmlhttp.readyState){
if(200==xmlhttp.status){msg=xmlhttp.responseText;}
else{msg="网络链接失败！";}
}else{msg="<img src='vip;/images/loing.gif'>数据读取中，请稍后…";
}
var ch=document.getElementById("SearchLayer");
ch.innerHTML=msg; 
}
xmlhttp.send(null); 
return false;
} 
