var a=document.getElementsByTagName("tr");
   for (var i=0; i<a.length; i++) {
      a[i].style.background=(i%2==1) ? "#fff9c6" : "#f9f5d9";
   }