var UA=navigator.userAgent;
	is_gecko=/gecko/i.test(UA);
	is_opera=/opera/i.test(UA);
	is_mac=/mac_powerpc/i.test(UA);
	is_ie=/msie/i.test(UA)&&!is_opera&&!is_gecko&&!is_mac;
	is_nn4=(document.layers)?true:false;

function popupWindow(goLocation,wname,wdth,hght,toolbr,info)
{
 var v=parseInt(navigator.appVersion);
 isNetscape=navigator.appName.indexOf('Netscape')>=0;
 isExplorer=navigator.appName.indexOf('Explorer')>=0;

 var ww = wdth;
 var wh = hght;

 positionCode='';

 if(v>=4)
 {
  if(isExplorer) positionCode='left='+(screen.width/2-ww/2)+',top=40';
  if(isNetscape) positionCode='screenX='+(screen.width/2-ww/2)+',screenY=40';
 }

 newWindow=window.open(goLocation,wname,
 'width='+ww+',height='+wh+','+
 positionCode+
 'location=0,'+
 'toolbar='+toolbr+','+
 'scrollbars=1,'+
 'status=1,'+
 'resizable=1');
  if(v>=3) newWindow.focus();
  return false;
}
