Thanks for that ... can't believe I missed that. Actually can't believe it was working at all in the first place!
OK, so I changed this line and added the color blue to make it obvious what's going on in my program.
For some reason it highlights the entire row but doesn't change the bgcolor in the code piece I'm using to indicate a saved traffic light from the database (here):
<td bgcolor=\"green\" onclick=\"togCell('#green'); makePOSTRequest('$javvar', '1')\"> </td>
Any ideas why it's not changing the bgcolor?