

(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"},
                                        "age":{
                                                "regex":"none",
                                                "alertText":"* You must be between the ages of 13-18 years old to register"},
                                        "length":{
                                                "regex":"none",
                                                "alertText":"*Between ",
                                                "alertText2":" and ",
                                                "alertText3": " characters allowed",
                                                "alertTextDigits": " digits required"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Please select ",
						"alertText2":" options"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Your field is not matching",		
                                                "alertTextEmail":"* Your email addresses do not match",
                                                "alertTextPassword":"* Your passwords do not match"},
                                        "confirm2":{
                                                "regex":"none",
                                                "alertText":"* Email cannot be the same as guardian email"},
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Invalid phone number"},	
					"email":{
						"regex":"/[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|edu|us)/",
						"alertText":"* Invalid email address"},	
                                        "date":{
                                                "regex":"/^[0-1][0-9]\\/[0-3][0-9]\\/[0-9]{4}$/",
                                                "alertText":"* Invalid date, must be in MM/DD/YYYY format",
                                                "alertTextInvalid":"* Invalid date"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Only numbers are allowed"},	
					"onlyLetters":{
						"regex":"/^[a-zA-Z\ \-]+$/",
						"alertText":"* Only letters are allowed"},	
					"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"},	
                                        "ajaxEmail":{
                                                "file":"validateEmail.php",
                                                "alertText":"* This email address is already in use",
						"alertTextLoad":"Checking email address"},		
					"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()
});

