
var subwindow=0;
  /* Initialisierung der Variablen, die spaeter mal auf das Fensterobjekt verweist */

function ClosePopUp()
/* diese Funktion schliesst (so geoeffnet) das Popup-Fenster */
{
  if (!subwindow)          /* wenn noch nicht geoeffnet */
    return;                /* nix zu tun, Abbruch */
  if (subwindow.closed)    /* wenn schon zugemacht */
    return;                /* nix zu tun, Abbruch */
  subwindow.close();       /* mach zu */
}

function PopUp(seite,fname,breite,hoehe)
/* oeffnet das Popup-Fenster ohne irgendwas an der Stelle (10,50) */
{
	var attribWithoutAll="location=no,menubar=no,toolbar=no,status=no";
	attribWithoutAll+=",resizable=no,scrollbars=no,";
	attribWithoutAll+=",width=";
	attribWithoutAll+=breite;
	attribWithoutAll+=",height=";
	attribWithoutAll+=hoehe;
  ClosePopUp()             /* erstmal bisher geoeffnetes Popup zumachen */
  subwindow=window.open(seite,fname,attribWithoutAll);
  subwindow.moveTo(10,50); /* Fenster nach links oben schieben */
}