jQuery.fn.resetDefaultValue = function() {
	function _clearDefaultValue() {
		var _$ = $(this);
		if (_$.val() == this.defaultValue) {
			_$.val('');
		}
	};
	
	function _resetDefaultValue() {
		var _$ = $(this);
		if (_$.val() == '') {
			_$.val(this.defaultValue);
		}
	};
	return this.click(_clearDefaultValue).focus(_clearDefaultValue).blur(_resetDefaultValue);
}

$(document).ready(function() {
	$('.resetValue').resetDefaultValue();
});
