//  Cidamon, http://cidamon.com/
// 
//   created Nov 11 2006
// last rev. Nov 11 2006



// Jeremy Keith's clean popup opening function
// loops though all the links in the document tree looking for 
// links with a class of "popup", then attaches an onclick event to them

function closePopup() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("closeMe")) {
      links[i].onclick = function() {
        window.close();
        return false;
      }
    }
  }
}


addLoadEvent(closePopup);
