<!--   SS  29-oct-99, 5-nov-03, 8-sep-04

function openConfigWindow(fileName)
{
  //create a small placed window with no facilities
  window.open (fileName, "FS_Config", "toolbar=0,status=0,menubar=0,resizable=0,width=418,height=488,left=250,top=200");
}

function openWindow(fileName)
{
  //create a small placed window with no facilities
  window.open (fileName, "FS_LineMonL", "toolbar=0,status=0,menubar=0,resizable=0,width=836,height=500,left=100,top=100");
}

function openConWindow(fileName)
{
  //create a placed window with a scrollbar and resizeable
  window.open (fileName, "FS_ConIF", "toolbar=0,status=0,menubar=0,resizable=1,scrollbars=1,width=650,height=500,left=100,top=100");
}

function openMonWindow(fileName)
{
  //create a small placed window with no facilities
  window.open (fileName, "FS_LineMonS", "toolbar=0,status=0,menubar=0,resizable=0,width=735,height=662,left=100,top=100");
}

function mail_link (name, title)
{
  var  domain="farsite"; at="&#64;"; ext=".com"; addr=name+at+domain+ext; subject="?Subject="+title
  document.write("<a href=" + "mail" + "to:" + addr + subject + ">" + addr + "</a>")
}

function mail_link_gen (name, domain, title)
{
  var  at="&#64;"; addr=name+at+domain; subject="?Subject="+title
  document.write("<a href=" + "mail" + "to:" + addr + subject + ">" + addr + "</a>")
}

function vi(iName, iwidth, iheight, ititle)
{
  //create a small placed window with no facilities, min size approx 120x120
  var win;
win = window.open ("", "imageviewer","toolbar=0,status=0,menubar=0,resizable=0,width="+iwidth+",height="+iheight+",left=100,top=200");
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title></head><body>");
win.document.write('<div style="position:absolute;width:'+iwidth+'px;height:'+iheight+'px;left:0px;top:0px">');
win.document.write("<img src="+iName+" alt="+ititle+"></div></body></html>");
win.document.close();
}

function openMainWindow()
{
  var targetfile, x, y, m, paramFound;
  //extract the file name to open from after the ?f= if one is present and open it in mainFrame
  targetfile="FarSite_Communications_Main2.htm"; paramFound=false; y=0;
  for (var x = 0; x < location.search.length; ++x )
  {
    m = location.search.charAt(x);
    if (paramFound == false && m == "?" && location.search.charAt(x+1) == "f" && location.search.charAt(x+2) == "=") 
      {// now we have found the file param
	    targetfile = "";
        paramFound = true;
        y = x+3;
      } 
    if (paramFound == true && x >= y)
      { //copy the file name
        if (m == "%" || m == "," || m == "=" || m == "?" || m== " " || m== "&")
          paramFound = false;
        else
          targetfile += m;
      }
  }
  window.open (targetfile,'mainFrame');
}

function openMainWindowV2()
{
  var targetfile, x, y, m, paramFound;
  //extract the file name to open from after the ?f= and open it in Main
  targetfile="front_main_v2.html"; paramFound=false; y=0;
  for (var x = 0; x < location.search.length; ++x )
  {
    m = location.search.charAt(x);
    if (m == "?" && location.search.charAt(x+1) == "f" && location.search.charAt(x+2) == "=") 
      {// now we have found the file param
	    targetfile = "";
        paramFound = true;
        y = x+3;
      } 
    if (paramFound == true && x >= y)
      { //copy the file name
        if (m == "%" || m == "," || m == "=")
          paramFound = false;
        else
          targetfile += m;
      }
  }
  window.open (targetfile,'Main');
}
 
function openActionWindow(fileName)
{
  //create a small placed window with no facilities
  window.open (fileName, "Action", "toolbar=0,status=0,menubar=0,resizable=1,width=650,height=500,left=250,top=200");
}

function openManualWindow(fileName)
{
  //create a window with only a scroll bar
   window.open (fileName, "Manual", "toolbar=0,status=0,menubar=0,resizable=0,scrollbars=1,width=650,height=450,left=50,top=50");
}

// end hiding -->



