//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
function OpenWindow(windowName, filePath, width, height, statusBar, resizable, scrollBars, openerWindow)
{ 
  newWindow = window.open(
    filePath, 
    windowName, 
    "toolbar=0,"+
    "location=0,"+
    "directories=0,"+
    "status="+statusBar+","+
    "menubar=0,"+
    "scrollbars="+scrollBars+","+
    "resizable="+resizable+","+
    "width="+width+","+
    "height="+height+"")


  if (openerWindow!=null)
  {
    newWindow.opener = openerWindow
  }
  
  // if not msie3, focus the window after 1/4 second
  if (navigator.appName && (!((navigator.appName.indexOf("Microsoft")!=-1)&&(navigator.appVersion.indexOf("3.")!=-1))))
  {
    timer=window.setTimeout('newWindow.focus()', 250)
  }
}
