﻿function menu_dturn(thisObj,Num){
	if(thisObj.className =="omover")return;
	var liObj = thisObj.parentNode.id;
	var tabList = document.getElementById(liObj).getElementsByTagName("li");
	for(i=0; i <tabList.length; i++)
	{
	  if (i == Num)
	  {
	   tabList[i].className = "omover";
	   document.getElementById("dturn_"+i).style.display = "block";
	  }else{
	   tabList[i].className = ""; 
	   document.getElementById("dturn_"+i).style.display = "none";
	  }
	} 
}
function OnSearch(searchvalue)
{
    if(searchvalue==1)
    {  
       var lzip=document.getElementById("txtZip").value;
       if(lzip=="请输入您要查询的关键字"|| lzip=="")
       {
          alert("请输入您要查询的关键字");return false;
       }           
       window.location.href='/allsearch.aspx?type=1&keyword='+ lzip;
    }
     if(searchvalue==2)
    {
        var lnet=document.getElementById("txtNet").value;
       if(lnet=="请输入您要查询的关键字"|| lnet=="")
       {
          alert("请输入您要查询的关键字");return false;
       }  
       window.location.href='/allsearch.aspx?type=2&keyword='+lnet;     
    }
    if(searchvalue==3)
    {
      var lword=document.getElementById("txtWord").value;
       if(lword=="请输入您要查询的关键字"|| lword=="")
       {
          alert("请输入您要查询的关键字。");return false;
       }  
       window.location.href='/allsearch.aspx?type=3&keyword='+lword;   
    }
　　if(searchvalue==4)
    {
      var tjlword=document.getElementById("tjlword").value;
       if(tjlword=="请输入您要查询的关键字"|| tjlword=="")
       {
          alert("请输入您要查询的关键字。");return false;
       }  
       window.location.href='/allsearch.aspx?type=4&keyword='+tjlword;   
    }
    if(searchvalue==5)
    {
      var inflword=document.getElementById("inflword").value;
       if(inflword=="请输入您要查询的关键字"|| inflword=="")
       {
          alert("请输入您要查询的关键字。");return false;
       }  
       window.location.href='/allsearch.aspx?type=5&keyword='+inflword;   
    }
}
