// mensagens de erros padroes
var ERRO_PADRAO_AJAX = "Erro de execu&ccedil;&atilde;o no m&oacute;dulo AJAX! Por favor, tente novamente.";

// tempo que a mensagem de erro fica visivel na tela: (padrao=5 segundos)
var tmpErro = 5;

function MostraErro (str_Erro, tempo)
	{
	if (document.getElementById ('msgErro') && document.getElementById ('PainelErro'))
		{
		document.getElementById ('msgErro').innerHTML = html_entities_js (str_Erro);
		document.getElementById ('PainelErro').style.visibility='visible';
		if (tempo > 0)
			setTimeout ('EscondeErro ()', (parseInt (tempo) * 1000));
		}
	else
		Alerta (str_Erro);
	}
	
function EscondeErro ()
	{
	document.getElementById ('msgErro').innerHTML = "";
	document.getElementById ('PainelErro').style.visibility='hidden';
	}
