[jQuery] Change row colors of table based on content

[jQuery] Change row colors of table based on content

Anybody want to discuss a way to change row colors of table based on content, for example:
<span style="font-family: courier new,monospace;">+-----|-----------------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">|acess|        COSTUMER       |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">|-----------------------------|</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| 1   |   joseph              |</span>
<span style="font-family: courier new,monospace;">| 2   |   mary                |
</span><span style="font-family: courier new,monospace;">| 3   |   john                |
</span><span style="font-family: courier new,monospace;">| 4   |   joseph              |
</span><span style="font-family: courier new,monospace;">| 5   |   joseph              |
</span><span style="font-family: courier new,monospace;">| 6   |   guile               |
</span><span style="font-family: courier new,monospace;">| 7   |   mary                |
</span><span style="font-family: courier new,monospace;">| 8   |   craig               |
+-----------------------------+<br style="font-family: courier new,monospace;">
</span><span style="font-family: courier new,monospace;"></span>
in this table, the name Joseph and Mary are repeated, so, every "joseph" or "mary" row must have the same color (picked randomly or not). so as every "craig", "guile" or "john" row.
I don't want to use css class names based on the name of the "costumers" because I don't know how many costumers are and how many times they appear or repeat.
thanks