//include this block either at top of page inside the header, or call it from a JS file
function genEA(usr, dom, dsp){
   var s = "<a href=\"mailto:" + usr + "@" + dom + "\">";
   if (dsp && dsp.length > 0)
     s += dsp;
   else
     s += usr + "@" + dom;
   s += "</a>";
   document.write(s);
}


//insert this code line where you want the email address to display
//<script language="javascript">genEA("address-part before the @", "Domain.com", "text to display");</script>