function FormSubmit() { var name = document.postForm.name.value; var email = document.postForm.email.value; var comments = document.postForm.comments.value; if (name == "") { alert("\nThe NAME field is blank.\n\nPlease enter your name."); document.postForm.name.focus(); return false; } var pattern = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/; if (!pattern.test(email)) { alert("\nPlease enter a valid email."); document.postForm.email.focus(); return false; } if (comments == "") { alert("\nThe COMMENTS field is blank.\n\nPlease enter your comments."); document.postForm.comments.focus(); return false; } return window.open ('', 'mailWindow', 'height=322,width=440,toolbar=no,status=no,scrollbars=no,resizable=no'); } document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write('

   Your Name:   '); document.write('   
'); document.write('   E-mail:             '); document.write('
   Comments:
   '); document.write('

'); document.write('

'); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('

');