function OpenNewWindow(windowName, useURL, useWidth, useHeight)
{
  strBrowserName=navigator.userAgent;
  strBrowserVersion=navigator.appVersion.substring(0,1);
  if ((strBrowserName.lastIndexOf("MSIE")==-1) || (strBrowserVersion!=4))
  {
    NewWindow = window.open(useURL,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=" + useWidth + ",height=" + useHeight + ",top=0,left=0");
		NewWindow.focus();
  }
  else // IE4 (not others) throws an error if focusing on a window on another domain
	{
    NewWindow = window.open(useURL,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=" + useWidth + ",height=" + useHeight + ",top=0,left=0");
  }
	return false;
}
