﻿function validateForm() {
with (document.LangContact) {
var alertMsg = "Has olvidado intoriducir la información correspondiente \na los siguientes campos:\n";
if (name.value == "") alertMsg += "\nNombre";
if (email.value == "") alertMsg += "\nEmail";
if (phone.value == "") alertMsg += "\nTeléfono";
if (message.value == "") alertMsg += "\nMensaje";
if (alertMsg != "Has olvidado intoriducir la información correspondiente \na los siguientes campos:\n") {
alert(alertMsg);
return false;
} else {
return true;
} } }