var popups=new Array()
function picture_zoom(theURL,winName,features) {
	if (popups.length){
		if (!popups[popups.length-1].closed) popups[popups.length-1].close()
	}
	popups[popups.length] = window.open(theURL,winName,features);
	var picture=popups[popups.length-1]
	picture.focus()
}
function cleanup() {
	if (popups.length) {
		for(var i=0;i<popups.length;i++) {
			if (!popups[i].closed) {
				popups[i].close()
			}
		}
	}
}
function unload() {
	if (!window.opener) cleanup()
}
window.onunload=unload
function fokussetzen()  {
   if (document.getElementById("qfield"))
      document.getElementById("qfield").focus()
   if (document.getElementById("suchform1"))
      document.getElementById("suchform1").focus()
}
window.onload=fokussetzen
