rem: if (endHourItemNode) { 
add: var endHourRangeNode = document.getElementById("endHourRange"); var endHourRange = endHourRangeNode.selectedItem.getAttribute("data"); var endHourRangeInt = parseInt(endHourRange); 
context: function setEndHourRange(){   // Get the values of the start-time and end-time as ints   var startHourRange = "";   var startHourRangeNode = document.getElementById("startHourRange");   if (startHourRangeNode)   {      startHourRange = startHourRangeNode.selectedItem.getAttribute("data");      var startHourRangeInt = parseInt(startHourRange);   }   var endHourRange = "";   var endHourRangeNode = document.getElementById("endHourRange");   if (endHourRangeNode)   {      endHourRange = endHourRangeNode.selectedItem.getAttribute("data");      var endHourRangeInt = parseInt(endHourRange);   }      if (endHourRangeNode)   {      var endHourItemNode = endHourRangeNode.firstChild.firstChild;      if (endHourItemNode) {         // disable all those end-times before the start-time         for (var index = 0; index < startHourRangeInt; index++) {            endHourItemNode.setAttribute("disabled", "true");            endHourItemNode = endHourItemNode.nextSibling;         }         // update the selected value if it's out of the allowed range         if (startHourRangeInt >= endHourRangeInt) {            endHourRangeNode.selectedItem = endHourItemNode;         }         // make sure all the end-times after the start-time are enabled         for (; index < 24; index++) {            endHourItemNode.removeAttribute("disabled");            endHourItemNode = endHourItemNode.nextSibling;         }      }   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/06cc39f20bee4beae6f95a4f38bb8f56e05a4f5f/bm-props.js/clean/xpfe/components/bookmarks/resources/bm-props.js