function rowColor(table, color1, color2)
{
  if (!color2) color2 = '#fff';
  var x, y, cells, rows = document.getElementById(table).rows;
  if (!rows) return false;

  // Iterate rows
  for (x = 1; x < rows.length; x++) {
    rows[x].style.backgroundColor = (x % 2 ? color2 : color1);
  }
}

function listRowColor(list, color1, color2)
{
  if (!color2) color2 = '#fff';
  var x, y, cells, rows = document.getElementById(list).getElementsByTagName('li');
  if (!rows) return false;

  // Iterate rows
  for (x = 0; x < rows.length; x++) {
    rows[x].style.backgroundColor = (x % 2 ? color2 : color1);
  }
}
