rem: liveSearchHide(GetResult); 
add: liveSearchHide(GetResult); } if (event.keyCode == 40 )  { highlight = document.getElementById("LSHighlight"); if (!highlight) { highlight = document.getElementById(GetShadow).firstChild.firstChild; } else { highlight.removeAttribute("id"); highlight = highlight.nextSibling; } if (highlight) { highlight.setAttribute("id","LSHighlight"); document.getElementById(elementId).value = highlight.firstChild.getAttribute("text"); document.getElementById(realName).value = highlight.firstChild.getAttribute("value"); } if (!isIE) { event.preventDefault(); } }  else if (event.keyCode == 38 ) { highlight = document.getElementById("LSHighlight"); if (!highlight) { highlight = document.getElementById(GetResult).firstChild.firstChild.lastChild; } else { highlight.removeAttribute("id"); highlight = highlight.previousSibling; } if (highlight) { highlight.setAttribute("id","LSHighlight"); document.getElementById(elementId).value = highlight.firstChild.getAttribute("text"); document.getElementById(realName).value = highlight.firstChild.getAttribute("value"); } if (!isIE) { event.preventDefault(); } }  else if (event.keyCode == 27) { highlight = document.getElementById("LSHighlight"); if (highlight) { highlight.removeAttribute("id"); } document.getElementById(GetResult).style.display = "none"; } else if (Obj.value.length == 0 && SearchZero == 1) { searchRequest(Obj, elementId); } else if (Obj.value.length > 0) searchRequest(Obj, elementId); 
context: function liveSearchKeyPress (Obj, event, GetResult, GetShadow, elementId , realName, SearchZero ){    isIE = false;    if (navigator.userAgent.indexOf("Safari") > 0) {        //    } else if (navigator.product == "Gecko") {        //    } else {        isIE = true;    }//    if (event.keyCode == 9 )    document.getElementById(realName).value = '';    if (event.keyCode == 13 ) {        liveSearchHide(GetResult);    }    if (event.keyCode == 40 )    //KEY DOWN    {        highlight = document.getElementById("LSHighlight");        if (!highlight) {            highlight = document.getElementById(GetShadow).firstChild.firstChild;        } else {            highlight.removeAttribute("id");            highlight = highlight.nextSibling;        }        if (highlight) {            highlight.setAttribute("id","LSHighlight");            document.getElementById(elementId).value = highlight.firstChild.getAttribute("text");            document.getElementById(realName).value = highlight.firstChild.getAttribute("value");        }       if (!isIE) { event.preventDefault(); }    }    //KEY UP    else if (event.keyCode == 38 ) {        highlight = document.getElementById("LSHighlight");        if (!highlight) {            highlight = document.getElementById(GetResult).firstChild.firstChild.lastChild;        }        else {            highlight.removeAttribute("id");            highlight = highlight.previousSibling;        }        if (highlight) {                highlight.setAttribute("id","LSHighlight");            document.getElementById(elementId).value = highlight.firstChild.getAttribute("text");            document.getElementById(realName).value = highlight.firstChild.getAttribute("value");        }       if (!isIE) { event.preventDefault(); }    }    //ESC    else if (event.keyCode == 27) {        highlight = document.getElementById("LSHighlight");        if (highlight) {            highlight.removeAttribute("id");        }        document.getElementById(GetResult).style.display = "none";    } else if (Obj.value.length == 0 && SearchZero == 1) {        searchRequest(Obj, elementId);    } else if (Obj.value.length > 0)        searchRequest(Obj, elementId);}
meta: 9958	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9958/675b6f8cd46debc2d5bd8c46427b0f9f0d98e0bf/live.js/clean/example/live.js