report abuse and polymorphism

Hello All,

i m trying to implement a report abuse system on my website; basically
i want to be able to report anything, from suer profiles to user
comments. So I guess I should use object_id and object_type to be able
to refer to what the current user is reporting. My issue is that,
being on a particular user profile i want to report,for example, I
just need to click a report abuse button that would trigger a popup
form to be completed and sent to the site admin, ie, me. I m planning
to use hidden text fields to hold the current object_id and
object_type of that thing i want to report to, but then how do I
actually get the object id and object type from the ;ain page to my
popup formula ?

Hope someone can help.

Regards,

Joel