var doReplace = new Function("p1", "p2", "p3", "return p1.split(p2).join(p3)");

function ShowPopup( PopupArray )
{
  var qt = '"';

  newwin = open ("","About", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=600,height=460");
  for (i=0; i<PopupArray.length; i++) {
     newwin.document.write( doReplace( PopupArray[i], "^", qt ) + "\n" );
  }
  newwin.document.write("<br><br><center><a href=# onClick=" + qt + "window.close(); return true" + qt + ">Close Window</a></center>");
  newwin.document.write("</div>");
  newwin.document.close();
}

function addTextLayer(newText, layername) {
  obj=document.getElementById(layername);
  with (obj)
  innerHTML = unescape(newText);
}

function MM_setCursorHand() { //v4.01
  document.body.style.cursor="hand";
}

function MM_setCursorDefault() { //v4.01
  document.body.style.cursor="default";
}

function AssembleString( HTMLArray ) {
   var qt='"';
   var theHTML = "";
   for (i=0; i<HTMLArray.length; i++) {
      theHTML += doReplace( HTMLArray[i], "^", qt );
      theHTML += "\n";
   }
   return theHTML;
}

function Reassign( ArrayToChange, ElementNo, NewValue ) {
   ArrayToChange[ElementNo] = NewValue;
}

