function Nav_Validator(theForm)
{
  if (theForm.v_pornome.value != "")
	{
	  if (theForm.v_pornome.value.length < 3)
	  {
	    alert("Digite um mínimo de 3 caracteres para o NOME.");
	    theForm.v_pornome.focus();
	    return (false);
	  }
	}

  if (theForm.v_Cnpj.value != "")
	{
  	if (!/(^\d+$)|(^\d+\.\d+$)/.test(theForm.v_Cnpj.value))
  	{
    	alert("Digite apenas NÚMEROS para CNPJ.");
    	theForm.v_Cnpj.focus();
    	return (false);
  	}
  	/*if (theForm.v_Cnpj.value.length > 11&&theForm.v_Cnpj.value.length < 14)*/
		if (theForm.v_Cnpj.value.length < 14)
  	{
    	alert("O CNPJ deve conter 14 dígitos, SEM ponto, traço ou barra.");
    	theForm.v_Cnpj.focus();
    	return (false);
  	}
		/*
  	if (theForm.v_Cnpj.value.length < 11)
  	{
    	alert("O CPF deve conter 11 dígitos, SEM ponto, traço ou barra.");
    	theForm.v_Cnpj.focus();
    	return (false);
  	}
		*/
	}

  if (theForm.v_Matricula.value != "")
	{
  	if (!/(^\d+$)|(^\d+\.\d+$)/.test(theForm.v_Matricula.value))
  	{
    	alert("Digite apenas números para MATRÍCULA.");
    	theForm.v_Matricula.focus();
    	return (false);
  	}
	}

  if (theForm.v_municipio.value != "")
	{
	  if (theForm.v_municipio.value.length < 3)
	  {
	    alert("Digite um mínimo de 3 caracteres para o MUNICÍPIO.");
	    theForm.v_municipio.focus();
	    return (false);
	  }
	}
}

