// open the client email with the specified address
function send(encoded)
{
  // do the mailto: link
  location.href = "&#109;&#097;&#105;&#108;&#116;&#111;&#058;" + decode(encoded);
}

// return the decoded address
function decode(enc)
{
  // holds the decoded address
  var em = "";

  // go through and decode the address
  for (i=0; i < enc.length;)
  {
    // holds each letter (2 digits)
    var letter = "";
    letter = enc.charAt(i) + enc.charAt(i+1)

    // build the real address
    em += String.fromCharCode(parseInt(letter,16));
    i += 2;
  }
  
  return em;
}