// The link to this file should follow the DOMAssistant JS file in the head.// In XHTML, call this script after DOM is loaded to cause anchors // with a rel="external" to open in a new window.// Replicating the functionality of the deprecated target="_blank"// Cite: http://matthom.com/archive/2006/10/22/javascript-open-links-in-new-windowfunction externalLinks(){    if (!document.getElementsByTagName) return;    var anchors = document.getElementsByTagName("a");    for ( var i=0; i < anchors.length; i++ )    {        var anchor = anchors[i];        if ( anchor.getAttribute("href") && anchor.getAttribute("rel") == "external" )        {            if ( anchor.getAttribute("className") )            {                anchor.target = anchor.getAttribute("className");            }            else            {                anchor.target = "_blank";            }        }    }}// Wire up the functions using DOMAssistantDOMAssistant.DOMReady(externalLinks);