/* in projekt_list zur Navigation Werte setzen, um GET-Variablen zu vermeiden */
var bibsuche = document.getElementById('bibsuche');
if (bibsuche) {
  var uls = bibsuche.getElementsByTagName('ul');
  if (uls) {
    var i;
    for (i in uls) {
      if (uls[i].className == 'subkat') {
	uls[i].style.display = 'none';
      }
    }
  }
}

function setVal(name,val) {
  document.getElementsByName(name)[0].value = val;
}
addLoadEvent(function() {
	       var el = document.getElementById('bibhelp');
	       el.onclick = function() {
			var win = window.open(this.href,'help','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=300,height=500,left = 0,top = 0');
			return false;
			}
		});

addLoadEvent(function() {
	var el = document.getElementById('sv1');
	el.onfocus = function() {
		if (this.value == 'Ihr Suchwort')
			this.value = '';
		};
	el.onblur = function() {
		if (this.value == '')
			this.value = 'Ihr Suchwort';
		};
	});


function toggle(id) {
  el = document.getElementById(id);

  if (el.style.display == 'block') {
    el.style.display = 'none';
  } else {
    el.style.display = 'block';
  }    
  return false;
}


