// JavaScript Document
function popWindow(mypage, myname, w, h, scroll) {
	window.opener = self;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no,status=no';
	var win = window.open(mypage, myname, winprops);
	// try and focus the window, but we're not really that bothered!
	try { win.focus(); } catch(e) {	try { win.window.focus(); } catch(e) {}}	
}