function unmask(at, name, dot, hash, id) {
  var el=document.getElementById(name+id);
  var i = 0;
  var mail = "";
  var foo = 0;
  var newName = "";
  var newAt = "";

  for(foo=0;foo<name.length;foo++) {
    newName = newName + String.fromCharCode(name.charCodeAt(foo) + hash);
  }

  for(foo=0;foo<at.length;foo++) {
    newAt = newAt + String.fromCharCode(at.charCodeAt(foo) + hash);
  }

  el.setAttribute('href',"mailto:" + newName + "@" + newAt + "." + dot);
  el.setAttribute('title', newName + "@" + newAt + "." + dot);
}
