function doColors(tb,over,start) {
  cell='cell1';
  arr_tr=tb.getElementsByTagName('tr');
  for (var i=0; i<arr_tr.length; i++) {
    if (i>=start) {
      setColors(arr_tr[i],cell);
      if (over) {
        arr_tr[i].onmouseover = function(){setColors(this,'cella')};
        arr_tr[i].onmouseout = function(){setColors(this,'')};
      }
      if (cell=='cell1') cell='cell2';
      else cell='cell1';
    }
    else
      setColors(arr_tr[i],'head');
  }
}
function setColors(tr,cell) {
  arr_td=tr.getElementsByTagName('td');
  for (var j=0; j<arr_td.length; j++) {
    if (cell) {
      if (!arr_td[j].add) {
        arr_td[j].add=cell;
        if (!arr_td[j].innerHTML)
          arr_td[j].innerHTML='&nbsp;';
      }
      arr_td[j].className=cell;
    }
    else arr_td[j].className=arr_td[j].add;
  }
}