<!--
function Validator(theForm)
{
  if (theForm.TXTdestino.value == 0)
  {
    alert("Escolha o Destino do seu contato.");
    theForm.TXTdestino.focus();
    return (false);
  }

  if (theForm.TXTnome.value == "")
  {
    alert("Digite o seu Nome.");
    theForm.TXTnome.focus();
    return (false);
  }

  if (theForm.TXTnome.value.length > 100)
  {
    alert("Digite no máximo 100 caracteres.");
    theForm.TXTnome.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-&., \t\r\n\f";
  var checkStr = theForm.TXTnome.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Digite somente caracteres válidos.");
    theForm.TXTnome.focus();
    return (false);
  }

  if (theForm.TXTemail.value == "")
  {
    alert("Digite o seu e-mail.");
    theForm.TXTemail.focus();
    return (false);
  }

  if (theForm.TXTemail.value.length < 5)
  {
    alert("e-mail inválido.");
    theForm.TXTemail.focus();
    return (false);
  }

  if (theForm.TXTemail.value.length > 255)
  {
    alert("Digite no máximo 255 caracteres.");
    theForm.TXTemail.focus();
    return (false);
  }

  var checkOK = "abcdefghijklmnopqrstuvwxyzƒ0123456789-@._-";
  var checkStr = theForm.TXTemail.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("e-mail inválido.");
    theForm.TXTemail.focus();
    return (false);
  }

  if (theForm.TXTcidade.value == "")
  {
    alert("Digite o sua Cidade.");
    theForm.TXTcidade.focus();
    return (false);
  }

  if (theForm.comboUF.value == 0)
  {
    alert("Escolha o Estado.");
    theForm.comboUF.focus();
    return (false);
  }

  if (theForm.TXTfone.value == "")
  {
    alert("Digite o seu Telefone.");
    theForm.TXTfone.focus();
    return (false);
  }

  if (theForm.TXTmsg.value == "")
  {
    alert("Digite a sua Mensagem.");
    theForm.TXTmsg.focus();
    return (false);
  }

  return (true);
}

//-->
