jQuery.validator.addMethod("kod_pocztowy", function(value, element) { 
		return this.optional(element) || /^[0-9]{2}-[0-9]{3}$/.test(value); 
}, "Proszę podać poprawny kod pocztowy (format: xx-xxx)");

jQuery.validator.addMethod("pldata", function(value, element) { 
		return this.optional(element) || /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(value); 
}, "Proszę podać poprawną datę (format: RRRR-MM-DD)");

jQuery.validator.addMethod("cena", function(value, element) { 
		return this.optional(element) || /^[0-9]+(,[0-9]{2})?$/.test(value); 
}, "Proszę podać poprawną cenę (format: XX,XX)");

jQuery.validator.addMethod("ilosc", function(value, element) { 
		return this.optional(element) || /^[0-9]{1,3}([,\.][0-9]{2})?$/.test(value); 
}, "Proszę podać poprawną ilość (format: XXX,XX)");


