function openWindow( pageToLoad, winName, width, height, center) { xposition=0; yposition=0; if ((parseInt(navigator.appVersion) >= 4 ) && (center)){ xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2; } args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0," + "scrollbars=0," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," //NN Only + "screeny=" + yposition + "," //NN Only + "left=" + xposition + "," //IE Only + "top=" + yposition; //IE Only window.open( pageToLoad,winName,args ); } function openWindow2( pageToLoad, winName, width, height, center) { xposition=0; yposition=0; if ((parseInt(navigator.appVersion) >= 4 ) && (center)){ xposition = (screen.width - width) / 2; yposition = (screen.height - height) / 2; } args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1," + "scrollbars=1," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," //NN Only + "screeny=" + yposition + "," //NN Only + "left=" + xposition + "," //IE Only + "top=" + yposition; //IE Only window.open( pageToLoad,winName,args ); } var FormHasBeenSubmitted = null function checkinput(f) { if (FormHasBeenSubmitted) return false; err_msg = "Sorry. There are problems with your submission.\nPlease recheck the following required fields and resubmit the form.\n\n"; if (contactForm.name.value == "" || contactForm.name.value == "required") { contactForm.email.style.backgroundColor='#ffffff'; contactForm.phone.style.backgroundColor='#ffffff'; contactForm.fax.style.backgroundColor='#ffffff'; contactForm.message.style.backgroundColor='#ffffff'; alert(err_msg + "\"Name\" is a required field."); contactForm.name.focus(); contactForm.name.value = ''; contactForm.name.style.backgroundColor='#d9d919'; return false; } if (contactForm.email.value != "") { contactForm.name.style.backgroundColor='#ffffff'; contactForm.phone.style.backgroundColor='#ffffff'; contactForm.fax.style.backgroundColor='#ffffff'; contactForm.message.style.backgroundColor='#ffffff'; if (contactForm.email.value.indexOf("@") == -1 || contactForm.email.value.indexOf("@") == 1 || contactForm.email.value.indexOf(".") == 0 || contactForm.email.value.indexOf(".") == -1) { alert(err_msg + "\"Email\" format is invalid. Please check your email and try again."); contactForm.email.focus(); contactForm.email.style.backgroundColor='#d9d919'; return false; } } if (contactForm.phone.value == "" || contactForm.phone.value == "required") { contactForm.name.style.backgroundColor='#ffffff'; contactForm.email.style.backgroundColor='#ffffff'; contactForm.fax.style.backgroundColor='#ffffff'; contactForm.message.style.backgroundColor='#ffffff'; alert(err_msg + "\"Phone\" is a required field."); contactForm.phone.focus(); contactForm.phone.value = ''; contactForm.phone.style.backgroundColor='#d9d919'; return false; } if (contactForm.message.value == "" || contactForm.message.value == "required") { contactForm.name.style.backgroundColor='#ffffff'; contactForm.email.style.backgroundColor='#ffffff'; contactForm.phone.style.backgroundColor='#ffffff'; contactForm.fax.style.backgroundColor='#ffffff'; alert(err_msg + "\"Message\" is a required field."); contactForm.message.focus(); contactForm.message.value = ''; contactForm.message.style.backgroundColor='#d9d919'; return false; } FormHasBeenSubmitted = true; return true; }