context: function update_buttons(){  var available_charsets = document.getElementById('available_charsets');  var active_charsets = document.getElementById('active_charsets');  var remove_button = document.getElementById('remove_button');  var add_button = document.getElementById('add_button');  var up_button = document.getElementById('up_button');  var down_button = document.getElementById('down_button');  var activeCharsetSelected = (active_charsets.selectedItems.length > 0);  remove_button.disabled = !activeCharsetSelected;  if (activeCharsetSelected) {    up_button.disabled = !(active_charsets.selectedItems[0].previousSibling);    down_button.disabled = !(active_charsets.selectedItems[0].nextSibling);  }  else {    up_button.disabled = true;    down_button.disabled = true;  }    add_button.disabled = (available_charsets.selectedItems.length == 0);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/pref-charset.js/buggy/xpfe/components/prefwindow/resources/content/pref-charset.js