window.onload = initPage;  
// Make sure that no other javscripts assign a fuction to window.onload
// There can be only one window.onload at a time

function initPage() {
  //initPopupLinks();
  externalLinks();
  // place here any other code you wish to run when the page loads.
}