// if JavaScript is active, hide class=noscript elements
// (a workaround for <noscript> being effectively a block element)
document.write('<style>.noscript { display:none }<\/style>');

function mto (tld,domain,mailbox,link,subject,body)
{
    result = '<a href="mai' + 'lto:' + escape (mailbox);
    result += '@' + escape (domain + '.' + tld);
    if (subject != '' || body != '') result += '?';
    if (subject != '') result += 'Subject=' + escape (subject);
    if (subject != '' && body != '') result += '&';
    if (body != '') result += 'Body=' + escape (body);
    if (link == '') link = escape (mailbox) + '@' + escape (domain + '.' + tld);
    return result + '">' + link + '</a>';
}

