try
{
thisHREF = document.location.href;  
tmpHPage = thisHREF.split( "/" );  
thisHPage = tmpHPage[ tmpHPage.length-1 ]; 
if((thisHPage=='About.asp?ID=40')||(thisHPage=='About.asp?ID=41')||(thisHPage=='Color.asp')||(thisHPage=='About.asp?ID=44')){
	thisHPage='ProductList.asp';
}
if((thisHPage=='NewsList.asp?SortID=10&SortPath=0,10,')||(thisHPage=='NewsList.asp?SortID=11&SortPath=0,11,')||(thisHPage=='NewsList.asp?SortID=13&SortPath=0,13,')||(thisHPage=='NewsList.asp?SortID=14&SortPath=0,14,')){
	thisHPage='NewsList.asp';
}
if(thisHPage=='About.asp?ID=39'){
	thisHPage='About.asp?ID=28';
}
if(thisHPage=='MessageList.asp'){
	thisHPage='MessageWrite.asp';
}
if((thisHPage=='About.asp?ID=45')||(thisHPage=='About.asp?ID=46')){
	thisHPage='About.asp?ID=10';
}
if(thisHPage=='Welcome.asp'){
	thisHPage='/Index.asp';
}
if(document.getElementById(thisHPage)!=undefined){
	document.getElementById(thisHPage).style.background='url(index/navbg.jpg) no-repeat';
	document.getElementById(thisHPage).style.color='#F9EFC0';
}else{
	document.getElementById('ProductList.asp').style.background='url(index/navbg.jpg) no-repeat';
	document.getElementById('ProductList.asp').style.color='#F9EFC0';
}
   //在此运行代码
}
catch(err)
{
   //在此处理错误
}
