// Define a function to open links in a new window. This is the correct
//   way to open a new window since the "target" tag has been depreciated.
//   Links should now contain rel="external" and this script will ensure
//   they get opened 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";  
     anchor.onclick = function() {
       return !window.open(this.href);
     };
 }  
}  
window.onload = externalLinks;

