

(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"},
					"postalcodeUSA":{"regex":"/^[0-9]{1,9}$/","alertText":"* 5 numbers are required."},
					"aba":{"regex":"/^[0-9]{9}$/","alertText":"* Invalid ABA"},
					"address":{"regex":"/^.{3,40}$/","alertText":"* Are required minimum 3 alphanumeric"},
					"city":{"regex":"/^.{2,40}$/","alertText":"* Are required minimum 2 characters"},
					"driver":{"regex":"/^[ ]*[a-zA-Z0-9]{5,40}[ ]*$/","alertText":"* Are required minimum 5 alphanumeric"},
					"postalcodeWorld":{"regex":"/^[a-zA-Z0-9]{1,9}$/","alertText":"* Are required up to 9 alphanumeric."},
					"MNI":{"regex":"/^[$][U][S][ ][0-9]{3,40}$/","alertText":"* Are required minimum 3 characters"},
					"names":{"regex":"/^.{2,60}$/","alertText":"* Are required minimum 2 characters"},
					"lastnames":{"regex":"/^.{2,60}$/","alertText":"* Are required minimum 2 characters"},
					"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]{3}[\)][ ][0-9]{3}[\-][0-9]{4}$/",
						"alertText":"* Invalid phone number."},	
					"ccNumber":{
						"file":"/ws/StatusCCNumber.php",
						"alertText":"* It's not a valid credit card number"},	
					"ajaxCCV":{
						//"file":"/ws/StatusCVV.php",
						"regex":"/^{3,4}$/",
						"alertText":"* It's not a valid credit card id"},	
					"email":{
						"regex":"/^[ ]*[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+[.])+[a-zA-Z0-9]{2,4}[ ]*$/",
						"alertText":"* Invalid email address.",
						"alertText2":"* Email doesn't match."},
					"emailDomain":{
						"regex":"/^[ ]*[@]([a-zA-Z0-9\-]+[.])+[a-zA-Z0-9]{2,4}[ ]*$/",
						"alertText":"* Invalid email address"},
					"emailacc":{
						"regex":"/^[ ]*[a-zA-Z0-9_\.\-]+[ ]*$/",
						"alertText":"* Invalid email address."},
					"date":{
                         "regex":/*"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/"*/"/^([0][1-9]|[1][0-2])[\/]([0][1-9]|[1-2][0-9]|[3][0-1])[\/]([0-9]){4}$/",
                         "alertText":"* Invalid date, must be in MM/DD/YYYY format."},
					"ukdate":{
                         "regex":"/^([0][1-9]|[1-2][0-9]|[3][0-1])[\/]([0][1-9]|[1][0-2])[\/]([0-9]){4}$/",
                         "alertText":"* Invalid date, must be in DD/MM/YYYY format"},
					"onlyNumber":{
						"regex":"/^[0-9\s]+$/",
						"alertText":"* Numbers only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special caracters allowed"},	
					"ajaxEmail":{
						"file":"/ws/StatusMail.php",
						"extraData":"name=eric",
						//"alertTextOk":"* This Email is available",	
						"alertTextLoad":"* Checking email, please wait",
						"alertText":"* This Email is not available"},	
					"ajaxName":{
						"file":"validateUser.php",
						"alertText":"* This name is already taken",
						"alertTextOk":"* This name is available",	
						"alertTextLoad":"* Loading, please wait"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\s\']+$/",
						"alertText":"* Letters only"},
					"phonecode":{
						"regex":"none",
						"alertText":"* Invalid phone"},	
					"zipcode":{
						"regex":"none",
						"alertText":"* Invalid zip code"},		
					"timeSince":{
						"regex":"none",
						"alertText":"* These fields are required"},
					"SSN":{
						"regex":"none",
						"alertText":"* Invalid SSN"},
					"mount":{
						"regex":"/^[ ]*[0-9]{3,40}[ ]*$/",
						"alertText":"* Are required minimum 3 characters"},
					"ukpostalcode":{
						"regex":"none",
						"alertText":"* Postal code invalid."},
					"ukphonehome":{
						"regex":"none",
						"alertText1":"* Telephone number not provided",
						"alertText2":"* UK telephone number without the country code, please",
						"alertText3":"* UK telephone numbers should contain 10 or 11 digits",
						"alertText4":"* The telephone number should start with a 0",
						"alertText5":"* The telephone number is either invalid or inappropriate"},	
					"uknin":{
						//"regex":"/^[0-9]{3}[ ][0-9]{3}[\-][0-9]{4}$/",
						"regex":"none",
						"alertText":"* Invalid National Insurance Number",	
						"alertText2":"* Invalid National Insurance Number, must be in AB123456C format"},	
					"ukcellphone":{
						"regex":"/^[\(][0][7][0-9]{3}[\)][ ][0-9]{3}[ ][0-9]{3}$/",
						"alertText":"* Invalid cell phone"},	
					"dates":{
						"regex":"none",
						"alertText":"* Date out of bounds"/*"* This date must be less than the next."*/,
						"alertText2":"* Date out of bounds"/*"* This date must be greater than the last."*/,
						"alertText3":"* Select Pay Frequency"}
					}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});

