function Validator(theForm)
{



if (theForm.TxtNome.value == "")
  {
    alert("O seu nome é obrigatório!");
    theForm.TxtNome.focus();
    return (false);
  }

if (theForm.TxtData.value == "")
  {
    alert("A data de nascimento deve ser preenchida!");
    theForm.TxtData.focus();
    return (false);
  }




var expReg = /^(([0-2]\d|[3][0-1])\/([0]\d|[1][0-2])\/[1-2][0-9]\d{2})$/;
var msgErro = 'Formato de data inválido!';

if ((theForm.TxtData.value.match(expReg)) && (theForm.TxtData.value!=''))
{
        ;
    } else {
        alert(msgErro);
        theForm.TxtData.focus();
return (false);
    } 



}
