function sendto (domain, account, text) {
var atsign = String.fromCharCode(64); // @
document.write('<a href="mailto:');
document.write(account + atsign + domain);
if (text==null || text.length==0) {
document.write('\">');
document.write(account + atsign + domain);
} else
document.write('\" title=\"'+text+'\">'+text);
document.write('<\/a>');
}
//Call it thusly inside the HTML:
//
//<script language="javascript" type="text/javascript">sendto('crossroads.net','adamrice')</script>
//<noscript><address>adamrice - at - crossroads - dot - net</address></noscript>