rem: if ( i in Object.prototype ) { 
add: if ( i in Object.prototype || i in Array.prototype ) { 
context: function search_criteria2_changed(id_row, counter, value3){  var d = document;  var row = d.getElementById(id_row);  var dropdown_first = d.getElementById("select_search_field1_criteria"+counter);  var dropdown = d.getElementById("select_search_dropdown"+counter);  var container = d.getElementById("span_search_container"+counter);  var container_second = d.getElementById("span_search_container_second"+counter);    if (row && dropdown && container_second)  {    /* New second container */    var container_new = d.createElement("span");    container_new.setAttribute("id", "span_search_container_second"+counter);    container_new.setAttribute("class", "search_container_second");    var x = criteria[dropdown_first.selectedIndex]["type"];        /* Text */    if(x == "text")    {      /* Textbox */      var input = d.createElement("input");      input.setAttribute("type", "text");      input.setAttribute("id", "input_search"+counter);      input.setAttribute("name", "search["+counter+"][value]");      if (value3) input.setAttribute("value", value3);            container_new.appendChild(input);                            } else if(x == "keyword") {     /* Dropdown */      var dropdown = d.createElement("select");      dropdown.setAttribute("size", "1");      dropdown.setAttribute("id", "select_search_dropdown2_"+counter);      dropdown.setAttribute("name", "search["+counter+"][value]");           for (var i in valuelists[dropdown_first.selectedIndex]) {        if ( i in Object.prototype ) {          continue;        }        var option_text = d.createTextNode(valuelists[dropdown_first.selectedIndex][i]);        var option = d.createElement("option");        option.setAttribute("value", i);        if (value3 == i) option.setAttribute("selected", "selected");        option.appendChild(option_text);        dropdown.appendChild(option);      }            container_new.appendChild(dropdown);                            }    container.replaceChild(container_new, container_second);  }}
meta: 2782	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2782/a539800237b1036118c7180cfc1ae2ae655ac24e/search.js/buggy/pentabarf/public/javascripts/search.js