rem: var sel = tree.treeBoxObject.selection; 
add: var sel = tree.view.selection; 
context: function PreviewPanel(){  var tree = document.getElementById('other-panels');  var database = tree.database;  var sel = tree.treeBoxObject.selection;  var rangeCount = sel.getRangeCount();  for (var range = 0; range < rangeCount; ++range) {    var min = {}, max = {};    sel.getRangeAt(range, min, max);    for (var index = min.value; index <= max.value; ++index) {      var item = tree.contentView.getItemAtIndex(index);      var res = RDF.GetResource(item.id);      var preview_name = get_attr(database, res, 'title');      var preview_URL  = get_attr(database, res, 'content');      if (!preview_URL || !preview_name) continue;      window.openDialog("chrome://communicator/content/sidebar/preview.xul",                        "_blank", "chrome,resizable,close,dialog=no",                        preview_name, preview_URL);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/acd11e98e23905f5fbd6c9a3f6be22ba384c2058/customize.js/clean/xpfe/components/sidebar/resources/customize.js