/* ====================================================================================================
Funktion:			Popup-Fenster öffnen
Aufruf:				fenster('URL', 'NAME', WIDTH,HEIGHT, 'no', LINKS, OBEN);
Features:			WIDTH / HEIGHT können "_max" gesetzt werden

letzte Änderung:	2002-11-08
==================================================================================================== */

function fenster(url, name, breite, hoehe, scrolling, links, oben){
	var screenWidth = screen.availWidth - 10;
	var screenHeight = screen.availHeight - 30;

	if (breite == "_max") breite = screenWidth;
	if (hoehe == "_max") hoehe = screenHeight;

	if (!links) links = Math.round((screen.availWidth - breite) / 2);
	if (!oben) oben = Math.round((screen.availHeight - hoehe) / 2);

	window.open(url, name, 'width='+breite+',height='+hoehe+'resizeable=yes,scrollbars=' + scrolling + ',top='+oben+',left='+links);
}
