
//菜单函数
//父菜单定义为ParentMenuID，其中ID为大权限的序号
//子菜单定义为ChildMenuID，其中ID为大权限的序号

var lastid=null;
function showmenu(id)
{
	if (lastid==null||lastid==id)
	{
		if (eval("ChildMenu"+id).style.display=="")
		{
			eval("ChildMenu"+id).style.display="none";
		}
		else
		{
			eval("ChildMenu"+id).style.display="";
		}			
	}
	else
	{
		eval("ChildMenu"+id).style.display="";
		eval("ChildMenu"+lastid).style.display="none";
	}
	lastid=id;	
}