function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
 }
 
 
 
 function showtab(m,n,count,aa){
	//用户登陆
	if(m==2) 
	{
		tdcolor='#cccccc';
		for(var i=1;i<=count;i++)
		{
			if (i==n)
			{			
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor=tdcolor;
				getObject('bg_'+m+'_'+i+'_'+aa).style.color="red";
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='';
			}
			else 
			{
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor='#ffffff';
				getObject('bg_'+m+'_'+i+'_'+aa).style.color="black";
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='none';
			}
		}
	}
	
	if (m==3) 
	{
		tdcolor='#8e8e8e';
		for(var i=1;i<=count;i++)
		{
			if (i==n)
			{			
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor=tdcolor;
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="red";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='';
			}
			else 
			{
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor='#cc0000';
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="black";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='none';
			}
		}
	}
	if (m==4) 
	{
		tdcolor='#cc0000';
		for(var i=1;i<=count;i++)
		{
			if (i==n)
			{			
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor=tdcolor;
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="red";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='';
			}
			else 
			{
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor='#8e8e8e';
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="black";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='none';
			}
		}
	}
	
	if (m==5) 
	{
		tdcolor='#cc0000';
		for(var i=1;i<=count;i++)
		{
			if (i==n)
			{			
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor=tdcolor;
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="red";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='';
			}
			else 
			{
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor='#8e8e8e';
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="black";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='none';
			}
		}
	}
	//全程办事代理
	if (m==6) 
	{
		tdcolor='#cc0000';
		for(var i=1;i<=count;i++)
		{
			if (i==n)
			{			
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor=tdcolor;
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="red";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='';
			}
			else 
			{
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor='#bbab64';
				<!--getObject('bg_'+m+'_'+i+'_'+aa).style.color="black";-->
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='none';
			}
		}
	}
	//公共服务
	if (m==7) 
	{
		tdcolor='#ffcccc';
		for(var i=1;i<=count;i++)
		{
			if (i==n)
			{			
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor=tdcolor;
				getObject('bg_'+m+'_'+i+'_'+aa).style.color="#333333";
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='';
			}
			else 
			{
				getObject('bg_'+m+'_'+i+'_'+aa).style.backgroundColor='#fff';
				getObject('bg_'+m+'_'+i+'_'+aa).style.color="black";
				getObject('tab_'+m+'_'+i+'_'+aa).style.display='none';
			}
		}
	}
}