function mail(account, domain, realname)
{
  document.write("<a href='mai" + "lto:" + account + "&#64;" + domain + "'><img \
    border='0' src='Images/mail.gif' \
    alt='[EMail]' width='15' height='12' /> "+ account + "@" + realname + "</a>");
}
// last updated by Simon Williams 2006
// Based on Rick Parsons, Bristol, England 16 May 2002
//
// This should prevent users having there mail addresses collected by spiders,
// as well as been a nice way to format them
//
// It protects the addresses by doing the following
//. @ is changed to &#64;
//. The address is broken into separate account and domain names
//. The trigger "mailto:" is broken into the unrecognisable "mai" and "lto:"
//. The visible @ is changed into a stretch of HTML to display an image @
//. As a bonus, a graphic envelope bullet is inserted before the address
//. All images have alt text.
//. The code is written in XHTML 1.0 but will function quite happily in pages
//  and browsers supporting lower levels of HTML.