

(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":"/^\\(\\d{3}\\)\\s\\d{3}-\\d{4}$/",
						"alertText":"* Enter telephone number in (000) 000-0000 format"},	
					"telephoneUS":{
						"nname": "validatePhoneUS",
						"alertText":"* Enter telephone number in (000) 000-0000 format"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* Enter email address in name@example.com format"},	
					"dateMySQL":{
                        "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                        "alertText":"* Enter date in YYYY-MM-DD format"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Numbers only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special characters allowed"},	
					"ajaxUser":{
						"file":"validateUser.php",
						"extraData":"name=user",
						"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"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* You must enter a firstname and a lastname"},	
					"relationshiptoapplicant":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* Relationship to Applicant (father, uncle, parent, etc.)"},
					"checkroutingnum":{
						"regex":"/^[0-9{9}+$/",
						"alertText":"* 9-digit Bank routing number from bottom of your check"},
					"checkaccountnum":{
						"regex":"/^[0-9{10}+$/",
						"alertText":"* 10-digit Checking account number from bottom of your check"},
					"vehicleyear":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Year this vehicle was made"},	
					"vehiclemake":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* Vehicle make (Ford, BMW, Subaru, etc."},
					"vehiclemodel":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Vehicle model (Impala, Prius, Taurus"},
					"vehiclecolor":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Color"},
					"vehiclelength":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Length (feet)"},
					"address":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter street address, letters and numbers only"},	
					"firstname":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter person's first name"},	
					"lastname":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter person's last name"},	
					"personname":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter complete (first and last) name"},	
					"pettype":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter pet type (breed)"},	
					"petweight":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter pet's weight (pounds)"},	
					"petage":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* Enter pet's age (years)"},	
					"dateMDY":{
                        "regex":"/^[0-9]{1,2}\\/[0-9]{1,2}\\/[0-9]{4}$/",
                        "alertText":"* Enter date in MM/DD/YYYY format"},
					"dob":{
                        "regex":"/^[0-9]{1,2}/\[0-9]{1,2}/\[0-9]{4}$/",
                        "alertText":"* Enter date of birth, must be in MM/DD/YYYY format"},
					"driverlicense":{
                        "regex":"/^[0-9a-zA-Z]+$/",
                        "alertText":"* Enter Driver License Number, letters and numbers only"},
					"ssn":{
						"regex":/^\d{3}-(\d{2})-(\d{4})?$/,
						"alertText":"* Social Security/Tax ID Number format: 12-345-6789"},
					"zipcode":{
						"regex":/\d{5}(-\d{4})?$/,
						"alertText":"* Use either 5 digit Zip Code or Zip+4 format: 12345-6789"},
					"currency":{
						"regex":"/^[-]?([1-9]{1}[0-9]{0,}(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|\.[0-9]{1,2})$/",
						"alertText":"* Must be '1,000.00' format with only numbers, commas, decimal point"},
    				"validMonthYear":{
	    				"nname": "validMonthYear",
	    				"alertText": "* Enter credit card month/year expiration (must be today's date or later)"},
					"validCC":{ 
					         "nname":"validCC", 
					         "alertText":"* Enter a valid Mastercard, Visa, Discover or American Express card Number"}, 
					"validCVV": {
							"nname":"validCVV",
							"alertText":"* Enter the 3 or 4 digit verification number from the back of your card."},
					"validST": {
							"nname":"validST",
							"alertText": "Use USPS 2-letter abbreviation (e.g., 'IN' for Indiana)."}
					}
     					
		}
	}
})(jQuery);

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