//------------------------------------------------------------------------------
function OpenModalDialog(filePath, windowName, width, height, top, left, center, help, resizable, status)
{
    window.showModalDialog(
    filePath,
    windowName,
    "dialogHeight: " + width + "px; " +
    "dialogWidth: " + height + "px; " +
    "dialogTop: " + top +"px; " +
    "dialogLeft: "+ left + "px; " +
    "center: " + center + "; " +
    "help: " + help + "; " +
    "resizable: " + resizable + "; " +
    "status: "+ status + ";");
}

//------------------------------------------------------------------------------
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)
  }
}
