function contactusValidate() { form=document.contactus; if (form.contactname.value=='') { alert('Please enter a name !'); form.contactname.focus(); return false; } if (!(form.emailAddress.value=='')) if (!ValidateEmail(form.emailAddress.value)) { form.emailAddress.focus(); return false; } if (form.comments.value=='') { alert('Please enter some comments !'); form.comments.focus(); return false; } form.submit(); }