CRM - Custom Module

CRM - Custom Module

I have created a custom module name "Properties" where i store details about land,house,etc... From the canvas view of properties i want to select properties and mail their details to some of my CRM Contacts. To do this i have try to create a custom button(with custom function) to send a mail but i am having some issue:

1) How to open a popup and select the contacts to whom the properties details will be send
2) How to retrieve all selected properties details from within my custom button :
   I am able to retrieve a single property details by using function arguments, but when i select multiple properties the variable are null. How to retrieve multiple properties details?