function stripe()
 {
 if ( !document.getElementsByTagName )
  {
  return false;
  }
// grab all table elements
 var table = document.getElementsByTagName( "table" );
 for ( var i = 0; i < table.length; i++ )
  {
// test for stripe class
  if ( /stripe/.test(table[i].className) )
   {
// grab rows for that table
   var row = table[i].getElementsByTagName( "tr" );
   for ( var j = 0; j < row.length; j++ )
    {
// apply background color to odd rows
    if ( j % 2 == 0 )
     {
     row[j].style.backgroundColor = "#DDD";
     }
// while we're at it, remove the bottom border
    row[j].style.border = "0";
    }
   }
  }
 }

addLoadEvent( stripe );
