fires before an item has been marked for copying
$$("files").attachEvent("onBeforeMarkCopy", function(ids){ // your code return true; });