
/*搜索标签JS*/
function setTab(m,n){
var tli=document.getElementById("mSearchMenu"+m).getElementsByTagName("li");
//var mli=document.getElementById("mSearchCon"+m).getElementsByTagName("ul");
	for(i=0;i<tli.length;i++)
	{
		   tli[i].className=i==n?"hover":"";
		 //  mli[i].style.display=i==n?"block":"none";
		 if(i==n){
		 	$("#SearchTitles").text($(tli[n]).text());
		  	$("#mSearchValue").val(document.getElementById("mSearchValue"+n).value);
		 }
	}
}
 
/*滑动标签Js*/
function setTab2(name,cursel,n)
{
	 
	for(i=1;i<=n;i++){
	  var menu=document.getElementById(name+i).childNodes[0];
	  menu.className= i==cursel?"fontblue fontbold hover":"";
	  var con=document.getElementById("con_"+name+"_"+i);
	  var hid=document.getElementById("hid_forward"); //隐藏域存储选中的Tab值
	  hid.value=cursel;
	  con.style.display= i==cursel?"block":"none";
	}
}


/*不同滑动标签上的 more跳转（考虑页面最多的标签只有三个，先设定为三个跳转）*/

//不同的跳转连接，被选中的Tab值
function tabForward(for_1,for_2,for_3,cursel) {
	switch (cursel) {
		case "1" :window.location.href=for_1;
		break;
		case "2" :window.location.href=for_2;
		break;
		default :window.location.href=for_3;
	}
}

//获取页面的隐藏域 值 并调用跳转方法
function getHidValue(for_1,for_2,for_3) {
	var hid = document.getElementById("hid_forward").value;
	tabForward(for_1,for_2,for_3,hid);
}
