// pass in jQuery so we can use $ shortcut
(function($) {
	$.fn.enable = function() {
		return this.each(function() {
			$(this).removeClass("disabled");
			$(this).removeAttr("disabled");
			$(this).find(":input").removeAttr("disabled");
		});
	};

	$.fn.disable = function() {
		return this.each(function() {
			$(this).addClass("disabled");

			if ($(this).is(":input"))
			{
				$(this).attr("disabled", "disabled");
			}

			$(this).find(":input").attr("disabled", "disabled");
		});
	};
})(jQuery);