﻿var objpath
objpath=window.location.pathname;
switch(objpath){
case "/index.html":
document.all("he").item(0).className="menuce_shouye";
document.all("ha").item(0).style.fontSize="14px";
document.all("ha").item(0).style.fontWeight="bold";
document.all("ha").item(0).style.color="#265ba9";
break;
case "/info/index.html":
document.all("he").item(1).className="menuce_shouye";
document.all("ha").item(1).style.fontSize="14px";
document.all("ha").item(1).style.fontWeight="bold";
document.all("ha").item(1).style.color="#265ba9";
break;
case "/service/expo/index.html":
document.all("he").item(2).className="menuce_shouye";
document.all("ha").item(2).style.fontSize="14px";
document.all("ha").item(2).style.fontWeight="bold";
document.all("ha").item(2).style.color="#265ba9";
break;
case "/productshow/index.html":
document.all("he").item(3).className="menuce_shouye";
document.all("ha").item(3).style.fontSize="14px";
document.all("ha").item(3).style.fontWeight="bold";
document.all("ha").item(3).style.color="#265ba9";
break;
case "/vipinfo/index.html":
document.all("he").item(4).className="menuce_shouye";
document.all("ha").item(4).style.fontSize="14px";
document.all("ha").item(4).style.fontWeight="bold";
document.all("ha").item(4).style.color="#265ba9";
break;
case "/tradeinfo/index.html":
document.all("he").item(5).className="menuce_shouye";
document.all("ha").item(5).style.fontSize="14px";
document.all("ha").item(5).style.fontWeight="bold";
document.all("ha").item(5).style.color="#265ba9";
break;
case "/about/index.html":
document.all("he").item(6).className="menuce_shouye";
document.all("ha").item(6).style.fontSize="14px";
document.all("ha").item(6).style.fontWeight="bold";
document.all("ha").item(6).style.color="#265ba9";
break;
case "/english/":
document.all("he").item(7).className="menuce_shouye";
document.all("ha").item(7).style.fontSize="14px";
document.all("ha").item(7).style.fontWeight="bold";
document.all("ha").item(7).style.color="#265ba9";
break;
}

function checkf()  
{  
var str=document.wsform.keywords;  
if(str.value.replace(/^\s+|\s+$/g,"")=="")  
{  
alert("请输入搜索的关键字！");  
str.focus();  
return false;   
}  
}  

/*行业类别*/

var objpath
objpath=window.location.pathname;
switch(objpath){
case "/productshow/":
document.all("hz").item(0).className="hhrrh";
document.all("hs").item(0).style.fontSize="12px";
document.all("hs").item(0).style.fontWeight="normal";
document.all("hs").item(0).style.color="#ffffff";
break;
case "/ceramics/":
document.all("hz").item(1).className="hhrrh";
document.all("hs").item(1).style.fontSize="12px";
document.all("hs").item(1).style.fontWeight="normal";
document.all("hs").item(1).style.color="#ffffff";
break;
case "/Bathroom/":
document.all("hz").item(2).className="hhrrh";
document.all("hs").item(2).style.fontSize="12px";
document.all("hs").item(2).style.fontWeight="normal";
document.all("hs").item(2).style.color="#ffffff";
break;
case "/cement/":
document.all("hz").item(3).className="hhrrh";
document.all("hs").item(3).style.fontSize="12px";
document.all("hs").item(3).style.fontWeight="normal";
document.all("hs").item(3).style.color="#ffffff";
break;
case "/Powder/":
document.all("hz").item(4).className="hhrrh";
document.all("hs").item(4).style.fontSize="12px";
document.all("hs").item(4).style.fontWeight="normal";
document.all("hs").item(4).style.color="#ffffff";
break;
case "/Concrete/":
document.all("hz").item(5).className="hhrrh";
document.all("hs").item(5).style.fontSize="12px";
document.all("hs").item(5).style.fontWeight="normal";
document.all("hs").item(5).style.color="#ffffff";
break;
case "/Paint/":
document.all("hz").item(6).className="hhrrh";
document.all("hs").item(6).style.fontSize="12px";
document.all("hs").item(6).style.fontWeight="normal";
document.all("hs").item(6).style.color="#ffffff";
break;
case "/Building_Materials/":
document.all("hz").item(7).className="hhrrh";
document.all("hs").item(7).style.fontSize="12px";
document.all("hs").item(7).style.fontWeight="normal";
document.all("hs").item(7).style.color="#ffffff";
break;
}

















