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.options = "location=no";
    anchor.title += " - Opens in new window";
    }
  }
}
window.onload = externalLinks;

var newWin = null;
function definition(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
  strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
 if (strType=="fixed")
  strOptions="status,height="+strHeight+",width="+strWidth;
 if (strType=="elastic")
  strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}
