

(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 allowed"},
				"maxCheckbox":{
					"regex":"none",
					"alertText":"* Checks allowed Exceeded"},	
				"minCheckbox":{
					"regex":"none",
					"alertText":"* Please select ",
					"alertText2":" options"},	
				"confirm":{
					"regex":"none",
					"alertText":"* Your field is not matching"},
				"minAge":{
					"regex":"none",
					"alertText":"* The groom should have attained the age of 21 years at the time of marriage",	
					"alertText1":"* The bride should have attained the age of 18 years at the time of marriage",
					"alertText2":"* Please first select your gender, then enter your age here"},
				"telephone":{
					"regex":"/^[0-9\-\(\)\ ]+$/",
					"alertText":"* Invalid phone number"},	
				"email":{
					"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
					"alertText":"* Invalid email address"},	
				"date":{
					 "regex":"/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/",
					 "alertText":"* Invalid date, must be in dd-mm-yyyy format"},
				"onlyNumber":{
					"regex":"/^[0-9\ ]+$/",
					"alertText":"* Numbers only"},	
				"noSpecialCaracters":{
					"regex":"/^[0-9a-zA-Z]+$/",
					"alertText":"* No special caracters allowed"},	
				"ajaxEmail":{
					"file":"services/ValidateUserEmail.php",
					"extraData":"name=eric",
					"alertTextOk":"* This user is available",	
					"alertTextLoad":"* Loading, please wait",
					"alertText":"* This e-mail is already registered"},	
				"onlyLetter":{
					"regex":"/^[a-zA-Z\ \']+$/",
					"alertText":"* Letters only"}
				}	
		}
	}
})(jQuery);

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