function OpenActivityWindow(szURL, szWidth, szHeight, fNoScrollBars, fDoSkipCheck, iOffset)
{ 
  // The /empty.htm is needed by AOL, otherwise it will not let you set focus.
  if (szURL == null) szURL = "/empty.htm";
  if (szWidth == null) szWidth = "776";
  if (szHeight == null) szHeight = "536";
  if (isMac) {
    szMenuBar = "yes";
  } else {
    szMenuBar = "no";
  }
  if (fNoScrollBars == null) fNoScrollBars = true;
  if (fNoScrollBars) {
    szScrollbars = "no";
  } else {
    szScrollbars = "yes";
  }
  szResize = "yes";
  iWidth = parseInt(szWidth);
  iHeight = parseInt(szHeight);

  if (iHeight > screen.availHeight-34) iHeight = screen.availHeight-34;
  if (iWidth > screen.availWidth) iWidth = screen.availWidth;

  iLeft = ((screen.availWidth)/2) - (iWidth / 2);
  if (iLeft < 0) iLeft = 0;
  iTop = ((screen.availHeight-34)/2) - (iHeight / 2);
  if (iTop < 0) iTop = 0;
  if(iOffset != null) {
	iTop += iOffset;
	iLeft += iOffset;
  }

  // alert("Screen:" +  + screen.availWidth+ "," + screen.availHeight +
  //       "Width/Height:" +  + iWidth + "," + iHeight +
  //       "LeftTop:" + iLeft  + "," + iTop);
		       
  if (isNav == true /* && rBrowserVersion < 6.0 */) {
 	 remoteWindow = window.open(szURL ,"",
                             "width="+ iWidth + 
                             ",height=" + iHeight + 
                             ",status=no,menubar=" + szMenuBar + "," +
                             "toolbar=no,scrollbars=" + szScrollbars + ",resizable=" + szResize +
			     ",ScreenX=" + iLeft + ",ScreenY=" + iTop);
  } else {
 	 remoteWindow = window.open(szURL ,"",
                             "width="+ iWidth + 
                             ",height=" + iHeight + 
                             ",status=no,menubar=" + szMenuBar + "," +
                             "toolbar=no,scrollbars=" + szScrollbars + ",resizable=" + szResize +
			     ",top=" + iTop + ",left=" + iLeft );
  }	
}

