function for mass delete (J1.5 standards)

This function is using Joomla 1.5 coding standards. I have also added a comment out equivalent version of the function using Joomla 2.5 coding standards, however it doesn't seem to work.