//  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 doPopups() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick = function() {
        window.open(this.href, 'codes', config='height=435, width=300, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no');
        return false;
      }
    }
  }
}


addLoadEvent(doPopups);