// 显示标签
function showTab(containerName,tabName,totalNum,id,showTabClass,hideTabClass)
{	
	// 内容显示容器对象
	var container;
	// 标签对象
	var tab;
	
	for(i = 0; i < totalNum; i++)
	{
		container = document.getElementById(containerName + i);
		tab = document.getElementById(tabName + i);
							
		if (i == id)
		{
			if (container != null)
			{
				container.style.display = "";
			}
			
			if (tab != null)
			{
				tab.className  = showTabClass;
			}						
		}
		else
		{
			if (container != null)
			{
				container.style.display = "none";
			}
			
			if (tab != null)
			{
				tab.className = hideTabClass;
			}				
		}									
	}				
}