function $(id)
{
 return document.getElementById(id);
}

function show(id, type) 
{
 switch (type)
 	{
	 case 'tr' :
	 	$(id).style.display='table-row';
	 break;
	 case 'block' :
	 	$(id).style.display='block';
	 break;
	 default :
	 	$(id).style.display='inline';
	 break;
 	}
}

function hide(id) 
{
 $(id).style.display='none';
}

function toggle(id, type)
{
 if($(id).style.display=='none') show(id, type);
 else hide(id);
}
