//Exibe o conteúdo se tiver javascript habilitado:
function ExibirConteudo(nomeDaDiv)
{
	obj = document.getElementById(nomeDaDiv);
    obj.style.visibility= 'visible';
}
//------------------------------------------------------------------------------
function SetarFocoPrimeiroInput()
{
    if( typeof(document.forms[0]) == "undefined" || document.forms[0] == null )
		return true;

	for(var i=0; i<document.forms[0].elements.length; i++) {
		
		//alert(document.forms[0].elements[i].type);
		
		if(typeof(document.forms[0].elements[i]) == "undefined"
			|| document.forms[0].elements[i] == null) return false;
		
		if(document.forms[0].elements[i].type == 'text'
			|| document.forms[0].elements[i].type == 'textarea') {
			document.forms[0].elements[i].focus();
			return true;
		}
	}
}
//------------------------------------------------------------------------------
// Usar tamanho máximo de janela para 776 x 460
function AbrirJanela(url, top, left, width, height)
{
	if(typeof(top)  == "undefined" || top == null)  top = 100;
	if(typeof(left) == "undefined" || left == null) left = 100;
	if(typeof(width)  == "undefined" || width == null)  width = 776;
	if(typeof(height)  == "undefined" || height == null)  height = 460;

	window.open(url, '_blank', 'toolbar=no, location=no, status=no, menubar=no, '
	+ 'scrollbars=yes, resizable=no, width=' + width +', height=' + height
	+ ', top=' + top + ', left=' + left);
}
//------------------------------------------------------------------------------
function AtualizarOutraJanela(url) {
	window.opener.location.href = url;
}
//------------------------------------------------------------------------------
function CarregarPagina(pagina)
{
	//alert(pagina);
	window.location.href = '?' + pagina + '';
}

