(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"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Invalid phone number"},	
					"email":{
						"regex":"/^[^,|<>'&;@ ]*@[^,|<>'&;@ ]*\\.[^,|<>'&;@ ]*$/",
						"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 only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special caracters allowed"},	
					"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":"* Letters only"},
// -----------------  CUSTOM RULES START ----------------------------- 
					"onlyLetterNum":{
							"regex":"/^[a-zA-Z0-9\ \']+$/",
							"alertText":"* Letters And Numbers Only"},
					"quantity":{
							//"regex":"/^[^0][0-9]+$/",
								"regex":"/^[0-9]*[1-9]+[0-9]*$/",
							//"alertText":"* Numbers only (Zero not allowed as the first digit)"},
								"alertText":"* Invalid Quantity"},
					"number":{
							"regex":"/^[0-9]+$/",
							"alertText":"* Numbers only"},
					"exactLength":{
								"regex":"none",
								"alertText":"* Exactly ",
								"alertText2": " characters allowed"},
					"validPhone":{
							"regex":"/^[\+0-9][0-9]*$/",
							"alertText":"* Invalid phone number,only numbers allowed."
								},
					"validAmount":{
								//"regex":"/^[0-9\+]+$/",
								"regex":"/^[0-9\.]+$/",
								"alertText":"* Invalid Amount"
										},
					"feedBack":{
									"regex":"/^[\ ]*[^\ ]+.*$/",
									"alertText":"* Invalid FeedBack"
								},
					      "ccv":{
									"regex":"/^[0-9]+$/",
									"alertText":"* Field Required - ",
									"alertText2":" or ",
									"alertText3":" digit numbers only are allowed"},
					"agreements":{
									"regex":"none",
									"alertTextCheckboxMultiple":"* Please select options",
									"alertTextCheckboxe":"* Please select options"
								}	
//------------------- CUSTOM RULES END ---------------------------------------------							
			}	
		}
	}
})(jQuery);
$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
