<!--

var Fig=0;
  /* Initialisierung der Variablen, die spaeter mal auf das Fensterobjekt verweist */

function ClosePopUp()
/* diese Funktion schliesst (so geoeffnet) das Popup-Fenster */
{
  if (!Fig)          /* wenn noch nicht geoeffnet */
    return;                /* nix zu tun, Abbruch */
  if (Fig.closed)    /* wenn schon zugemacht */
    return;                /* nix zu tun, Abbruch */
  Fig.close();       /* mach zu */
}


function Bildfenster(url, Name, w, h) {
ClosePopUp()             /* erstmal bisher geoeffnetes Popup zumachen */
if (typeof w == "string") w = parseInt(w);
if (typeof h == "string") h = parseInt(h);
var poph = h + 30;
var popw = w + 30;
Fig = window.open("","Bild","height=" + poph + ",width=" + popw + ",left=50,top=10");
var content = '<HTML>';
content += '<HEAD>';
content += '<TITLE>';
content += Name;
content += '<\/TITLE>';
content += '<\/HEAD>';
content += '<body bgcolor="#333333">';
content += '<p align="center"><img src=' + url + ' alt="' + Name + '" height=' + h + ' width=' + w + '><\/p>';
content += '<\/BODY><\/HTML>';
Fig.document.open();
Fig.document.write(content);
Fig.document.close();
Fig.focus();
}

function Bildfensterfarbe(url, Name, w, h, farbe) {
ClosePopUp()             /* erstmal bisher geoeffnetes Popup zumachen */
if (typeof w == "string") w = parseInt(w);
if (typeof h == "string") h = parseInt(h);
var poph = h + 30;
var popw = w + 30;
Fig = window.open("","Bild","height=" + poph + ",width=" + popw + ",left=50,top=10");
var content = '<HTML>';
content += '<HEAD>';
content += '<TITLE>';
content += Name;
content += '<\/TITLE>';
content += '<\/HEAD>';
content += '<body bgcolor="#' + farbe + '">';
content += '<p align="center"><img src=' + url + ' alt="' + Name + '" height=' + h + ' width=' + w + '><\/p>';
content += '<\/BODY><\/HTML>';
Fig.document.open();
Fig.document.write(content);
Fig.document.close();
Fig.focus();
}

function Objektfenster(url, ersatz, Name, w, h) {
ClosePopUp()             /* erstmal bisher geoeffnetes Popup zumachen */
if (typeof w == "string") w = parseInt(w);
if (typeof h == "string") h = parseInt(h);
var poph = h + 30;
var popw = w + 30;
Fig = window.open("","Bild","height=" + poph + ",width=" + popw + ",left=50,top=10");
var content = '<HTML>';
content += '<HEAD>';
content += '<TITLE>';
content += Name;
content += '<\/TITLE>';
content += '<\/HEAD>';
content += '<body bgcolor="#222222">';
content += '<p align="center"><object data=' + url + ' type="image/svg+xml" width=' + w + ' height=' + h + '><img src=' + ersatz + ' alt="' + Name + '" height=' + h + ' width=' + w + '><\/object><\/p>';
content += '<\/BODY><\/HTML>';
Fig.document.open();
Fig.document.write(content);
Fig.document.close();
Fig.focus();
}

//-->

