/*
 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["postcode"] = {
		        // UK zip codes
		        "regex": /^[1-9][0-9]{3}[ ]*[A-Z]{2}$/,
				"alertText": "* Geen geldige postcode"
		};
		$.validationEngineLanguage.allRules["onlyLetNumSpec"] = {
				// Good for database fields
				"regex": /^[0-9a-zA-Z_-]+$/,
				"alertText": "* Only Letters, Numbers, hyphen(-) and underscore(_) allowed"
		};
	//	# more validations may be added after this point
	}
})(jQuery);

function checkAmount(field, i, options){
	//otherField = field.parent().prev().children('select');
	/*alert(otherField.val());
	alert(field.val());
	
	if(field.val() == ""){
		alert('a');
		} else {
			alert('b');
			}*/
	
	//if(otherField.val() != "" && field.val() == ""){
		//alert('bam');
		return '* U moet ook rechts een aantal invullen';
	//}
}


