

//获取对象名称函数
function getObj(objName)
{
	return(document.getElementById(objName));
}


function ShowTab(mObjId)
{
	var oPobj = mObjId.parentNode;
	var sOverClass = oPobj.getAttribute("overclass");
	var sOutClass = oPobj.getAttribute("outclass");
	var oPobjChild = oPobj.getElementsByTagName("div");
	for(var i=0;i<oPobjChild.length;i++)
	{
		if(oPobjChild[i].getAttribute('tab'))
		{
			if(oPobjChild[i] == mObjId)
			{
				oPobjChild[i].className = sOverClass;
				oPobjChild[i].setAttribute("class", sOverClass);
				if(oPobjChild[i].getAttribute("sub"))
					getObj(oPobjChild[i].getAttribute("sub")).style.display = "";
			}
			else
			{
				oPobjChild[i].setAttribute("class", sOutClass);
				oPobjChild[i].className = sOutClass;
				if(oPobjChild[i].getAttribute("sub"))
					getObj(oPobjChild[i].getAttribute("sub")).style.display = "none";
			}
		}
	}
}

