function openCenteredWindow(url, width, height, name, parms) {
  var left = Math.floor( (screen.width - width) / 2);
  var top = Math.floor( (screen.height - height) / 2);
  var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width + ",resizable=1,menubar=0,toolbar=0,location=0";
  if (parms) { winParms += "," + parms; }
  var win = window.open(url, name, winParms);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  return win;
}

// This is the function that will open the
// new window when the mouse is moved over the link
function open_new_window() 
{
new_window = open("","hoverwindow","width=500,height=387,left=10,top=10");

// open new document 
new_window.document.open();

// Text of the new document
// Replace your " with ' or \" or your document.write statements will fail
new_window.document.write("<html><title>Award for Oustanding Achievement from Foundation for Continuing Education</title>");
new_window.document.write("<body bgcolor=\"#FFFFFF\">");
new_window.document.write("<img src=\"./images/award_certificate_lg.jpg\">");
new_window.document.write("<br>");
new_window.document.write("</body></html>");

// close the document
new_window.document.close(); 
}

// This is the function that will close the
// new window when the mouse is moved off the link
function close_window() 
{
new_window.close();
}

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;