﻿// JScript File
function fMaskAddress(id,domain,name)
{
    var toName;
    if (typeof(name)!='undefined')
       toName = name
    else
       toName = id + "@" + domain

    var s = "";
    s += '<a href='
    s += '"mailto:' + id + '@' + domain + '"'
    s += ' class="popuplink"'
    s += ' onmouseover=\'fStatus("Send Email to ' + toName + '")\''
    s += ' onmouseout=\'fStatus("")\''
    s += ' title="Opens a new email message to ' + toName + '")'
    s += '>'
    s += toName
    s += '</a>'

    document.write(s);
}

function fStatus(s)
{
    window.status = s;
    window.event.returnValue = true;
    return true;
}

window.onload = function() 
{
    // add the words "Opens in a new browser" to all links with target attribute
    for (var i = 0; i < document.links.length; i++)
    {
        var obj = document.links[i];
        if (obj.getAttribute('target') == "_blank")
            obj.title = "Opens in a new browser";
    }
}