<!--

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}


function colorRows() {
  var grid = document.getElementsByTagName("table");
  for (var i=0; i<grid.length; i++) {
    if (grid[i].className.match("grid")) {
      var rows = grid[i].getElementsByTagName("tr");
      for (var j=0; j<rows.length; j=j+2) {
        rows[j].className = "even";
      }
    }
  }
}

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, 'popup','width=400,height=600');
        return false;
      }
    }
  }
}

//function jump(form) {
//select = form.getElementsByTagName( 'select')[0];
//if( select.options[ select.selectedIndex].value) {
//form.action = select.options[ select.selectedIndex].value;
//  }
//}


addLoadEvent(colorRows);
addLoadEvent(doPopups);
//addLoadEvent(jump);
//-->

