foo this page bar

Can javascript scour the page to find "blargh.php?=47" then look *backwards* for the nearest <tr> and apply class="pink" to it? To look like so:

foo this page bar

If this can be done I'm sure that it could apply class="blargh47" based on the variable in the url like:

foo this page bar

If so, please give clues to the clueless?! thanks!