function SubmitContact() { document.forms[0].adm.value = "ts@interactive.as"; errorNr = 0; errorText ="Følgende felter mangler at blive udfyldt\n-----------------------------------------------\n"; if (document.forms[0].kontaktperson.value == ""){ errorText += " * Kontaktperson\n"; errorNr++; } if (document.forms[0].email.value == ""){ errorText += " * E-mail\n"; errorNr++; } else { txt=document.forms[0].email.value; if (txt.indexOf("@")<1){ errorText += " * E-mail mangler '@' (navn@domain.dk)\n"; errorNr++; } } if (errorNr > 0) { alert(errorText); } else { document._ContactForm.submit(); } }