function openSat(uri, target, width, height, mode) { parameter = ""; switch (mode) { // Satellite (Page, Article,...) case 0: parameter = "width="+width+",height="+height+ ",menubar=yes,scrollbars=yes,resizable=yes,status=no,toolbar=no,location=no"; break; // Picture-Satellite case 1: width+=20; height+=20; parameter = "width="+width+",height="+height+ ",menubar=yes,scrollbars=no,resizable=yes,status=no,toolbar=no,location=no"; break; // Catalogue-Selector-Satellite case 2: parameter = "width="+width+",height="+height+ ",menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no,location=no"; break; } if (mode < 3) { sat=window.open(uri, target, parameter); } else { // Catalogue-Selector-Satellite sat=window.open(uri, target ); } /* die Fenstergröße wird hier für IE und Picture-Satellite optimiert, da dieser bei "sat.resizeTo" das Fenster zu klein macht.*/ if (document.all) { width+=12; height+=61; } // Mindestbreite des Fensters if (width<120) width=120; sat.resizeTo(width,height); sat.focus(); } function openTeaser(uri, target) { teaserWindow = window.open(uri, target); teaserWindow.focus(); }