This may help; sorry for my timing

Code JavaScript:
<script language=javascript>
     var username = "spamtest";
     var hostname = "hostname.com";
     var linktext = username + "@" + hostname;
     document.write("<a  href=" + "mail" + "to:" + username + "@" + hostname + " style='cursor:hand;'>" + linktext + "</a>")
 
</script>