jQuery.fn.highlight = function(invalidFields, options) {
	options = jQuery.extend({
		labelSuffix: '_label',
		errorClass: 'error'
	}, options);
	
	$(invalidFields).each(function (index, field){
		var fieldString = field.replace('[', '_').replace(']', '_')+options.labelSuffix;
		var label = $('#'+fieldString);
		if (label && jQuery.inArray(label, this)) {
			label.addClass(options.errorClass);
		}
	});
};