function validaFrm(f){
	if(f.txtNombre.value==""){
		alert("¿Como te llamas?");
		f.txtNombre.focus();
		return false;
	}
	if(f.txtEmail.value==""){
		alert("¿Cual es tu email?");
		f.txtEmail.focus();
		return false;
	}
	if(!isEmail(f.txtEmail.value)){
		alert("El email no es correcto, por favor revisa el formato");
		f.txtEmail.focus();
		return false;
	}
	if(f.txtMensaje.value==""){
		alert("Por favor escribe el mensaje");
		f.txtMensaje.focus();
		return false;
	}
}

function isEmail(valor){
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
		return (true)
	} 
	else {
		return (false);
	}
}
