Contacto
function checkForm(f) {
ERROR = "";
if (f.name.value == '' || f.name.value == ' ')
ERROR += "Por favor escriba su nombre\n";
if(f.country.value == '')
ERROR += "Por favor seleccione su pais\n";
if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(f.email.value)))
ERROR += “Ingresa una direccion de email valida\n”;
if (f.message.value == ” || f.message.value == ‘ ‘)
ERROR += “Por favor escriba su mensaje\n”;
if(ERROR == “”)
return true;
else{
alert(ERROR);
return false;
}
}
