//----------------------------------------------------------------------------------
// function NewsPopup
//     Öffnet neues Fenster und zeigt angegebene html-Datei darin an
//     zum Anzeigen von ausführlicheren News
//----------------------------------------------------------------------------------
function NewsPopup(PopupName) {
window.open(PopupName, "popup_window",
            "left=350,top=150,width=670,height=400,dependent=yes,resizable=yes,"+
            "scrollbars=yes,menubar=no,status=no,toolbar=no");
}

//----------------------------------------------------------------------------------
// function TKPopup
//     Öffnet neues Fenster und zeigt angegebene html-Datei darin an
//     zum Anzeigen von ausführlicheren Infos zu einem Tanzkreis
//----------------------------------------------------------------------------------
function TKPopup(PopupName) {
window.open(PopupName, "popup_window",
            "left=200,top=150,width=670,height=500,dependent=yes,resizable=yes,"+
            "scrollbars=yes,menubar=no,status=no,toolbar=no");
}

//----------------------------------------------------------------------------------
// function PictPopup
//     Öffnet neues Fenster und zeigt angegebene Grafik-Datei darin an
//         (mit weißem Rand)
//     zum Anzeigen von Fotos/Grafiken
//----------------------------------------------------------------------------------
function PictPopup(URL, WIDTH, HEIGHT) {
timeout = 0;
windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);

text = "<html><head><title>Imperial Club Hamburg</title></head><body bgcolor='white'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><center><img src='" + URL + "' width='" + WIDTH + "' height='" + HEIGHT + "'>";

if (timeout != 0)
  text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text += "</center></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
