// external.js
// Phil Pochrzast, ATLAS, August 2006
//
// Web standards compliant method to open links in new windows (HTML 4.0 Strict and XHTML 1.0 Strict recommendations of the W3C no longer include the target attribute of the <a> tag)
// 1) Just add: rel="external" to all links you'd like to open in a 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") {
     anchor.target = "_blank";
	 
	 }
 }
}
addEvent(window,'load',externalLinks);