jQuery.fn.extend({
	placeholder: function(initText) {
		var clear = function() {
			$(this).val('').css('color', 'black');
			$(this).unbind('mousedown').unbind('focus', clear);
		};
		if ($(this).val() == '') { // prevent removal of content when back button is used
			$(this).val(initText).css('color', 'gray');
			$(this).mousedown(clear).focus(clear);
		}
	}
});

