
// Last updated: 5.27.04

function makeWin(url, winWidth, winHeight, chrome) {

var fixedTop = '200';
var fixedLeft = '200';

  if (!chrome) {
    chrome = 0;
  }
  
  
  if (navigator.product == "Gecko") {
	mister = window.open(url, 'new','toolbar=0,location='+chrome+',directories=0,status='+chrome+',menubar=0,scrollbars=1,resizable=1,copyhistory=0,width='+winWidth+',height='+winHeight+',top='+fixedTop+',left='+fixedLeft);
	mister.location = url;
  }
  else {
	  if (navigator.appName == "Netscape" || navigator.appName == "Microsoft Internet Explorer" && parseFloat(navigator.appVersion) >= 4) {
		var screenPosX,screenPosY;
		screenPosX = (screen.availWidth - winWidth) /2;
		screenPosY = (screen.availHeight - winHeight) /2;
		window.open(url, 'new','toolbar=0,location='+chrome+',directories=0,status='+chrome+',menubar=0,scrollbars=0,resizable=1,copyhistory=0,width='+winWidth+',height='+winHeight+',screenX='+screenPosX+',screenY='+screenPosY);
	  }
	  else {
		mister = window.open(url, 'new','toolbar=0,location='+chrome+',directories=0,status='+chrome+',menubar=0,scrollbars=1,resizable=1,copyhistory=0,width='+winWidth+',height='+winHeight+',top='+fixedTop+',left='+fixedLeft);
		mister.location = url;
	  }
  }
}

