// alertas

function ConfirmOperation(Alerta, ConfAlerta, AbortAlerta, strLink)
{
var Alertado = window.confirm(Alerta);
if (Alertado) 
	{
	if (ConfAlerta != "") {
		window.alert(ConfAlerta);
		}
	window.location=(strLink)
	}  else  {
	window.alert(AbortAlerta);
	}
}
// GHtml.LinkWhithConfirmation(BoDictionary(109), strLink, BoDictionary(110), BoDictionary(111), BoDictionary(112))

function GoToURL(theMenu) {
	theURL = theMenu.options[theMenu.selectedIndex].value;
	if (theURL != "") document.location.href = theURL;
}

// validar campo de um formulario, pelo seu tamanho

function ValidaCampo(campo, tamanho, mensagem)
{
  if (campo.value.length >= tamanho)
  {
    return (true);
  } else {
    alert (mensagem) 
    return (false);
  } 
}
// Textos em caixas de formularios

function TextFieldOnFocus(InputTag, TextToShow)
{
	if (InputTag.value == TextToShow)
	{
		InputTag.value = "";
	}
}
function TextFieldOnBlur(InputTag, TextToShow)
{
	if (InputTag.value == "")
	{
		InputTag.value = TextToShow;
	}
}
