add: } else { selnum = groupselect.value; 
context: function showsubgroup() {  var groupselect = MM_findObj("group");  var selnum;  for (var i=0; i<groupselect.length; i++) {    if (groupselect[i].checked) {      selnum = groupselect[i].value;    }  }  // no selection yet so just keep everything as-is:  if (! selnum) {      return;  }  // object to show  var obj = MM_findObj("divsubgroup_"+selnum);  // disable all of them  for (var i=0; i<groupselect.length; i++) {    var gnum = groupselect[i].value;    var disableobj = MM_findObj("divsubgroup_"+gnum);    disableobj.style.display = "none";  }  MM_findObj("divsubgroup_null").style.display = "none";  var num_subgroups_enabled = 0;  var subgroupselect = MM_findObj("subgroup_"+selnum);    if (subgroupselect instanceof NodeList) {    for (var i=0; i<subgroupselect.length; i++) {      if (!subgroupselect[i].disabled) {        num_subgroups_enabled++;      }    }  } else if (subgroupselect instanceof HTMLInputElement) {    num_subgroups_enabled=1;  }  obj.style.display = "";  if (num_subgroups_enabled == 0) {    MM_findObj("Submit").disabled = true;  } else {    MM_findObj("Submit").disabled = false;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/823aed307a8a2bdd3bbacc0cde38548df38dbedb/SubGroup.js/clean/webtools/litmus/js/SubGroup.js