/**
 * This script looks for any anchor tags with a rel of 'external' and
 * sets the target to '_blank'.
 * This is to load the links in another window while keeping the code
 * xhtml strict compliant.
 */
  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") {  
        anchor.target = "_blank";
      }
    }  
  }  
  window.onload = externalLinks;
