rem: param.SetInt(2, listBox.selectedIndex ); 
add: for (var i=0; i<numItems; i++) { if (elements[i] == list.selectedItems[0]) { param.SetInt(2, i ); break; } } 
context: function commonDialogOnOK() {  dump("commonDialogOnOK \n");  param.SetInt(2, listBox.selectedIndex );  param.SetInt(0, 0 );  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1a9b31cf83ae89c0a95c4e421ddd83b6f6ff424e/selectDialog.js/clean/xpfe/global/resources/content/selectDialog.js