How can I get the id of the element containing comment, question or answer which is going to be submitted in an event module? for example in the following code I want to add a script related to the comment
class my_event {
function process_event($event, $userid, $handle, $cookieid, $params) {
if ($event === 'c_post') {
echo '<script>
var Dom = document.getElementById("this comment");
</script>'
}//end process_event }//end class