$.validator.setDefaults({submitHandler: function() { form.submit(); }});$.validator.addMethod("regex",function(value, element, regexp) {var re = new RegExp(regexp);return re.test(value);},"");$().ready(function() {
$("#cms_1").validate({
rules: {
"1_naam": { regex: /.+/ }, 
"7_email": { regex: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,6}$/i }
},
messages: {
"1_naam": "* Het veld naam is niet juist ingevuld", 
"7_email": "* Het veld email is niet juist ingevuld"
} 
});
$("#cms_2").validate({
rules: {
"16_functie": { regex: /.+/ }, 
"9_aanhef": { regex: /.+/ }, 
"10_voorletters": { regex: /.+/ }, 
"12_achternaam": { regex: /.+/ }, 
"13_roepnaam": { regex: /.+/ }, 
"14_gebdatum": { regex: /.+/ }, 
"15_nationaliteit": { regex: /.+/ }, 
"17_adres": { regex: /.+/ }, 
"18_postcode": { regex: /.+/ }, 
"19_plaats": { regex: /.+/ }, 
"20_land": { regex: /.+/ }, 
"23_email": { regex: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,6}$/i }
},
messages: {
"16_functie": "* Het veld functie is niet juist ingevuld", 
"9_aanhef": "* Het veld aanhef is niet juist ingevuld", 
"10_voorletters": "* Het veld voorletters is niet juist ingevuld", 
"12_achternaam": "* Het veld achternaam is niet juist ingevuld", 
"13_roepnaam": "* Het veld roepnaam is niet juist ingevuld", 
"14_gebdatum": "* Het veld gebdatum is niet juist ingevuld", 
"15_nationaliteit": "* Het veld nationaliteit is niet juist ingevuld", 
"17_adres": "* Het veld adres is niet juist ingevuld", 
"18_postcode": "* Het veld postcode is niet juist ingevuld", 
"19_plaats": "* Het veld plaats is niet juist ingevuld", 
"20_land": "* Het veld land is niet juist ingevuld", 
"23_email": "* Het veld email is niet juist ingevuld"
}
});
});
