function crypt(Str) {
   var s = new String;
   var i;
   var c = new Number;

   for(i=0; i<Str.length; i++) {
      c = Str.charCodeAt (i)^i;
      if (c < 16) {
         s += '0'+c.toString (16);
      } else {
         s += c.toString (16);
      }
   }

   return s;
}

function decrypt(Str) {
   var s = new String;
   var i;

   for(i=0; i<Str.length; i+=2) {
      s = s + String.fromCharCode(parseInt(Str.substr(i ,2), 16)^(i/2));
   }

   return s;
}

function mail(id) {
	document.getElementById(id).href = decrypt('6d606b6f706a3c') + id + decrypt('406574702a71732a6c6878667f796f6b643f7676');
	//	document.getElementById(id).href = decrypt('6d606b6f706a3c') + id + decrypt('40657470352b6f696e6678666d7967643e65673e7074647a6b6d7b7f68337a7a');
}

function extmail(id, user, domain) {
	document.getElementById(id).href = decrypt('6d606b6f706a3c') + user + decrypt('40') + decrypt(domain);
}