﻿
      function GetSear()
      {
         var valueStr=document.getElementById("seaValue").value;
         if(valueStr=="")
         {
             alert("搜索条件不能为空！");
             return false;
         }
         window.open("product.aspx?seaValue="+encodeURI(valueStr));
      }
      
        function addMenuEvent(obj)
       {
           var liArr=document.getElementById("menuDiv").getElementsByTagName("li");
           
           for(i=0;i<liArr.length;i++)
           {
              liArr[i].value=i;// liArr[i].onmouseover=("onmouseover",function(){alert(i);});
              liArr[i].onmouseover=function(){this.className="selectedBg";};
              liArr[i].onmouseout=function(){this.className="";};
                //liArr[i].attachEvent("onmouseover",function(){alert(this.value);});
           }
           if(obj=="")
           {
             liArr[obj].onmouseover();
           }
       }
       function addTypeEvent()
       {
          document.getElementById("typeSc").attachEvent("onclick",function(){
            var objSmall=document.getElementById("TypeSmall");
          if(objSmall.style.display!="block")          
               objSmall.style.display="block";
          else
               objSmall.style.display="none";
          
          });       
         
       }
       function onSearch()
        {
           document.getElementById("searButton").attachEvent("onclick",function(){
              var objValue=document.getElementById("searValue").value;
              window.open("product.aspx?seaValue="+encodeURI(objValue));
             
           });
        }
 
