// Send an e-mail without exposing the destination address to spiders.
function noSpam(user,domain) {
    locationstring = "mailto:" + user + "@" + domain;
    window.location = locationstring;
}

// Open link in new tabs/windows by Javascript, compliant with XHTML 1.0 Strict:
function externalLinks() {
    if (!document.getElementsByTagName) return;

    var anchors = document.getElementsByTagName("a"); // Array of all <a> tags on page.

    for (var i=0; i<anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") &&
            anchor.getAttribute("rel") == "external") // On page, must include rel="external" in the <a> tag.
            anchor.target = "_blank";
    }
}
window.onload = externalLinks;
