function exibePop()
{
	if(document.getElementById("pop-up").style.display == "none" || document.getElementById("pop-up").style.display == "")
	{
		document.getElementById("background-white").style.display = document.getElementById("pop-up").style.display = "block";
		len = document.forms[0].elements.length;
		for(i=0;i<len;i++)
		{
			Tp=document.forms[0].elements[i].type;
			if (Tp=='text'||Tp=='file'||Tp=='textarea'||Tp=='password'||Tp=='select-one')
			{
				if (document.forms[0].elements[i].value.length==0)
				{
					document.forms[0].elements[i].focus();
					break;
				}
			}
		}
		if (document.getElementById('SALVA').disabled==true)
		{
			document.getElementById('SALVA').disabled=false;
		}
	}
	else
	{
		document.getElementById("background-white").style.display = document.getElementById("pop-up").style.display = "none";
	}
}
function Rodape() 
{
 /*document.write("<hr>");*/
 if (url != "" && url != "{URL}")
 {
	if (nome == "{NOME_WIN}")
		nome  = "";
	if (param == "{PARAM_WIN}")
		param = "";
	window.open(url, nome, param);
 }
 if (Mensagem != "" && Mensagem != "{MSG_ERRO}")
	alert(Mensagem);
}
function Excluir() 
{
 return confirm("Confirma exclusão?");
}
function RenderCalE(meg)
{

	docCal.open();
	docCal.writeln(meg);
	docCal.close();
}
function openEsc(msg)
{
  var BH = screen.height - 60;
  var BW = screen.width;
	
	features = 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,width='+BW+',height='+BH+',top=0,left=0';

	winCal=window.open("","Email",features);
	docCal=winCal.document;
	RenderCalE(msg);
}
