rem: var param = new Object(); param.name = name; param.size = "1"; openMarkupElement("select", param); if (firstoption) { param = new Object(); param.value = ""; openMarkupElement("option", param); res.write(firstoption); closeMarkupElement("option"); } for (var i in options) { param = new Object(); param.name = encode(options[i]); param.value = i; if (param.value == selectedIndex) param.selected = "selected"; openMarkupElement("option", param); res.write(param.name); closeMarkupElement("option"); } closeMarkupElement("select"); 
add: var param = new Object(); param.name = name; param.size = "1"; openMarkupElement("select", param); if (firstoption) { param = new Object(); param.value = ""; openMarkupElement("option", param); res.write(firstoption); closeMarkupElement("option"); } for (var i in options) { param = new Object(); param.name = encode(options[i]); param.value = i; if (param.value == selectedIndex) param.selected = "selected"; openMarkupElement("option", param); res.write(param.name); closeMarkupElement("option"); } closeMarkupElement("select"); 
context: function renderDropDownBox(name, options, selectedIndex, firstoption) {  var param = new Object();  param.name = name;  param.size = "1";  openMarkupElement("select", param);  if (firstoption) {    param = new Object();    param.value = "";    openMarkupElement("option", param);    res.write(firstoption);    closeMarkupElement("option");  }  for (var i in options) {    param = new Object();    param.name = encode(options[i]);    param.value = i;     if (param.value == selectedIndex)      param.selected = "selected";    openMarkupElement("option", param);    res.write(param.name);    closeMarkupElement("option");  }  closeMarkupElement("select");}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/44c682473d920023add0283e889e229bac75d2ac/renderFunctions.js/buggy/code/Global/renderFunctions.js