//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
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)
  {
    if (newWindow.opener!=null)
    {
      newWindow.opener = openerWindow
      eval("openerWindow."+windowName+" = newWindow")
      //alert(eval("openerWindow."+windowName+""))
      //alert('set window opener ['+newWindow.opener+'] as it was null')
    }else
    {
      //alert('dont set window opener as it is not null')
    }
    //alert('set window opener ['+newWindow.opener+']')
  }
  
  // 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)
  }
}


function openFTPwindow()
{
 dlg = window.open ('ftp://210.54.58.252' ,'Exonet Partner FTP' , 'width=800,height=600') 
}
