

// Javascript-Funktion zu Oeffnen eines Popupfenster
// (C) 2000-2002 T. Stoeber <tobi@to-st.de>
//
// Fenster ohne MenuBar, Toolbar, Groesse aendernbar, zentriert
// NS ab 4.x, MSIE ab 4.x, andere Mozilla compatible ab 4.x
//
// Parameter: 
// URL der zu oeffnenden Seite
// Breie des Fensters (Aussen) in px
// Hoehe des Fenster (Aussen) in px

function PicWin(URL,BX,BY)
{
	var PicWnd;

        if ((navigator.appVersion.substring(0,3) >= 4.0 && navigator.appName == 'Netscape') ||
        (navigator.appVersion.substring(0,3) >= 4.0 && navigator.appName.substring(0,9) == 'Microsoft') || 
	(navigator.appVersion.substring(0,3) >= 4.0 && navigator.appCodeName == 'Mozilla'))
        {
		if ( PicWnd && PicWnd.closed == false )
		{
			PicWnd.document.location.href = URL;
                        PicWnd.moveTo( (screen.width - BX) / 2, (screen.height - BY) / 2);
                        PicWnd.focus();
		}
		else
		{
	                var AFR = "width=" + BX + ",height=" + BY + ",menubar=no,resizable=yes,toolbar=no,scrollbars=yes,scrolling=yes,status=yes";
        	        PicWnd = window.open(URL, "Bild", AFR);
                	PicWnd.moveTo( (screen.width - BX) / 2, (screen.height - BY) / 2);
	                PicWnd.focus();
		}
        }
        else
        {
		// aeltere und andere Browser minimale Variante, 
                PicWnd =
                window.open(URL, "Bild", "width=" + BX + ",height=" + BY);
        }
}

