Confirm delete, hide delete if dir is RO.

Used a javascript to confirm deletion. NDAS function to test each
directory then hide the delete button if it is RO due to permissions.