Today while surfing I stumbled onto this site:
Stripe your tables the OO way.After reading it, I realized that it was hopelessly overcomplicated for what it needed to do, so I thought I'd write a better one. I borrowed the style sheet and table from his page, and wrote the following javascript: