// JavaScript Document
function popUpWindow(cPopUrl, cPopName, iPopWidth, iPopHeight, bScrollBars) {
//cPopUrl = the name of url to call, bScrollBars = if 'no' or blank, no bars will appear.
	var iPopLeft, iPopTop;
	var oPopWindow = null;
	if (!oPopWindow || oPopWindow.closed){
		//Center popup window inside parent window.
		iPopLeft = (window.screen.width/2) - ((iPopWidth/2) + 10);
		iPopTop = (window.screen.height/2) - ((iPopHeight/2) + 50);
		//Open popup window
		oPopWindow=open(cPopUrl, cPopName,"height="+ iPopHeight +",width="+ iPopWidth +",left=" + iPopLeft + ",top=" + iPopTop + ",screenX=" + iPopLeft + ",screenY=" + iPopTop + ",scrollbars=" + bScrollBars + ", status=yes");
		oPopWindow.location.href = cPopUrl;
		oPopWindow.focus()
    } else {
    	oPopWindow.focus()
	}
}