blnButtonClicked = false; function openRegistrationWindow() { RegistrationWin = window.open("about:blank","regform","width=500,height=500"); } function popupCheckEmail() { var x = 0; if ( testIsEmail(document.emailForm.email.value) == false ) { alert("Please enter a valid e-mail address."); document.emailForm.email.focus(); return false; } blnButtonClicked = true openRegistrationWindow(); setTimeout("document.emailForm.submit()",500); } function testIsEmail(string) { if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) return true; else return false; } // NetScape 4.7x is picky. that"s why this is here. function runTest() { popupCheckEmail(); } function clearit() { document.emailForm.email.value=""; } document.writeln('
| ')
document.writeln(' | ') document.writeln('') document.writeln(' | |