document.forms["searchform"].elements["query"].onfocus = function() {
    this.value = "";
    this.onfocus = null;
}