

(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"},		
					"phone":{
						"regex":"/(^\\(?[0-9]{3,3}\\)?[\\s-\\.]?[0-9]{3,3}[\\s-\\.]?[0-9]{4,4}([\\s0-9a-zA-Z]{0,6})$)|(Phone)|(phone)/", 
						"alertText":"* Format phone numbers as (123) 555-1212 x123"},	
					"fax":{
						"regex":"/(^\\(?[0-9]{3,3}\\)?[\\s-\\.]?[0-9]{3,3}[\\s-\\.]?[0-9]{4,4}([\\s0-9a-zA-Z]{0,6})$)|(Fax)|(fax)/", 
						"alertText":"* Format fax numbers as (123) 555-1212 x123"},	
					"mobile":{
						"regex":"/(^\\(?[0-9]{3,3}\\)?[\\s-\\.]?[0-9]{3,3}[\\s-\\.]?[0-9]{4,4}([\\s0-9a-zA-Z]{0,6})$)|(Mobile)|(mobile)/", 
						"alertText":"* Format mobile numbers as (123) 555-1212 x123"},	
					"url": {
						"regex":"/(^https?:\\/\\/(.*))|(web site)/i",
						"alertText":"* Invalid URL, copy/paste the complete URL"},
					"url_facebook": {
						"regex":"/(^https?:\\/\\/(.*))|(Facebook Page)|()/i",
						"alertText":"* Invalid URL, copy/paste the complete URL"},
					"url_twitter": {
						"regex":"/(^https?:\\/\\/(.*))|(Twitter Page)|()/i",
						"alertText":"* Invalid URL, copy/paste the complete URL"},
					"url_linkedin": {
						"regex":"/(^https?:\\/\\/(.*))|(Linkedin Profile)|()/i",
						"alertText":"* Invalid URL, copy/paste the complete URL"},
					"email":{
						"regex":"/([a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$)|(email)/",
						"alertText":"* Invalid email address"},	
					"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"},	
					"onlyDecimal":{
						"regex":"/^[\.0-9\ ]+$/",
						"alertText":"* Decimal Numbers only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special caracters allowed"},	
					"ajax_signup_default":{
						"file":"/ajax_functions/default_check_signup.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"ajax_supplier_default":{
						"file":"/ajax_functions/default_check_supplier.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"ajax_event_planner_default":{
						"file":"/ajax_functions/default_check_event_planner.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"ajax_rfp_default":{
						"file":"/ajax_functions/default_check_rfp.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"ajax_contact_list_default":{
						"file":"/ajax_functions/default_check_contact_list.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"ajax_room_default":{
						"file":"/ajax_functions/default_check_room.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},		
					"ajax_facility_default":{
						"file":"/ajax_functions/default_check_facility.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"ajax_bizlead_default":{
						"file":"/ajax_functions/default_check_bizlead.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},
					"ajax_cvb_default":{
						"file":"/ajax_functions/default_check_cvb.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},
					"ajax_bizlead_default_allowed":{
						"file":"/ajax_functions/default_check_bizlead_url.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is optional but if present, must be a valid URL"},
					"ajax_default":{
						"file":"/ajax_functions/default_check.php",
						"alertTextOk":"",	
						"alertTextLoad":"",
						"alertText":"* This field is required"},	
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* Letters only"}
					}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
