jQuery(function(){
    var last_value = "";
    jQuery(".search_form input").focus(function() {
        if (!jQuery(this).hasClass("modified")) {
            last_value = this.value; 
            this.value = "";
        }
    });
    jQuery(".search_form input").blur(function() {
        if (!jQuery(this).hasClass("modified")) {
            if (!this.value) this.value = last_value;
            else jQuery(this).addClass("modified")
        }
    });
});