function ShowContent(objid)
{
	var obj=document.getElementById(objid);	
	if(obj)
	{
		//alert(obj.style.display)
		if(obj.style.display!="none")
		{
			obj.style.display="none";
		}
		else
		{
			obj.style.display="";
		}		
	}
	else
	{
		alert("¶ÔÏó²»´æÔÚ¡£");
	}
}
function switchbg(bgcolor,textcolor,prefix,startnum,endnum,nowbgcolor,nowcolor,nowindex)
{
	for(i=startnum;i<=endnum;i++)
	{
		document.getElementById(prefix+i).style.background=bgcolor;
		document.getElementById(prefix+i).style.color=textcolor;	
		document.getElementById(prefix+"content"+i).style.display="none";
	}
	document.getElementById(prefix+nowindex).style.background=nowbgcolor;
	document.getElementById(prefix+nowindex).style.color=nowcolor;	
	document.getElementById(prefix+"content"+nowindex).style.display="";
}
function switchmenubg(textcolor,prefix,nowcolor,nowindex,url,tag)
{
	var startnum=1;
	var endnum=10;
	if(nowindex.length==0) nowindex="1";
	
	for(i=startnum;i<=endnum;i++)
	{
		document.getElementById(prefix+i).style.color=textcolor;	
	}
	document.getElementById(prefix+nowindex).style.color=nowcolor;
	if(tag==false)
	{
		window.location.href=url;
	}
	//alert("11111");
}