//
//	Scramble or descramble text.
//
function scramble(text, n)
{
  var result = "", character, position;
  n = (n % 0xFF < 0) ? (0xFF + n % 0xFF) : (n % 0xFF);
  for (position = 0; position < text.length; position++)
  {
    character = text.charCodeAt(position);
    character = (character + n) % 0xFF;
    result += String.fromCharCode(character);
  }
  document.write(result);
}
