/*
 * ClearText
 *
 */

(function($) {
$.fn.extend({
ClearText: function(oConfig) {
this.bind("focus", function(e) {
var _this = $(this);

if (_this.attr("value") == _this.attr("defaultValue")) {
_this.attr("value", "");
}
});
this.bind("blur", function(e) {
var _this = $(this);

if (_this.attr("value") == "") {
var defaultVal = _this.attr("defaultValue");
_this.attr("value", defaultVal)
}
});
}
});

$(document).ready(function() {
$("input.clear").ClearText();
});
})(jQuery);
