// PopUpFunktion, die das Fenster zentriert ausgibt
// Aufruf mit "PopUp('deineDatei.html',600,400,'PopUpName');

function PopUp(datei, hoehe, breite, win_name)
{
	// Position errechnen
	new_left = (screen.width-breite)/2;
	new_top  = (screen.height-hoehe)/2;

	if(new_top > 100)
	{
		new_top = new_top -100;
	}
	else
	{
		new_top = 0;
	}

	// Fenster öffnen
	var PopUp = window.open(datei,win_name,"height=" + hoehe +",width=" + breite + ",top=" + new_top + ",left=" + new_left +",resizeable=yes");

	// Fenster in Fokus
 	PopUp.focus();
}

function PopUpFull(datei)
{

	winWidth = 400; // sets a default width for browsers who do not understand screen.width below
	winheight = 400; // ditto for height

	if (screen)
	{ 	// weeds out older browsers who do not understand screen.width/screen.height
   		winWidth = screen.width;
   		winHeight = screen.height;
	}

	// this function calls a popupWindow where
	// win is the page address i.e. '../page.htm'

	newWindow = window.open(datei,'newWin','toolbar=no,location=no,scrollbars=no,resizable=yes,width='+winWidth+',height='+winHeight+',left=0,top=0');
	newWindow.focus();

}