function _OpenBetaalterminalApp(url, WinWidth, WinHeight, WinOptions)
{
	// validate required parameter
	if (url == null) alert("OpenWindowCentered: missing url");

	// set default window width
	if (WinWidth == null) WinWidth = 1000

	// set default window height
	if (WinHeight == null) WinHeight = 675

	if (WinOptions == null)
	{
		// set default window options
		WinOptions = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"
	}
	
	// half the screen width minus half the new window width (plus 5 pixel borders).
	var iMyWidth = (window.screen.width/2) - ((WinWidth/2) + 10)
	// half the screen height minus half the new window height (plus title and status bars).
	var iMyHeight = (window.screen.height/2) - ((WinHeight/2) + 50)

	// open the window
	var newwin = window.open(url, "btapp", "height=" + WinHeight + ",width=" + WinWidth + ",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ',' + WinOptions)

	// set the focus to it
	newwin.focus()
}

function OpenAppPopup(app)
{
	//alert('Under Construction!')
	var href = 'http://betaalterminal.hbd.nl/app/index.cfm?app=' + app
	_OpenBetaalterminalApp(href)
}

