Wow!!! This saves you from creating a custom application page and an ECB menu item .

You could do the same for most of the OOB application pages in MOSS2007 like View Properties, View Item ( for a list)

One of the permission based requirement was to enable “Delete” only for the users with full control. So here is what I did in customcore.js for hasrights( 0x0 (—> Empty Mask),0x7fffffffffffffff ( –> Full Control Mask) )