//common.js
//公共函数
//2009-7-10 By Liu


//函数名：$(id)
//功能：简化document.getElementById
//参数：String id，目标的id
//返回：document.getElementById(id)
function $(id)
{
	return document.getElementById(id);
}

//showhiddenElement(obj)
//显示,隐藏对象
function showhiddenElement(obj)
{
	if($(obj).style.display == "inline")  //判断菜单是否可见     
	{$(obj).style.display = "none";} //将菜单设置为隐藏
	else
	{$(obj).style.display = "inline";} //将菜单设置为可见
}
//showhiddenElement2(obj)
//显示,隐藏对象2
function showhiddenElement2(obj)
{
	if($(obj).style.display == "none")  //判断菜单是否可见     
	{$(obj).style.display = "block";} //将菜单设置为隐藏
	else
	{$(obj).style.display = "none";} //将菜单设置为可见
}

//showhidden_Element(obj)
//显示一个,隐藏一个
function showhidden_Element(obj,obj2)
{
	$(obj).style.display = "inline";
	$(obj2).style.display = "none";
}

//showElement(obj)
//显示对象
function showElement(obj)
{
	$(obj).style.display = "inline"; //将菜单设置为可见
}

//hiddenElement(obj)
//隐藏对象
function hiddenElement(obj)
{
	$(obj).style.display = "none"; //将菜单设置为可见
}

