function stripeTables() {
  if (!document.getElementsByTagName) return false; //basic old browser check
  var tables = document.getElementsByTagName("table");//grab the tables in the document
  for (var i=0; i<tables.length; i++) {//loop through the tables
    var odd = false;//creat an odd function for the table, set it to false
    var rows = tables[i].getElementsByTagName("tr");//grab the rows in the specific table
    for (var j=0; j<rows.length; j++) {//loop through the rows in the specific table
      if (odd == true) {
        addClass(rows[j],"odd");//if odd is true, set the bg color to this
        odd = false;
      } else {
        odd = true;
      }
    }
  }
}
function addClass(element,value) {
  if (!element.className) {
    element.className = value;
  } else {
    newClassName = element.className;
    newClassName+= " ";
    newClassName+= value;
    element.className = newClassName;
  }
}
addLoadEvent(stripeTables);