function launchWin(url, name, width, height, otherfeatures, center)
{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;
	if(center > 0)
	{
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
	}
	else
	{
	str += ",left=218,screenX=" + xc;
    str += ",top=265,screenY=" + yc;
	}
  }
  newwin = window.open(url, name, str + ', scrollbars=yes, ' + otherfeatures);
  if(parseInt(navigator.appVersion) >= 4)
  {
    //delay a bit here because IE4 encounters errors
    //when trying to focus a recently opened window
     setTimeout('newwin.focus();',250);
  }
}
