Vicky, I got your code -- thanks. In the example you gave, it seems you simply want to click this "Bulk Deptwise Approval" link in the menu:
<a href="javascript:void(0);" role="button" onclick="navigateURL("744","../Investigation/BulkDeptwiseApproval.aspx?Action=BulkApprove","Bulk Deptwise Approval","","");">
Bulk Deptwise Approval
</a>
Instead of using JavaScript to simulate clicking the menus, have you tried creating a rule to go directly to this page? Something like this (I'm using the function they're using in the `onclick` handler):
navigateURL("744","../Investigation/BulkDeptwiseApproval.aspx?Action=BulkApprove","Bulk Deptwise Approval","","");