function doSubmit() { if(isEmpty($("email"))) { showMessage("Falta indicar el e-mail.",ERROR); highlightError($("email"),"#c3ddea"); return false; } if(!checkEmail($("email"))) { showMessage("El e-mail es incorrecto.",ERROR); highlightError($("email"),"#c3ddea"); return false; } if(isEmpty($("subject").value)) { showMessage("Falta indicar el asunto.",ERROR); highlightError($("subject"),"#c3ddea"); return false; } if(isEmpty($("contentMail").value)) { showMessage("Falta indicar el contenido.",ERROR); highlightError($("contentMail"),"#c3ddea"); return false; } return true; } function iFrameFinished() { hideMsg(); $("mainForm").hide(); new Effect.Appear("sentDiv"); }