jQuery.fn.defaultText = function() {
	var self = this;
	$('form').submit(function() {
		$(self).each(function() {
			var t = $(this);
			if (t.val() == t.attr('title') && t.hasClass('default')) {
				t.val('');
			}
		});
	});
	return $(this).blur(function() {
		var t = $(this);
		t.attr("autocomplete", "off");
		if (t.val() == '') {
			t.addClass('default');
			t.val(t.attr('title'));
		}
	}).focus(function() {
		var t = $(this);
		if (t.val() == t.attr('title') && t.hasClass('default')) {
			t.val('');
			t.removeClass('default');
		}
	}).blur();
};

/*
$(document).ready(function() {
	$('input[type="text"]').defaultText();
});
*/
