

(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<br /><small>Click to close this notice</small>",
						"alertTextCheckboxMultiple":"* Please select an option<br /><small>Click to close this notice</small>",
						"alertTextCheckboxe":"* This checkbox is required<br /><small>Click to close this notice</small>"},
					"length":{
						"regex":"none",
						"alertText":"*Between ",
						"alertText2":" and ",
						"alertText3": " characters allowed<br /><small>Click to close this notice</small>"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded<br /><small>Click to close this notice</small>"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Please select ",
						"alertText2":" options<br /><small>Click to close this notice</small>"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Your field is not matching"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Invalid phone number<br /><small>Click to close this notice</small>"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",

						"alertText":"* Invalid email address<br /><small>Click to close this notice</small>"},	
					"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<br /><small>Click to close this notice</small>"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special caracters allowed<br /><small>Click to close this notice</small>"},	
					"chkSSN":{
						"regex":"/^([0-9]{3}[-]*[0-9]{2}[-]*[0-9]{4})*$/",
						"alertText":"* Please enter a valid SSN<br /><small>nnn-nn-nnnn</small><br /><small>Click to close this notice</small>"},	
					"chkEIN":{
						"regex":"/^([1-9]{2}[-]*[0-9]{7})$/",
						"alertText":"* Please enter a valid EIN<br /><small>nn-nnnnnnn</small><br /><small>Click to close this notice</small>"},	
					"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<br /><small>Click to close this notice</small>"},
					"validate2fields":{
    					"nname":"validate2fields",
    					"alertText":"* You must have a firstname and a lastname"}	
					}	
					
		}
	}
})(jQuery);

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