rem: var permissiontree = document.getElementById("permissionstree"); selitems = permissiontree.selectedItems;  for(i = 0; i < selitems.length; i++) { var id = selitems[i].getAttribute("id"); var itemid = parseInt(id.substring(9,id.length));  gone_p += (itemid + ","); document.getElementById("permissionslist").removeChild(selitems[i]); }   } 
add: selname = top.frames[list_frame].document.fSelectPermission.selname; goneP = top.frames[button_frame].document.buttons.goneP; var p; var i; for (i=selname.options.length; i>0; i--) { if (selname.options[i-1].selected) { selname.options[i-1].selected = 0; goneP.value = goneP.value + selname.options[i-1].value + ","; deleted_permissions[selname.options[i-1].value] = 1; selname.remove(i-1); } } } 
context: function DeletePermissionSelected() {  var permissiontree = document.getElementById("permissionstree");  selitems = permissiontree.selectedItems;    for(i = 0; i < selitems.length; i++)   {     var id = selitems[i].getAttribute("id");    var itemid = parseInt(id.substring(9,id.length));    // do we need this now? : deleted_permissions[itemid] = 1;    gone_p += (itemid + ",");       // compatibility with old version and with interface    document.getElementById("permissionslist").removeChild(selitems[i]);  }  // dump("gone_c: " + gone_c + "\n"); // useful for debugging  // dump("gone_p: " + gone_p + "\n");}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c6fa5d1ce98e2ddef2cf4037c1a1113c104f5980/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js