/*popup a window with a help message */
function popup(width, height, text) { 
	//opts = 'width=' + width + ', height=' + height + ', x=500,y=500'; 
	try { 
		newWindow.close();
	} catch (er) { } 
	//newWindow = window.open('', 'newWin', opts); 
	newWindow = openCenteredWindow('', height, width, 'newWin'); 
	newWindow.document.write(text); 
} 
	
function openCenteredWindow(url, height, width, name, parms) {
/* ref:  http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigator&U=87256B14007C5C6A87256B5B0055CF15 */ 
;
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   return win;
}	

function openNewWindow(url, name, width, height) {
	popupWin = window.open(url,name,width,height);	
}
