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 SetLayerText(oldLayer, newLayer) {

	if ((objOld=MM_findObj(oldLayer))==null) {

		alert("no older layer: " + olderLayer);
		return false;
	}
	if ((objNew=MM_findObj(newLayer))!=null) {
		objOld.innerHTML = unescape(objNew.innerHTML);
	} else {
		alert("no new layer " + newLayer);
		return false;
	}
}


function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}



   function searchit(){
   
   strquery=self.document.searchfm.keyinput.value;
   //alert("strquery="+strquery);
   strquery.replace(" ","+");
   //alert("strquery="+strquery);
  if (self.document.searchfm.siteselect.selectedIndex==0) {
  
    //document.forms(0).target="_blank"; 
    //self.document.location="/inform/informframe800.jsp?Id=homepage&key=" + strquery ;
    window.open("/bazxnew/two/listmore.jsp?search="+strquery ,"_blank");
    //document.forms(0).submit();
    //alert("???????!");
  }
   if (self.document.searchfm.siteselect.selectedIndex==1) {
	//1.????????
    //self.document.location="http://cns.3721.com/cns.dll?name=" + strquery + "&act=info&coagent=szptt";
    self.document.location="http://sbox.3721.com/mainbox.htm?str=" + strquery + "&userid=50&username=szzc&coagent=3721se";
  }  

    if (self.document.searchfm.siteselect.selectedIndex==2) {
	//2.Google  
   self.document.location="http://www.google.com/search?q=" + strquery +  "&hl=zh-CN&btnG=Google??&lr="

   }

   if (self.document.searchfm.siteselect.selectedIndex==3) {
	//3.yahoo
    self.document.location="http://search.chinese.yahoo.com/search/gb?p="+strquery;
    
  }

  if (self.document.searchfm.siteselect.selectedIndex==4) {
	//4.?? 
   self.document.location="http://site.search.sohu.com/sitesearch.jsp?key_word=" + strquery +  "&page_index=0";

   }
  if (self.document.searchfm.siteselect.selectedIndex==5) {
	//5.??
   self.document.location="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=" + strquery + "&_andor=and&_ss=sina";

   }
  if (self.document.searchfm.siteselect.selectedIndex==6) {
	//6.21CN
   self.document.location="http://search.21cn.com/result.php?lm=0&sr=2&si=gi&cl=3&ct=0&word=" + strquery + "&tn=21cndir";

   }   
  if (self.document.searchfm.siteselect.selectedIndex==7) {
	//7.??  
   self.document.location="http://nisearch.163.com/Search?q=" + strquery;

   }
  if (self.document.searchfm.siteselect.selectedIndex==8) {
	//9.Yahoo
   self.document.location="http://search.yahoo.com/bin/search?p="+strquery;

   }

}


   function searchit_self(){
   
   strquery=self.document.searchfm.keyinput.value;
   //alert("strquery="+strquery);
   strquery.replace(" ","+");
   //alert("strquery="+strquery);
  if (self.document.searchfm.siteselect.selectedIndex==0) {
  
    //document.forms(0).target="_blank"; 
    //self.document.location="/inform/informframe800.jsp?Id=homepage&key=" + strquery ;
    window.open("/bazxnew/two/listmore.jsp?search="+strquery ,"_self");
    //document.forms(0).submit();
    //alert("???????!");
  }
   if (self.document.searchfm.siteselect.selectedIndex==1) {
	//1.????????
    //self.document.location="http://cns.3721.com/cns.dll?name=" + strquery + "&act=info&coagent=szptt";
    self.document.location="http://sbox.3721.com/mainbox.htm?str=" + strquery + "&userid=50&username=szzc&coagent=3721se";
  }  

    if (self.document.searchfm.siteselect.selectedIndex==2) {
	//2.Google  
   self.document.location="http://www.google.com/search?q=" + strquery +  "&hl=zh-CN&btnG=Google??&lr="

   }

   if (self.document.searchfm.siteselect.selectedIndex==3) {
	//3.yahoo
    self.document.location="http://search.chinese.yahoo.com/search/gb?p="+strquery;
    
  }

  if (self.document.searchfm.siteselect.selectedIndex==4) {
	//4.?? 
   self.document.location="http://site.search.sohu.com/sitesearch.jsp?key_word=" + strquery +  "&page_index=0";

   }
  if (self.document.searchfm.siteselect.selectedIndex==5) {
	//5.??
   self.document.location="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=" + strquery + "&_andor=and&_ss=sina";

   }
  if (self.document.searchfm.siteselect.selectedIndex==6) {
	//6.21CN
   self.document.location="http://search.21cn.com/result.php?lm=0&sr=2&si=gi&cl=3&ct=0&word=" + strquery + "&tn=21cndir";

   }   
  if (self.document.searchfm.siteselect.selectedIndex==7) {
	//7.??  
   self.document.location="http://nisearch.163.com/Search?q=" + strquery;

   }
  if (self.document.searchfm.siteselect.selectedIndex==8) {
	//9.Yahoo
   self.document.location="http://search.yahoo.com/bin/search?p="+strquery;

   }

}


