Use getElementsByClassName instead of getElemenById, and do some generally
nicer things with the javascript.