// JavaScript Document

function parentRefresh()
{
	window.opener.document.location.reload(); 
}

function closeWindow()
{
	window.close();
	parentRefresh();
}

// script voor het centreren van een popup
function openBrWindowCenter(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function logoff()
{
	var logoff_window = confirm("Are you sure you want to log off?");
	if (logoff_window == true)
	{
		document.location.href = "content.php?action=logoff";
	}
}