ele = dwr.util.byId(ele);   var nodes = document.getElementsByName(orig); if (ele == null && nodes.length >= 1) { ele = nodes.item(0); 
if (typeof ele == "string") { ele = dwr.util.byId(ele);    if (ele && ele.id != orig) ele = null; } var nodes = null; if (ele == null) {  nodes = document.getElementsByName(orig); if (nodes.length >= 1) ele = nodes.item(0); 
dwr.util.getValue = function(ele, options) {  if (options == null) options = {};  var orig = ele;  ele = dwr.util.byId(ele);  // We can work with names and need to sometimes for radio buttons, and IE has  // an annoying bug where  var nodes = document.getElementsByName(orig);  if (ele == null && nodes.length >= 1) {    ele = nodes.item(0);  }  if (ele == null) {    dwr.util._debug("getValue() can't find an element with id/name: " + orig + ".");    return "";  }  if (dwr.util._isHTMLElement(ele, "select")) {    // Using "type" property instead of "multiple" as "type" is an official     // client-side property since JS 1.1    if (ele.type == "select-multiple") {      var reply = new Array();      for (i = 0; i < ele.options.length; i++) {        var item = ele.options[i];        if (item.selected) {          var valueAttr = item.getAttributeNode("value");          if (valueAttr && valueAttr.specified) {            reply.push(item.value);          }          else {            reply.push(item.text);          }        }      }      return reply;    }    else {      var sel = ele.selectedIndex;      if (sel != -1) {        var item = ele.options[sel];        var valueAttr = item.getAttributeNode("value");        if (valueAttr && valueAttr.specified) {          return item.value;        }        return item.text;      }      else {        return "";      }    }  }  if (dwr.util._isHTMLElement(ele, "input")) {    if (ele.type == "radio") {      var node;      for (i = 0; i < nodes.length; i++) {        node = nodes.item(i);        if (node.type == "radio") {          if (node.checked) {            if (nodes.length > 1) return node.value;            else return true;          }        }      }    }    switch (ele.type) {    case "checkbox":    case "check-box":    case "radio":      // if (ele.checked && ele.value != "") return ele.value;      // else      return ele.checked;    default:      return ele.value;    }  }  if (dwr.util._isHTMLElement(ele, "textarea")) {    return ele.value;  }  if (dwr.util._shouldEscapeHtml(options)) {    if (ele.textContent) return ele.textContent;    else if (ele.innerText) return ele.innerText;  }  return ele.innerHTML;};
266	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/266/5f0968e751b894ed190d9fa066917e10069a8255/util.js/clean/java/org/directwebremoting/util.js