

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{
					// Add your regex rules here, you can take telephone as an example
					"required":{   
						"regex":"none",
						"alertText":"* This field is required",
						"alertTextCheckboxMultiple":"* This checkbox is required",
						"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":"* Please check this field matches the field above"},		
					"passwordconfirm":{
						"regex":"/^$/",
						"alertText":"* Your passwords do not match"},		
					"emailconfirm":{
						"regex":"/^$/",
						"alertText":"* Your email addresses do not match"},		
					"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"},
					"dateDDMMYYYY":{
                        "regex":"/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/",
                         "alertText":"* Invalid date, must be in dd-mm-yyyy format"},
					"timeHHMM":{
                         "regex":"/^[0-9]{1,2}\:\[0-9]{2}$/",
                         "alertText":"* Invalid time, must be in hh:mm format"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Numbers only"},	
					"onlyDecimal":{
						"regex":"/^[0-9]+(\.[0-9]{1}){0,1}$/",
						"alertText":"* Can be xx or xx.x only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special characters 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"},
					"onlyLetterNoSpaces":{
						"regex":"/^[a-zA-Z0-9\']+$/",
						"alertText":"* Letters only, no spaces"},
					"human":{
						"regex":"/^saddle$/",
						"alertText":"* What do you sit on to ride a bike? (six letters)"},
					"dummy":{
                         "regex":"/^$/",
                         "alertText":"* Dummy empty regex rule" }
					
			}
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
