
  var a = document.getElementsByTagName("a");
  var targetFunction = new Array(a.length);

  for (var i = 0; i < a.length; i++) {
   targetFunction[i] = (typeof a[i].onclick == "function")?a[i].onclick:function(){};
   a[i].id = i;
   a[i].onclick = popupSuppress;
  }

  function popupSuppress(){
   exitPop = false;
   targetFunction[this.id]();
  }

