// JavaScript Document

function open_in_new_tab() {  
 if (!document.getElementsByTagName){  
  return;  
   /*If the browser doesn't support DOM, do nothing*/  
   }  
   var anchors = document.getElementsByTagName("a");  
   /*Select all the 'a' tags, anchors*/  
   for (var i=0; i<anchors.length; i++) {  
   var links = anchors[i];  
   if (links.getAttribute("rel")=='blank'){  
   /*every anchor with 'href' attribute will get a new attribute, 
     12. only those with 'href' attribute set because we don't want 
	 13. to mess with the section anchors, for example*/  
	 links.target = "_blank";  
	 }  
	 }  
	 }  
	 window.onload = open_in_new_tab;