rem: extracted = extractContentsById(updateRegionId, str);  target = document.getElementById(updateRegionId);  if (getOpeningTag(updateRegionId, str).toLowerCase() == "tr" && document.all && target) { 
add: var extracted = extractContentsById(updateRegionId, str); var target = document.getElementById(updateRegionId);  if (isUpdateRowRegion(updateRegionId, str) && document.all && target) { 
context: function updateRegion(updateRegionId, str) {		  extracted = extractContentsById(updateRegionId, str);  target = document.getElementById(updateRegionId);	  if (getOpeningTag(updateRegionId, str).toLowerCase() == "tr" && document.all && target) {    //Emptying <tbody>    while( target.firstChild ) {      target.removeChild( target.firstChild );    }        		    	    //Making temp <div> and <table>    var tempDiv = document.createElement("div");    	     document.body.appendChild(tempDiv);    tempTbodyId = updateRegionId + "TempTbody";    tempDiv.innerHTML = "<table><tbody id=\"" + tempTbodyId + "\">" + extracted + "</tbody></table>";    //Filling in tbody    var tempTbody =  document.getElementById(tempTbodyId);	    for (var i = 0; i < tempTbody.childNodes.length; i++) {      target.appendChild(tempTbody.childNodes[i].cloneNode(true));				    }						    for (var i = 0; i < tempTbody.rows.length; i++) {      for (var j = 0; j < tempTbody.rows[i].cells.length; j++) {        target.rows[i].cells[j].innerHTML = tempTbody.rows[i].cells[j].innerHTML;					      }    }			    tempDiv.removeNode(true);			 				   }  else if (target) {    target.innerHTML = extracted;  }  // execute all the scripts  var scripts = extractScripts(extracted);  for(var i=0;i<scripts.length;i++) {    var script = scripts[i];    script = "try{"+script+"}catch(e){alert(e);}";    eval(script);  }	  }
meta: 7108	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7108/70a5146c2fb1d12fb85bc488ca3ab0547c8370cc/aa.js/buggy/etc/js/ajaxanywhere/aa.js