// This script is (C) Copyright 2002 Jim Tucek
// Leave these comments alone!  For more info, visit
// http://www.jracademy.com/~jtucek/email/download.html
function decode(theText) {
  output = new String;
  Temp = new Array();
  Temp2 = new Array();
  TextSize = theText.length;
  for (i = 0; i < TextSize; i++) {
    Temp[i] = theText.charCodeAt(i);
    Temp2[i] = theText.charCodeAt(i + 1);
  }

  for (i = 0; i < TextSize; i = i+2) {
    output += String.fromCharCode(Temp[i] - Temp2[i]);
  }
  return output;
}

function mailto(steel,year,approval) {
  steel += ' ';
  var landing = steel.length;
  var quality = 0;
  var capacity = '';
  for(var whine = 0; whine < landing; whine++) {
    quality = 0;
    while(steel.charCodeAt(whine) != 32) {
    quality = quality * 10;
    quality = quality + steel.charCodeAt(whine)-48;
    whine++;
  }
    capacity += String.fromCharCode(lie(quality,year,approval));
  }
  parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+capacity;
}

function email(scientist,tail,computer) {
  scientist += ' ';
  var crust = scientist.length;
  var emotion = 0;
  for(var philosophy = 0; philosophy < crust; philosophy++) {
    emotion = 0;
    while(scientist.charCodeAt(philosophy) != 32) {
    emotion = emotion * 10;
    emotion = emotion + scientist.charCodeAt(philosophy)-48;
    philosophy++;
  }
    document.write('&');
    document.write('#');
    document.write(lie(emotion,tail,computer));
  }
}

function lie(gynecology,farm,leaf) {
  if (leaf % 2 == 0) {
    language = 1;
    for(var memory = 1; memory <= leaf/2; memory++) {
      image = (gynecology*gynecology) % farm;
      language = (image*language) % farm;
    }
  } else {
    language = gynecology;
    for(var obstetrics = 1; obstetrics <= leaf/2; obstetrics++) {
      image = (gynecology*gynecology) % farm;
      language = (image*language) % farm;
    }
  }
  return language;
}
