 /*******************************************
	CODIGO PARA MOSTRAR E ESCONDER AS TABLES
*******************************************/
	var objLastMenuShown = null;
	
	function show(objMenu)
	{
		if (objMenu == null) return;
	
		if (objLastMenuShown != null)
		{
			showSubMenu(objLastMenuShown, false);
	
		}
		if (objLastMenuShown != objMenu)
		{
			showSubMenu(objMenu, true);
			objLastMenuShown = objMenu;
		}
		else
		{
		objLastMenuShown = null;
		}
	}
	
	function showSubMenu(objMenu, blnShow)
	{
		if (objMenu == null || blnShow == null) return false;
	
		if (blnShow){
			document.getElementById(objMenu).style.display = '';
		}
		else
		{
			document.getElementById(objMenu).style.display = 'none';
		}
		return true;
	}
/*
	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/

function mostraElemento(id) {
	document.getElementById(id).style.display = document.getElementById(id).style.display == 'block' ? 'none' : 'block';
}
