ok, thanks for your code beck! i managed to tweak it to work for my application, it's really great.
now, to finalize it i just need to do one last thing, and i can't pull it off myself. using your code above i get the following code returned. i need this to be broken into tables with a new <tr> after every third item. i can wrap all items in <td> but i don't know how to make a <tr> ONLY between every third item.
does anyone have a solution to this.