/*
 This file contains validations that are too specific to be part of the core
 Please reference the file AFTER the translation file or the rules will be overwritten
 Use at your own risk. We can't provide support for most of the validations
*/
(function($){
	if($.validationEngineLanguage == undefined || $.validationEngineLanguage.allRules == undefined )
		alert("Please include other-validations.js AFTER the translation file");
	else {
		$.validationEngineLanguage.allRules["postcodeUK"] = {
		        // UK zip codes
		        "regex": /^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$/,
				"alertText": "* Invalid postcode"
		};
		$.validationEngineLanguage.allRules["onlyLetNumSpec"] = {
				// Good for database fields
				"regex": /^[0-9a-zA-Z_-]+$/,
				"alertText": "* Only Letters, Numbers, hyphen(-) and underscore(_) allowed"
		};
		$.validationEngineLanguage.allRules["dateNew"] = {
				"regex": /^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$/,
				"alertText": "* Invalid date, must be in DD/MM/YYYY format"
		};
		$.validationEngineLanguage.allRules["typeFile"] = {
				"alertText": "* Please add a file name for this type of holiday"
		};
		$.validationEngineLanguage.allRules["typeCity"] = {
				"alertText": "* Please select a city for this type of holiday"
		};
		$.validationEngineLanguage.allRules["childrenCount"] = {
				"alertText": "* Please make sure you have specified ages for all children"
		};
		$.validationEngineLanguage.allRules["paxCount"] = {
				"alertText": "* There can be a total of 4 guests in a room. Please add another room or amend your party size"
		};
		$.validationEngineLanguage.allRules["roomPaxCount"] = {
				"alertText": "* Each room must be allocated atleast one guest."
		};		
	//	# more validations may be added after this point
	}
})(jQuery);

