function toggleImage(name,status){
	imagepath = "img/";
	/*name = imgObjekt.name;
	// if only a filename and no image object is given
	if (name == 'undefined') name = imgObjekt;*/
	if (status==1){
		// generate the new image-path-name
		imageName = imagepath + name + "_a.gif";
	}else{
		imageName = imagepath + name + ".gif";
	}
	theImage = new Image(); 
	theImage.src = imageName;
	document.images[name].src = theImage.src;
}
function openWin(url){
  var MyWindow =0;
  var x =0;
  var breite =800;
  var hoehe =500;
  MyWindow = window.open(url,'druck','toolbar=1,location=0,directories=0,statusbar=0,menubar=1,scrollbars=yes,resizable=yes,width='+breite+',height='+hoehe);
  if (MyWindow){
    MyWindow.moveTo(screen.width/2-(breite/2+x),10);
    MyWindow.focus();
  }
}

