
/*
This tool was originally conceived and written by Tim
Williams of http://www.arizona.edu/  The University of
Arizona. The code to randomly generate a different encryption key each
time the tool is used was written by Andrew Moulden of http://www.siteengineering.com/  
Site Engineering
Ltd.  This code is distributed as freeware, provided the authors'
credits etc remain as shown.

Phillip of www.Webcatering.com and Janine of www.Panther-Webworks adapted the freeware to better meet our needs.  Get the original from the site above, as our adaptations are not free.
*/

<!--

function DeMunge()
{
  shift=coded.length
  link=""
  linkL=""
  linkS=""
  for (i=0; i<coded.length; i++) {
    if (key.indexOf(coded.charAt(i))==-1) {
      ltr = coded.charAt(i)
      link += (ltr)
    }
    else {     
      ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
      link += (key.charAt(ltr))
    }
  }
  for (i=0; i<codedL.length; i++) {
    if (key.indexOf(codedL.charAt(i))==-1) {
      ltr = codedL.charAt(i)
      linkL += (ltr)
    }
    else {     
      ltr = (key.indexOf(codedL.charAt(i))-shift+key.length) % key.length
      linkL += (key.charAt(ltr))
    }
  }
  for (i=0; i<codedS.length; i++) {
    if (key.indexOf(codedS.charAt(i))==-1) {
      ltr = codedS.charAt(i)
      linkS += (ltr)
    }
    else {     
      ltr = (key.indexOf(codedS.charAt(i))-shift+key.length) % key.length
      linkS += (key.charAt(ltr))
    }
  }
}

//-->