/* open new centered window with scrolling ability */
/* USAGE: javascript:openWin('filename.html','windowname', width, height); */


function openWin(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=yes,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);
        window.status = "";
}




/* open new centered window without scrolling ability */
/* USAGE: javascript:openPop('filename.html','windowname', width, height); */


function openPop(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=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0);
}


/* predefined pop-up function already used in site */
function popwin(theurl,thename,thewidth,theheight,special,left,top,scroll,resize) {
	if (special==1) {
			var left=(screen.width-thewidth)/2;
			var top=(screen.height-theheight)/2;
		}
	var popwin = window.open(theurl,thename,'left='+left+',top='+top+',width='+thewidth+',height='+theheight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scroll+',resizable='+resize+'');
} 