/* open new centered window with scrolling ability */
/* USAGE: javascript:openWin('filename.html','windowname', width, height); */

function popWinScroll(url,name,popW,popH) {
        version = navigator.appVersion;
	var w = 800, h = 600;
        if (version.toLowerCase().indexOf("mac")!=-1) {
                    popW = eval("popW-18");
        }
	if (document.all || document.layers) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=yes,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);
}

/* open new centered window without scrolling ability */
/* USAGE: javascript:openPop('filename.html','windowname', width, height); */

function popWin(url,name,popW,popH) {
        version = navigator.appVersion;
	var w = 800, h = 600;

	if (document.all || document.layers) {
		w = screen.availWidth;
		h = screen.availHeight;
	}
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=no,toolbar=no,status=no,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);
}

