function reposWindow()
{
	if (!window.opener) return
	var lnwindowtop,lnwindowLeft,lnWindowWidth,lnWindowHeight;
	lnWindowWidth = document.body.scrollWidth+30;
	lnWindowHeight = document.body.scrollHeight+34;
	
	if (lnWindowHeight>screen.height)lnWindowHeight=screen.height;
	if (lnWindowWidth>screen.width)lnWindowWidth=screen.width;
	
	lnwindowtop = (screen.width - lnWindowWidth)/2;
	lnwindowLeft = (screen.height - lnWindowHeight)/2;
	resizeTo(lnWindowWidth,lnWindowHeight);
	moveTo(lnwindowtop,lnwindowLeft);
}	
reposWindow();
