var signUpForm;var isNewsLetterForm=false;if(document.addEventListener){document.addEventListener("DOMContentLoaded",init,false)}if(document.attachEvent){window.attachEvent("onload",init)}function init(){var a=document.forms;for(var b=0;b<a.length;b++){if(a[b].id=="subscribeForm"){isNewsLetterForm=true;signUpForm=document.getElementById(a[b].id);signUpForm.onsubmit=function(){return validateForm(this)}}}if(!isNewsLetterForm){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",init,false)}if(document.detachEvent){window.detachEvent("onload",init)}}else{if(window.addEventListener){window.addEventListener("onunload",function(){document.removeEventListener("DOMContentLoaded",init,false);window.removeEventListener("onunload",arguments.callee)},false)}if(window.attachEvent){window.attachEvent("onunload",function(){window.detachEvent("onload",init);window.detachEvent("onunload",arguments.callee)})}}}function isFilled(a){if(a.value==""||a.value==null){return false}else{return true}}function validateForm(a){if(!isFilled(a.from)){alert("Please fill in your email address before submitting.  Thank you.");return false}else{var b=a.from.value;if(b.match(/@.+\..+$/)){if(b.match(/@aol\./)){alert("Due to AOL's excessive anti-SPAM practices, we are currently not accepting\nany AOL email addresses for our mailing list.\n\nPlease use an alternative email service such as Gmail, Hotmail, Yahoo, etc.");return false}else{popwin2("",a.target,600,375,"resizable=1, scrollbars=1");return true}}else{alert("Please enter a correctly formatted email address (e.g. name@domain.com).  Thank you.");return false}}};