rem: function setValue(id, val) 
add: DWRUtil.setValue = function(id, val) 
context: function setValue(id, val){    if (val == null)    {        val = "";    }    var ele = document.getElementById(id);    if (ele == null)    {        alert("Element id: "+id+" not found.");        throw id;    }    if (isHTMLSelectElement(ele))    {        // search through the values        var found  = false;        for (var i = 0; i < ele.options.length; i++)        {            if (ele.options[i].value == val)            {                ele.options[i].selected = true;                found = true;            }            else            {                ele.options[i].selected = false;            }        }        // If that fails then try searching through the visible text        if (found)        {            return;        }        for (var i = 0; i < ele.options.length; i++)        {            if (ele.options[i].text == val)            {                ele.options[i].selected = true;                break;            }        }        return;    }    if (isHTMLInputElement(ele))    {        switch (ele.type)        {        case "check-box":        case "radio":            ele.checked = (val == true);            return;        case "hidden":        case "text":            ele.value = val;            return;        default:            alert("Not sure how to setValue on a input element of type " + ele.type);            ele.value = val;            return;        }    }    if (isHTMLTextAreaElement(ele))    {        ele.value = val;        return;    }    if (isHTMLElement(ele))    {        ele.innerHTML = val;        return;    }    alert("Not sure how to setValue on a " + ele);    ele.innerHTML = val;}
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/1c2e43c84790bfe925e41713280232cd61fc9288/util.js/clean/java/uk/ltd/getahead/dwr/util.js