Determine which grid sent the onRowSelect Event

I have multiple grids on a page which are being created dynamically through javascript.
The question I have is, I would like to attach the onRowSelect event to the same handler, as I dont know how many grids will be created. But the issue is, when i get the onRowSelect, I do not know which grid control was responsible for sending the event. Is there a way to determine which grid control triggered the event, so that i can then find the information for the selected row in the correct grid?


if the onRowSelect event was setup like this -

      someGrid.attachEvent("onRowSelect", function(id,ind){

then your common function could still access all of the methods and properties of the grid that called it.

Thank you very much.
You saved me a ton of time and headache.

I am a noob when it comes to java script