
// im popup-dokument: <body ... onLoad="initPopup()"
// link im hauptdokument: <a href="javascript:hardware_popup('bundle2_pu.htm', 'Bundle2','no','no','550','500');" target="_self">

var theFilepath, theWinName, scrollStat, resizeStat, winWidth, winHeight;

function initPopup()

{

	// masse festlegen

	theWidth = window.opener.winWidth;

	theHeight = window.opener.winHeight;

	theOffset = 10;



	// grösse anpassen und ausrichten

	window.resizeTo(theWidth,theHeight);//



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


}



function openPopup(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();

}

