
	function getNames(obj,name,tij)
	{	
		var p = document.getElementById(obj);
		var plist = p.getElementsByTagName(tij);
		var rlist = new Array();
		for(i=0;i<plist.length;i++)
		{
			if(plist[i].getAttribute("name") == name)
			{
				rlist[rlist.length] = plist[i];
			}
		}
		return rlist;
	}

	function fod(obj,name)
	{
		var p = obj.parentNode.getElementsByTagName("li");
		var p1 = getNames(name,"f","div"); // document.getElementById(name).getElementsByTagName("div");
		for(i=0;i<p1.length;i++)
		{
			if(obj==p[i])
			{
				p[i].className = "active";
				p1[i].className = "normal";
				
			}
			else
			{
				p[i].className = "normal";
				p1[i].className = "hidden";
			}
		}
	}	
	
	function changeTabStatic(obj,div_area,theWidth)
	{
	  
	  var id=obj.id.replace("td","div");
	  document.getElementById(id).style.display="block";  
	  document.getElementById(obj.id).className="tab2select";
      document.getElementById(obj.id).style.width=theWidth+"px";
	  if(obj.id.indexOf("1")<0)
	  {
	    document.getElementById(obj.id).style.borderLeft="solid 1px #B2CED2";
	  
	  }
	  else
	  {
	    document.getElementById(obj.id).style.borderLeft="solid 0px #B2CED2";
	    
	  }
	 
	  var allDiv=new Array();
	  alldiv=document.getElementById(div_area).children;
	
	  for(var i=0;i<alldiv.length;i++)
	  {
	       var curid=alldiv[i].id;
	       if(curid.indexOf("_div_")>0&&curid!=id)
	       {
	          document.getElementById(curid).style.display="none";
	          var curtdId=curid.replace("div","td");	         
	          document.getElementById(curtdId).className="tab2normal";
	          document.getElementById(curtdId).style.width=theWidth+"px";
	          document.getElementById(curtdId).style.borderLeft="solid 0px #B2CED2";
	       }
	  }
	  
	  
	
	}
	
	function changeTab(obj,div_area,active,normal)
	{
	  
	  var id=obj.id.replace("td","div");
	  document.getElementById(id).style.display="block";  
	  document.getElementById(obj.id).className=active;
	  if(id.indexOf("ybxx")>=0&&id.indexOf("_2")>0)
	  {
	      obj.style.borderLeft="solid 1px #7CC5FC";
	  }
	  
	  if(id.indexOf("ybxx")>=0&&id.indexOf("_3")>0)
	  {
	      obj.style.borderLeft="solid 1px #7CC5FC";
	  } 
	  var allDiv=new Array();
	  alldiv=document.getElementById(div_area).children;
	  for(var i=0;i<alldiv.length;i++)
	  {
	       var curid=alldiv[i].id;
	       if(curid.indexOf("_div_")>0&&curid!=id)
	       {
	          document.getElementById(curid).style.display="none";
	          var curtdId=curid.replace("div","td");	         
	          document.getElementById(curtdId).className=normal;
	       }
	  }
	    
	
	}
	
	
	function overMethod(curObj)
	{
	   curObj.style.color="#7CC5FC";
	}
	function outMethod(curObj)
	{
	   curObj.style.color="#292E32";
	}
	function openBlank(curUrl)
	{
	  window.open(curUrl,"_blank");
	}

