function openAWindow(pageToLoad, winName, width, height, center, resize, scroll) {

	xposition=0; yposition=0;

	if (resize==null) { resize=0; }
	if (scroll==null) { scroll=1; }

	if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}

	args = "width=" + width + ","
		+ "height=" + height + ","
		+ "location=0,"
		+ "menubar=0,"
		+ "resizable=" + resize + ","
		+ "scrollbars=" + scroll + ","
		+ "status=0,"
		+ "titlebar=0,"
		+ "toolbar=0,"
		+ "hotkeys=0,"
		+ "screenx=" + xposition + ","  //NN Only
		+ "screeny=" + yposition + ","  //NN Only
		+ "left=" + xposition + ","     //IE Only
		+ "top=" + yposition;           //IE Only
	var win= window.open( pageToLoad,winName,args );
	win.focus();
}
