/*
wenn das popup geladen ist, wird die höhe
des fensters so gross wie nötig/möglich gemacht
*/
function updatePopupSize(popup)
{
	maxW 	= screen.availWidth;
	newW 	= document.width+5;
	maxH 	= screen.availHeight;
	newH 	= document.height+10;
	if(newW > maxW) newW = maxW;
	if(newH > maxH) newH = maxH;
	popup.outerWidth 	= newW;
	popup.outerHeight 	= newH;
	popup.resizeTo(newW, newH);
	l = Math.round((maxW-newW)/2);
	t = Math.round((maxH-newH)/2);
	popup.moveTo(l,t);
}