Function call for multiple selected records in list view

Function call for multiple selected records in list view


Hi,
 
Is it possible to write a function that will perform action for a number of records selected in the list view?
 
For example, I select some contacts in contacts view and call the function to open an html fiew with those selected contact details in a customized format. Or say, emails are sent to all those selected contacts?
 
-Arghya