function validaCadastro(){
        var nome= document.getElementById('txtNome');
		var campo_email = document.cadastra.email.value;		
            if(nome.value.length < 2){
               alert('Campo nome invalido!');
               nome.focus();
               return false;
            }
			//Checando se o endereço e-mail não esta vazio
            if(campo_email=="") {
                alert("Campo e-mail nao preenchido!");
                document.cadastra.email.focus();
                return false;
            }
            //Checando se o endereço de e-mail é válido
            if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.cadastra.email.value))) {
                alert("Campo e-mail invalido!");
                document.cadastra.email.focus();
                return false;
            }
			return true;
	}
