jQuery.validator.addMethod("letterswithbasicpunc",function(B,A){return !jQuery.validator.methods.required(B,A)||/^[a-z-.,()'\"s]+$/i.test(B)
},"Letters or punctuation only please");
jQuery.validator.addMethod("alphanumeric",function(B,A){return !jQuery.validator.methods.required(B,A)||/^w+$/i.test(B)
},"Letters, numbers, spaces or underscores only please");
jQuery.validator.addMethod("lettersonly",function(B,A){return !jQuery.validator.methods.required(B,A)||/^[a-z]+$/i.test(B)
},"Letters only please");
jQuery.validator.addMethod("nowhitespace",function(B,A){return !jQuery.validator.methods.required(B,A)||/^S+$/i.test(B)
},"No white space please");
jQuery.validator.addMethod("anything",function(B,A){return !jQuery.validator.methods.required(B,A)||/^.+$/i.test(B)
},"May contain any characters.");
jQuery.validator.addMethod("integer",function(B,A){return !jQuery.validator.methods.required(B,A)||/^d+$/i.test(B)
},"Numbers only please");
jQuery.validator.addMethod("phone",function(B){var D=B;
if(D.length<10){return false
}if(D.length==10&&D.substring(0,1)!="0"){D="0"+B
}var E=/^(\+)[\s]*(.*)$/;
if(E.test(D)==true){telNumberErrorNo=2;
return false
}if(D.indexOf(" ")>-1){return false
}if(D.indexOf("-")>-1){return false
}E=/^[0-9]{10,11}$/;
if(E.test(D)!=true){telNumberErrorNo=3;
return false
}E=/^0[0-9]{9,10}$/;
if(E.test(D)!=true){telNumberErrorNo=4;
return false
}var A=new Array();
A.push(/^(0113|0114|0115|0116|0117|0118|0121|0131|0141|0151|0161)(4960)[0-9]{3}$/);
A.push(/^02079460[0-9]{3}$/);
A.push(/^01914980[0-9]{3}$/);
A.push(/^02890180[0-9]{3}$/);
A.push(/^02920180[0-9]{3}$/);
A.push(/^01632960[0-9]{3}$/);
A.push(/^07700900[0-9]{3}$/);
A.push(/^08081570[0-9]{3}$/);
A.push(/^09098790[0-9]{3}$/);
A.push(/^03069990[0-9]{3}$/);
for(var C=0;
C<A.length;
C++){if(A[C].test(D)){telNumberErrorNo=5;
return false
}}E=(/^(01|02|03|05|070|071|072|073|074|075|07624|077|078|079)[0-9]+$/);
if(E.test(D)!=true){telNumberErrorNo=5;
return false
}return true
},"Phone number must be 11 characters, beginning with a 0, and no spaces.");
jQuery.validator.addMethod("zip",function(B,A){return B.match(/[A-Z]{1,2}[0-9R][0-9A-Z]?.[0-9][A-Z]{2}/i)
},"Valid UK postal code required");
jQuery.validator.addMethod("validateBirth",function(J,D){var K=true;
var A=$("#dobDay").val();
var E=$("#dobMonth").val();
var B=$("#dobYear").val();
if(A==""||E==""||B==""){return true
}var I=parseInt($("#dobDay").val());
var F=parseInt($("#dobMonth").val());
var H=parseInt($("#dobYear").val());
var G=new Date();
G.setFullYear(G.getFullYear()-18,G.getMonth(),G.getDay()+1);
var C=new Date();
C.setFullYear(H,F,I);
if(C<=G){$("#dob").val(I+"/"+F+"/"+H);
K=true
}else{K=false
}return K
},"You must be at least 18 years old");
jQuery.validator.addMethod("age",function(H,B){var I=true;
if(H.length==10){var F=H.split("/");
var G=parseInt(F[0]);
var C=parseInt(F[1])-1;
var E=parseInt(F[2]);
var D=new Date();
D.setFullYear(D.getFullYear()-18,D.getMonth(),D.getDay()+1);
var A=new Date();
A.setFullYear(E,C,G);
if(A<=D){I=true
}else{I=false
}}return I
},"You must be at least 18 years old");
jQuery.validator.addMethod("ssn",function(A,B){return(A.length>8)
},"Please enter a valid social security number");
jQuery.validator.addMethod("firstname",function(B,A){if(B.match(/\d+$/)==null){return true
}return false
},"Please enter a valid firstname. ");
jQuery.validator.addMethod("lastname",function(B,A){alert;
if(B.length>1&&B.match(/\d+$/)==null){return true
}return false
},"Please enter a valid lastName. ");
jQuery.validator.addMethod("password",function(A,B){if(A.length<6){return false
}return true
},"Password entered should be atleast 6 characters. ");
jQuery.validator.addMethod("cc",function(B,A){return B.match(/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6011[0-9]{12}|3(?:0[0-5]|[68][0-9])[0-9]{11}|3[47][0-9]{13})$/)
},"Please enter a valid credit card number");
jQuery.validator.addMethod("intelaemail",function(A,B){if(A.length>50){return false
}return A.match(/^.*?@\w*?\..{1,}$/)
},"Please enter a valid email address");
jQuery.validator.addMethod("aus_phone",function(A){var B=A;
if(B.length<10){return false
}if(B.length==10&&B.substring(0,1)!="0"){B="0"+B
}var C=/^(\+)[\s]*(.*)$/;
if(C.test(B)==true){telNumberErrorNo=2;
return false
}if(B.indexOf(" ")>-1){return false
}if(B.indexOf("-")>-1){return false
}C=/^[0-9]{10,11}$/;
if(C.test(B)!=true){telNumberErrorNo=3;
return false
}C=/^0[0-9]{9,10}$/;
if(C.test(B)!=true){telNumberErrorNo=4;
return false
}return true
},"Please enter a valid phone number in the following format 0xxxxxxxxx.");
jQuery.validator.addMethod("us_phone",function(A){var B=A;
if(B.length!=10){return false
}if(B.substring(0,1)=="0"||B.substring(0,3)=="555"){return false
}var C=/^(\+)[\s]*(.*)$/;
if(C.test(B)==true){telNumberErrorNo=2;
return false
}if(B.indexOf(" ")>-1){return false
}if(B.indexOf("-")>-1){return false
}C=/^[0-9]{10,11}$/;
if(C.test(B)!=true){telNumberErrorNo=3;
return false
}return true
},"Please enter a valid US phone number.");
jQuery.validator.addMethod("us_postcode",function(A){if(A.length!=5){return false
}exp=/[0-9][0-9][0-9][0-9][0-9]/;
if(exp.test(A)!=true){return false
}return true
},"Please enter a valid US post code.");
jQuery.validator.addMethod("canadian_postcode",function(A){return true
},"Please enter a valid Canadian post code.");
jQuery.validator.addMethod("aus_postcode",function(A){return true
},"Please enter a valid Australian post code.");
jQuery.validator.addMethod("uk_mobile_phone",function(A){var B=A;
if(B.length<10){return false
}if(B.length==10&&B.substring(0,1)!="0"){B="0"+A
}var C=/^(\+)[\s]*(.*)$/;
if(C.test(B)==true){telNumberErrorNo=2;
return false
}if(B.indexOf(" ")>-1){return false
}if(B.indexOf("-")>-1){return false
}C=/^[0-9]{10,11}$/;
if(C.test(B)!=true){telNumberErrorNo=3;
return false
}C=/^0[0-9]{9,10}$/;
if(C.test(B)!=true){telNumberErrorNo=4;
return false
}C=(/^(070|071|072|073|074|075|07624|077|078|079)[0-9]+$/);
if(C.test(B)!=true){telNumberErrorNo=5;
return false
}return true
},"Please enter a valid UK mobile phone number.");
jQuery.validator.addMethod("uk_home_phone",function(A){var D=A;
if(D.length<10){return false
}if(D.length==10&&D.substring(0,1)!="0"){D="0"+A
}var E=/^(\+)[\s]*(.*)$/;
if(E.test(D)==true){telNumberErrorNo=2;
return false
}if(D.indexOf(" ")>-1){return false
}if(D.indexOf("-")>-1){return false
}E=/^[0-9]{10,11}$/;
if(E.test(D)!=true){telNumberErrorNo=3;
return false
}E=/^0[0-9]{9,10}$/;
if(E.test(D)!=true){telNumberErrorNo=4;
return false
}var B=new Array();
B.push(/^(0113|0114|0115|0116|0117|0118|0121|0131|0141|0151|0161)(4960)[0-9]{3}$/);
B.push(/^02079460[0-9]{3}$/);
B.push(/^01914980[0-9]{3}$/);
B.push(/^02890180[0-9]{3}$/);
B.push(/^02920180[0-9]{3}$/);
B.push(/^01632960[0-9]{3}$/);
B.push(/^07700900[0-9]{3}$/);
B.push(/^08081570[0-9]{3}$/);
B.push(/^09098790[0-9]{3}$/);
B.push(/^03069990[0-9]{3}$/);
for(var C=0;
C<B.length;
C++){if(B[C].test(D)){telNumberErrorNo=5;
return false
}}E=(/^(01|02|03|05)[0-9]+$/);
if(E.test(D)!=true){telNumberErrorNo=5;
return false
}return true
},"Please enter a valid UK phone number.");
jQuery.validator.addMethod("uk_mobile_phone_with_countrycode",function(A){return true
},"Please enter a valid UK phone number with country code.");
jQuery.validator.addMethod("aus_phone_with_countrycode",function(A){return true
},"Please enter a valid UK phone number with country code.");
jQuery.validator.addMethod("aus_home_phone",function(A){return true
},"Please enter a valid Australian home phone number.");
jQuery.validator.addMethod("aus_mobile_phone",function(A){return true
},"Please enter a valid Australian home phone number.");
jQuery.validator.addMethod("email",function echeck(C,A){var B=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if(!B.test(A.value)){return false
}return true
},"Please enter a valid email.")
