var nodes, node, i; ele = dwr.util.byId(ele);   
if (typeof ele == "string") { ele = dwr.util.byId(ele);    if (ele && ele.id != orig) ele = null; } var nodes = null; 
dwr.util.setValue = function(ele, val, options) {  if (val == null) val = "";  if (options == null) options = {};  if (dwr.util._shouldEscapeHtml(options) && typeof(val) == "string") {    val = dwr.util.escapeHtml(val);  }  var orig = ele;  var nodes, node, i;  ele = dwr.util.byId(ele);  // We can work with names and need to sometimes for radio buttons  if (ele == null) {    nodes = document.getElementsByName(orig);    if (nodes.length >= 1) ele = nodes.item(0);  }  if (ele == null) {    dwr.util._debug("setValue() can't find an element with id/name: " + orig + ".");    return;  }  // All paths now lead to some update so we highlight a change  dwr.util.highlight(ele, options);  if (dwr.util._isHTMLElement(ele, "select")) {    if (ele.type == "select-multiple" && dwr.util._isArray(val)) dwr.util._selectListItems(ele, val);    else dwr.util._selectListItem(ele, val);    return;  }  if (dwr.util._isHTMLElement(ele, "input")) {    if (ele.type == "radio") {      // Some browsers match names when looking for ids, so check names anyway.      if (nodes == null) nodes = document.getElementsByName(orig);      if (nodes != null && nodes.length > 1) {        for (i = 0; i < nodes.length; i++) {          node = nodes.item(i);          if (node.type == "radio") node.checked = (node.value == val);        }      }      else ele.checked = (val == true);    }    else if (ele.type == "checkbox") ele.checked = val;    else ele.value = val;    return;  }  if (dwr.util._isHTMLElement(ele, "textarea")) {    ele.value = val;    return;  }  // If the value to be set is a DOM object then we try importing the node  // rather than serializing it out  if (val.nodeType) {    if (val.nodeType == 9 /*Node.DOCUMENT_NODE*/) val = val.documentElement;    val = dwr.util._importNode(ele.ownerDocument, val, true);    ele.appendChild(val);    return;  }  // Fall back to innerHTML  ele.innerHTML = val;};
266	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/266/5f0968e751b894ed190d9fa066917e10069a8255/util.js/clean/java/org/directwebremoting/util.js