function initPopup(){
    theWidth = window.opener.winWidth;
	theHeight = window.opener.winHeight;
	theOffset = 10;

	window.resizeTo(theWidth,theHeight);
	window.moveTo(screen.width/2-theWidth/2+theOffset, screen.height/2-theHeight/2);
}

function bigPopup(theFilepath2, theWinName2, scrollStat2, resizeStat2, winWidth2, winHeight2){
    if( !scrollStat2 ){
		scrollStat2='yes';
	}
	if( !resizeStat2 ){
		resizeStat2='yes';
	}
	if( !winWidth2 ){
		winWidth2=550;
	}
	if( !winHeight2 ){
		winHeight2=340;
	}
	theFilepath=theFilepath2;
	theWinName=theWinName2;
	scrollStat=scrollStat2;
	resizeStat=resizeStat2;
	winWidth=winWidth2;
	winHeight=winHeight2;

	fenster = window.open(theFilepath, theWinName,'scrollbars='+scrollStat+',resizable='+resizeStat+',width='+winWidth+',height='+winHeight);
	fenster.focus();

}
