function nTabs(thisObj,Num)
{
	if(thisObj.className == "active")return;
		var tabObj = thisObj.parentNode.id;
		var tabList = document.getElementById(tabObj).getElementsByTagName("li");
		for(i=0; i <tabList.length; i++)
	{
  		if (i == Num)
  {
   thisObj.className = "active"; 
      document.getElementById(tabObj+"_Content"+i).style.display = "block";
  }else{
   tabList[i].className = "normal"; 
   document.getElementById(tabObj+"_Content"+i).style.display = "none";
  }
} 
}



var Marke;
var Marke=Class.create();
Marke.prototype={
		initialize:function()
		{

		},
		Sel:function(Value)
		{
				var thisUrl=location.href;
				var oValue=this.request('o',thisUrl);
				var regS=new RegExp("&o="+oValue,"gi");
				thisUrl=thisUrl.replace("&o="+oValue,"");
				thisUrl=thisUrl.replace("?o="+oValue,"");
				var s=thisUrl+'&o='+Value;
				if(s.indexOf('?')==-1)
				{
					s=s.replace(/&/,"?");
				}
				location.href=s;
		},
		request:function(paras,u)
		{ 
				var url=u;
				var paraString = url.substring(url.indexOf("?")+1,url.length).split("&"); 
				var paraObj = {} 
				for (i=0; j=paraString[i]; i++)
				{ 
				    paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length); 
				} 
				var returnValue = paraObj[paras.toLowerCase()]; 
				if(typeof(returnValue)=="undefined")
				{ 
				    return ""; 
				}
				else
				{ 
				    return returnValue;
				}
		},
		MarkeSearch:function()
		{
			   var Txt=MyTool.Trim($("S_Txt").value);
			   var SetTxt=Txt;
			   if(Txt=='')
			   {
			       SetTxt='none';
			   }
			   var s="/trademark.php?Price=all&Type="+$("S_Type").value+"&CateGory="+$("S_Gory").value+"&o=0&t="+encodeURIComponent(SetTxt);
			   location.href=s;
		},
		PatentSearch:function()
		{
			   var Txt=MyTool.Trim($("P_Txt").value);
			   var SetTxt=Txt;
			   if(Txt=='')
			   {
			       SetTxt='none';
			   }
			   var s="/patent.php?Price=all&Type="+$("P_Type").value+"&CateGory="+$("P_Gory").value+"&o=0&t="+encodeURIComponent(SetTxt);
			   location.href=s;
		},
		CopyRightSearch:function()
		{
			   var Txt=MyTool.Trim($("C_Txt").value);
			   var SetTxt=Txt;
			   if(Txt=='')
			   {
			       SetTxt='none';
			   }
			   var s="/copyright.php?Price=all&Type=all&CateGory="+$("C_Gory").value+"&o=0&t="+encodeURIComponent(SetTxt);
			   location.href=s;
		}		
	
}
var MyMarke=new Marke();




