function Search() {
  this.do_click = function(obj) {
    obj.style.display = 'none';
    obj = document.getElementById('gesamtsuche');
    obj.style.display = 'block';
    obj.focus();
  }
  
  this.do_focus = function(obj) {
    obj.style.display != 'block' ? obj.style.display = 'block' : 0;
    obj = document.getElementById('srch_hdr');
    obj.style.display = 'none';
  }
  
  this.do_blur = function(obj) {
    if (obj.value == '') {
      obj = document.getElementById('srch_hdr');
      obj.style.display = 'block';
    }
  }
}

var srch = new Search();