NBN.Validator=new Class({messages:{email:"Please verify your email address and submit the request again.",phone:"Please enter a 10-digit phone number, including the 3-digit area code.",required:"This information is required."},validateRequired:function(A){return A.value==""?false:true},validateEmail:function(B){var A=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*$/;var D=/^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2,6})$/i;var F=B.value;if(F.indexOf("@",0)==-1){return false}var C=F.split("@",2);var G=C[0];var E=C[1];if(!G.match(A)){return false}if(!E.match(D)){return false}return true},validatePhone:function(A){var C=/^\s*(?:1[\- \.]?)?(\()?(\d\d\d)(\))?[\- \.]?(\d\d\d)[\- \.]?(\d\d\d\d)(?:\s*ext\.?\s*(\d+))?\s*$/i;var B=A.value;if(B==""){return true}if(!B.match(C)){return false}return true}});