function formValidator(){
	// Make quick references to our fields
	var nombre = document.getElementById('nombre');
	var apellido = document.getElementById('apellido');
	var email = document.getElementById('email');
	var comentario = document.getElementById('comentario');
 
		// orden de 
	if(isAlphabet(nombre, "Ingrese su nombre")){
		if(isAlphabet(apellido, "Ingrese su apellido")){
 		if(emailValidator(email, "Ingrese correctamente su correo")){
 			if(notEmpty(comentario, "Ingrese su comentario")){
			 
						return true;
					}
			 	 } 
			 }
	    }
	return false;
	
}


function notEmpty(elem, helperMsg){
	if(elem.value.length == 0){
		alert(helperMsg);
		elem.focus();                   //  para que no envie sin completar nada //
		return false;
	}
	return true;
}


function isAlphabet(elem, helperMsg){    // solo letras //  
	var alphaExp = /^[a-zA-Z ]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}


function emailValidator(elem, helperMsg){
	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;  // checkeo de email //  
	if(elem.value.match(emailExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}