
function openpopup(strUrl, intWidth, intHeight, showToolBars) {
	var left = (screen.width-intWidth)/2;
	var top = (screen.height*0.8-intHeight)/2;
	var toolCode;
	if(showToolBars != true) toolCode = "toolbar=no,location=no,directories=no,resizable=no,status=no,menubar=no,";
		else toolCode = "toolbar=yes,location=yes,directories=yes,resizable=yes,status=yes,menubar=yes,scrollbars=yes,";
	
	newWin = window.open(strUrl, "popup", "width="+intWidth+",height="+intHeight+","+toolCode+"screenX=100,screenY=100, left="+left+", top="+top);
}
