/*第一种形式 第二种形式 更换显示样式*/
/*function setTab(name,cursel,n){
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		if(menu != null)
			menu.className=i==cursel?"hover":"";
		if(con != null)
		con.style.display=i==cursel?"block":"none";
	}
}

function setTab2(cursel){
	for(i=1;i<=6;i++){
		var menu=document.getElementById("search" + i);
		var con=document.getElementById("con_search_" + i);

		if(menu != null)
			menu.className=i==cursel?"hover":"";
		if(con != null)
		{
			if(window.navigator.userAgent.indexOf("MSIE")>=1)
				con.style.display=i==cursel?"block":"none";
				menu.className=i==cursel?"hoff":"";
			else 
				con.style.display=i==cursel?"table":"none";
				menu.className=i==cursel?"hoff":"";
		}
	}
}


*/
function setTab0(name,cursel,n){
	
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		if(menu != null)
			menu.className=i==cursel?"hover":"";
		if(con != null)
		con.style.display=i==cursel?"block":"none";
	}
	for(i=1;i<=n;i++)
	{
	    var menua=document.getElementById("t"+i);
	    if(i==cursel)
	    {
	        document.getElementById('t' + i).className = "bt_on";
	     
	    }
	    else
	    {
	        document.getElementById('t' + i).className = "bt_off";
	    }
	}
}

