
function stringReverse(textString) {
   if (!textString) return '';
   var revString='';
   for (i = textString.length-1; i>=0; i--)
       revString+=textString.charAt(i)
   return revString;
}

function emLink(name, server)
{     
     // the name and domain are reversed into the correct reading format
     // the email link is then created on your website
     // Because there is no actual email address in the expected format
     // the email harvesters never see the links on your website.
     var rname = stringReverse(name);
     var rserver = stringReverse(server);
     var email = rname + "@" + rserver;
     var mailText = '<a href="mailto:' + email +'">' + email + '</a>';
     
     document.write(mailText);
}
