var popwin = null;

function popup(url, wid, hi, scroll)
{
	new_spec = wid + "_" + hi + scroll;
	scrolling = scroll? "yes": "no";
	if (scroll && document.all && (navigator.userAgent.indexOf("Mac") > -1)) wid = wid+17;
	popwin=window.open(url,new_spec,"WIDTH=" + wid + ",HEIGHT=" + hi + ",scrollBars=" + scrolling + ",toolbar=0, statusbar=0, menubar=0, resizable=no,screenX=100,screenY=100,left=100,top=100");
	popwin.focus();
}
