// this script opens a new window centered on the screen
// it takes these parameters:
// popUrl=the url of the window to open
// popName=the name of the window
// popW=the width of the window
// popH=the height of the window
// addParams=additional parameter, starting with, and separated by, a comma

function popWin(popUrl,popName,popW,popH,addParams) {
	var h,w
	h = screen.height
	w = screen.width
	var l,t
	l = parseInt((w-popW)/2)
	t = parseInt((h-popH)/2)

	newWin=window.open(popUrl,popName,'dependent,width='+popW+',height='+popH+',left='+l+',top='+t+addParams);
	newWin.focus();
}
