// JavaScript Document
/*Because the target attribute is not longer valid via strict.  This function is used to replace the target attribute.
Example of an anchore tag using the rel attribute: <href="something.com" rel="external">link</a>*/


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 = "_new";
 }
}
window.onload = externalLinks;