function checkFields(form){ { var tlogin = document.fields.login.value; var reg_login = /[\W]+/g; var res_login = tlogin.match(reg_login); if (res_login != null || tlogin.length < 3) {alert("- The Username length must be (3 - 30) characters!\n- Letter and Numbers Only!"); return(false) } }; { var tpassword = document.fields.password.value; var reg_password = /[\W]+/g; var res_password = tpassword.match(reg_password); if (res_password != null || tpassword.length < 4) {alert("- The Password length must be (4 - 30) characters!\n- Letter and Numbers Only!"); return(false) } }; { var tcpassword = document.fields.cpassword.value; if (tpassword != tcpassword) {alert("- Passwords do not match!"); return(false) } }; { var temail = document.fields.email.value; var regular = /\w+@[\w\-\.]+\.[a-z]{2,}/i; var result = temail.match(regular); if (result == null) {alert("- Email address is incorrect!"); return(false) } }; { var temail = document.fields.email.value; var regular = /.\@aol\.com/i; var result = temail.match(regular); if (result != null) {alert("- Sorry, AOL not allowed"); return(false) } }; { var tcemail = document.fields.cemail.value; if (temail != tcemail) {alert("- Emails do not match!"); return(false) } }; { var tmonth = document.fields.month.value; var tday = document.fields.day.value; var tyear = document.fields.year.value; if (tmonth == "0" || tday == "0" || tyear == "0") {alert("- Select Your Birth Date!"); return(false) } }; { var tcountry = document.fields.country.value; var tstate = document.fields.state.value; if (tcountry == "215" && tstate == "0") {alert("- Select Your State!"); return(false) } }; { var tcity = document.fields.city.value; if (tcity == "") {alert("- Enter your city!"); return(false) } }; { if (tcountry != "215" && tstate != "0") {alert("- State only for USA!"); return(false) } }; browser = new String(navigator.userAgent); if (browser.match(/IE/g)) { for (i=1; i