function popup(picture, width, height) {
    xsize = width; 
    ysize = height;
    
    ScreenWidth = screen.width;
    ScreenHeight = screen.height;

    xpos = (ScreenWidth / 2) - (xsize / 2);
    ypos = (ScreenHeight / 2) - (ysize / 2);
	
	
try { 
  if (Bildpopup.closed == false) throw "offen"; 
  } 
  catch (e) { 
     if (e=="offen") { 
     Bildpopup.close(); 
     } 
  } 
	
	Bildpopup = window.open("popup.htm?"+picture,"picture","height=" + ysize + ",width=" + xsize + ",scrollbars=no,resizeable=yes,toolbar=no,menubar=no,location=no,top=" + ypos + ",left=" + xpos);
}
function popupp(what) {
	NF=window.open('print.php?source='+what,'neu','width=625,height=550');
	NF.focus;
}
function popupf(what) {
	NF=window.open('flash.php?source='+what,'neu','width=400,height=300');
	NF.focus;
}
