gutted the HTML tables code - D7 now has a tableselect form element which does everything I programmed into D6