function mail(account, domain, realname)
{
  document.write("<a href='mai" + "lto:" + account + "&#64;" + domain + "'><img \
    class='bullet' src='http://west-penwith.org.uk/images/mail.gif' \
    alt='[EMail]' title='EMail' width='15' height='12' />" + realname + "</a>");
}

function xmail(account, domain)
{
  document.write("<a href='mai" + "lto:" + account + "&#64;" + domain + "'><img \
    class='bullet' src='images/mail.gif' \
    alt='[EMail]' title='EMail' width='15' height='12' />" + account + "<img class='bullet' \
    src='http://west-penwith.org.uk/images/at.gif' alt='@' \
    width='15' height='12' />" + domain + "</a>");
}

function xim(account, domain)
{
  document.write("<a href='xmpp:" + account + "&#64;" + domain + "'><img \
    class='bullet' src='images/bulb.gif' \
    alt='[IM]' title='IM ID' width='14' height='17' />" + account + "<img class='bullet' \
    src='http://west-penwith.org.uk/images/at.gif' alt='@' \
    width='15' height='12' />" + domain + "</a>");
}

function mailto(account, domain) 
{ 
  window.location = 'mai' + 'lto:' + account + '%40' + domain; 
}

// last updated by Rick Parsons 29 Mar 2006
