function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openNewsWindow(theURL) {
  winName = 'news';
  features = 'scrollbars=yes,width=570,height=600';
  window.open(theURL,winName,features);
}

function relTags() {
  if (document.getElementsByTagName) {
    var anchors = document.getElementsByTagName("a");
    for (var loop = 0; loop < anchors.length; loop++) {
      var anchor = anchors[loop];
      if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
        anchor.target = "_blank";
      } else if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup") {
        anchor.onclick = function () {
          openNewsWindow(this+"&popup=yes");
          return false;
        };
      }
    }
  }
}

window.onload = function() {
  relTags();
}
