

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* Vul alle vereiste informatie in voor u op Verzenden klikt.",
						"alertTextCheckboxMultiple":"* Maak een keuze",
						"alertTextCheckboxe":"* Maak een keuze"},
					"length":{
						"regex":"none",
						"alertText":"*De waarde moet liggen tussen ",
						"alertText2":" en ",
						"alertText3": "."},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Dit veld verschilt"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Het telefoonnummer dat u hebt ingevoerd is ongeldig."},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* Het e-mailadres dat u hebt ingevoerd is ongeldig."},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"* Invalid date, must be in YYYY-MM-DD format"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Het ingevoerde getal is niet geldig."},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* In dit vak worden alleen tekst en getallen aanvaard."},	
					"ajaxUser":{
						"file":"validateUser.php",
						"extraData":"name=eric",
						"alertTextOk":"* This user is available",	
						"alertTextLoad":"* Loading, please wait",
						"alertText":"* This user is already taken"},	
					"ajaxName":{
						"file":"validateUser.php",
						"alertText":"* This name is already taken",
						"alertTextOk":"* This name is available",	
						"alertTextLoad":"* Loading, please wait"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* In dit vak wordt alleen tekst aanvaard"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* You must have a firstname and a lastname"},
						
						// --- CUSTOM RULES -- Those are specific to the support website
					"pc":{
    				"regex":"/^[0-9]{7,8}$/", 
    				"alertText":"* Serienummer (A) is niet correct"},
					"sn":{
    				"regex":"/^[0-9]{7}$/",
    				"alertText":"* Serienummer (B) is niet correct"},
					
					"validpc": {
						"regex": "/^[^0][0-9]+$/",
						"alertText":"* De productcode is niet correct "},
					"validateWarr": {
						"nname":"validateWarr",
						"alertText":"* The format is incorrect"}	
							
			}
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});