rem: var opt = new Option(data[i][textprop], data[i][valueprop]); 
add: var text; var value;  if (valueprop != null) { if (textprop != null) { text = data[i][textprop]; value = data[i][valueprop]; } else { value = data[i][valueprop]; text = value; } } else { if (textprop != null) { text = data[i][textprop]; value = text; } else { text = toDescriptiveString(data[i]); value = text; } }  var opt = new Option(text, value); 
context: function fillList(id, data, valueprop, textprop){    var ele = document.getElementById(id);    ele.options.length = 0;    for (var i = 0; i < data.length; i++)    {        var opt = new Option(data[i][textprop], data[i][valueprop]);        ele.options[ele.options.length] = opt;    }}
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/fc82149bb2e68e97d207aae04866b3cc689ddcee/util.js/clean/java/uk/ltd/getahead/dwr/util.js