  window.onload = function() {
     if (!document.getElementsByTagName) return false;
     var links = document.getElementsByTagName("a");
     for (var i=0; i<links.length; i++) {
        if (links[i].getAttribute("rel") == "external") {
           links[i].onclick = function() {
              return !window.open(this.href);
           }
        }
     }
  }

  function openWindow(URL,winName,features) {
  window.open(URL,winName,features);
  }

