function validateFormOnSubmit() { function trim(str) { return str.replace(/^[\s]+/,'').replace(/[\s]+$/,''); } //var str_pattern=/^([a-zA-Z\(/)]+((\w+)\s(\w+))*).$/; var email_pattern = /^[1-9a-zA-Z\-\_]+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; var num_pattern=/^[2-9]{1}[0-9]{2}-[0-9]{3}-[0-9]{4}$/; var num1_pattern=/^([0-9]*)$/; if (document._mktf.first_name.value=="") { alert("Please enter your first name."); document._mktf.first_name.focus(); return false; } if (document._mktf.last_name.value=="") { alert("Please enter your last name."); document._mktf.last_name.focus(); return false; } //EMAIL VALIDATION if (document._mktf.email.value=="") { alert("Please enter your Email Address."); document._mktf.email.focus(); return false; } //EMAIL CONFIRMATION VALIDATION if (document._mktf.confirm_email.value=="") { alert("Please confirm your Email Address."); document._mktf.confirm_email.focus(); return false; } //COMPARE EMAILS if (document._mktf.email.value != document._mktf.confirm_email.value ) { alert("Confirmation email does not match. Please check and try again."); document._mktf.confirm_email.focus(); return false; } //ZIP CODE VALIDATION if (document._mktf.zip.value=="") { alert("Please enter your Zip Code."); document._mktf.zip.focus(); return false; } }

Sign up for exclusive Melitta offers and to receive notification of our Warehouse Sales.

*Name
*Email Address
*Confirm Email Address
Street Address
City
State
*Zip Code
Phone Number
Secondary Phone
Date of Birth
 
Your privacy is our top priority. Please read our privacy statement for more details.
 
 
 
© 2008 Melitta USA
Site Map | Privacy Policy | Melitta Group