The view panel in XPages allows to specify  Display check boxes for any column value. The selected documents can be easily used in simple actions like "Delete selected Documents". They are also avaliable to your server side Java Script. Here XPages gives you access to the array of DocumentIDs (not the document directly), so when you want to manipulate the document you need to retrieve them in code first.
The propery that contains the selected IDs is getSelectedIds() . In your code you would have something like: var docIdsToWorkOn = myViewPanel.getSelectedIds(). Using a different data source than a Notes View will return the primary keys.
Keep in mind: before coding check the simple actions if they do what you are looking for. Document deletion is on of them.
The following is the code to get the selected documents, just for your reference.
var viewPanel=getComponent("viewPanel1");get the componet of viewPanel
var docIDArray=viewPanel.getSelectedIds(); get the array of document ids
i < docIDArray.length;
.. your code to deal with the selected document