

(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",
						//"alertText1":"* This field is required----",
						"alertTextCheckboxMultiple":"* Please select an option",
						"alertTextCheckboxMultiple1":"* Please select at least one Checkbox",
						"alertTextCheckboxe":"*Please select at least one Checkbox"},
						
								
					"length":{
						"regex":"none",
						"alertText":"*Between ",
						"alertText2":" and ",
						"alertText3": " characters allowed"},
						
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
						
					"minCheckbox":{
						"regex":"none",
						"alertText":"Please select at least one Checkbox"},

					"confirm":{
						"regex":"none",
						"alertText":"* Your field is not matching"},
						
					
					"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"},	
						
					"URL":{
						"regex":"/^(((ht|f)tp(s?))\:\/\/)?(www.|[a-zA-Z].)[a-zA-Z0-9\-\.]+\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$#\=~_\-]+))*$/",
						"alertText":"* Invalid URL"},	
						
					"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 only"},	
						
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+([0-9a-zA-Z\ \.])*$/",
						"alertText":"* No special caracters allowed"},
						
					"AllowAllCaracters":{
						"regex":"none",
						"alertText":"* No special caracters allowed"},
						
						"ajaxUser":{
						"file":"validateUser.php",
						"extraData":"name=eric",
						//"alertTextOk":"* This user is available",	
						//"alertTextLoad":"* Loading, please wait",
						"alertText2":"* 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":"* Letters only"}
					}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});

/*
URL Regular Expression /^(((ht|f)tp(s?))\:\/\/)?(www.|[a-zA-Z].)[a-zA-Z0-9\-\.]+\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$#\=~_\-]+))*$/;*/