/* 
  ================================================
  This script is the XHTML valid solution to the 
  Target/About Blank problem of opening a link
  in a new browser window.
  This solution may be phased out. Another 
  solution is the window.open() method
  but this solution is problematic, especially
  when linking within the same site.
  Note: The script loader for this script should
  go in the Head of the HTML file of every page
  that needs it, not at the end.
  ================================================
*/
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;