

(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"},
					"customerPhone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"IF Your are a international customer, please enter Zero in this field and ALL international dialing options to the right."},
					"passangerName":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Enter The Passangers Name, This is Required for Boarding."},
					"depDate":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Enter Your Departure Date."},
					"chooseCity":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Select a City."},
					"contactMethod":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Choose a Method of Contact. This Will Allow us to Notify The Passanger if Needed."},
					"billingFirst":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Enter Your First Name Exactly as it Appears on Card"},
					"billingLast":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Enter Your Last Name Exactly as it Appears on Card"},
					"billingZip":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Please Enter the Billing Zip / Postal Code of the Card"},
					"cardType":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"Please Select Your Credit Card Type"},
					"cardNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Please Enter Your Card Number"},
					"cardMonth":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Card Experation Month"},
					"cardYear":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Card Experation Year"},
					"cardCvv":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"Enter CVV Card Information"},
					"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"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"You must have a firstname and a lastname"}	
					}	
					
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});