
String.prototype.qmDecode = function() 
{
    return this.replace(/%dot%/g, '.').replace('%at%', '@').replace(/%tld_(\w*)%$/, '.$1');
}

function decodeThisAddress(e)
{
    if (e.href.substr(0, 3) == 'qm:')
       {
       e.href = 'mailto:' + e.href.substr(3).qmDecode();
       e.onmouseover = '';
       }
}
