

(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":"This field is required",
						"alertTextCheckboxMultiple":"Please select an option",
						"alertTextCheckboxe":"This checkbox is required"},
					"length":{
						"regex":"none",
						"alertText":"Between ",
						"alertText2":" and ",
						"alertText3": " characters"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"The Fields do not match"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"Invalid phone number"},
					"captcha":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Enter the sum of the two numbers to submit."},
					"email":{
						"regex":"/^[\.a-z0-9_\-]+[@][a-z0-9_\-]+([.][a-z0-9_\-]+)+[a-z]{1,4}$/i",
						"alertText":"Invalid email address"},	
					"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":"Numbers (0-9) only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"No special caracters allowed"},	
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Letters (A-Z) only"}
					}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});