
function validaForm(theForm) {

  if(!validaEmail(theForm.EMAIL.value)){	
	  alert("Email com formato inválido!");
		theForm.EMAIL.focus();
    return false;
	}

	if(isEmpty(theForm.NOME.value)){
    alert("Campo NOME em branco!");
    theForm.NOME.focus();
    return false;
  }

	if(isEmpty(theForm.EMAIL.value)){
    alert("Campo EMAIL em branco!");
    theForm.EMAIL.focus();
    return false;
  }

	if(isEmpty(theForm.SENHA.value)){
    alert("Campo SENHA em branco!");
    theForm.SENHA.focus();
    return false;
  }

	if(theForm.SENHA.value.length < 6){
    alert("Senha menor que 6 caracteres!");
    theForm.SENHA.focus();
    return false;
  }

	if(isEmpty(theForm.CONF_SENHA.value)){
    alert("Campo CONFIRMAR SENHA em branco!");
    theForm.CONF_SENHA.focus();
    return false;
  }

	if(theForm.SENHA.value != theForm.CONF_SENHA.value){
    alert("Confirmação de SENHA não aceita!");
    theForm.SENHA.focus();
    return false;
  }

	return true;

}

