//---------------------------------------------
//Diverse Javascript Funktionen für das
// Projekt Blumenstock-online
//---------------------------------------------

// FENSTER-Funktion für externe Docs wie Route
// Parameter: HTML-Datei
//            WindowName
//            Breite
//            Höhe
//            Abstand von links
//            Abstand von oben
function popwin(fileName, winName, xwidth, xheight, xleft, xtop) {
var win = null;
var winAttr = "";

 xwidth   = parseInt(xwidth);
 xheight  = parseInt(xheight);
 xleft    = parseInt(xleft);
 xtop     = parseInt(xtop);

if(xwidth == 0 || xwidth == null || xheight == 0 || xheight == null) {
  winAttr = "left="+xleft+","+
            "top="+xtop+","+
            "resizable=yes";

  } else {
  winAttr = "width="+xwidth+","+
            "height="+xheight+","+
            "left="+xleft+","+
            "top="+xtop+","+
            "resizable=yes";
}

<!-- window.alert(winAttr);-->
win=window.open(fileName,winName,winAttr);
<!--win=window.open(fileName,"externdoc","width=620,height=660,left=10,top=5,scrollbars=no,resizable=no");-->
win.focus();
}