rem: out += '<li><a href="#needsJS" onclick=\'window.search("' + q + '"); return false;\'>' + d + '</a>' 
add: out += '<li><a href="#needsJS" onclick=\'POPsearch("' + q + '"); return false;\'>' + d + '</a>' 
context: function POPsearch(s) {    var d = document.getElementById('Submit1')    d.value = 'Searching...'; d.disabled = true    document.getElementById('q').disabled = true    var r = GXmlHttp.create();    r.open("GET", "/lookup.php?output=xml&q=" + encodeURIComponent(s), true);    r.onreadystatechange = function(){        if (r.readyState == 4) {            var d = document.getElementById('Submit1')            d.value = 'Search'; d.disabled = false            document.getElementById('q').disabled = false            x = r.responseXML            c = x.getElementsByTagName('center')[0]            s = x.getElementsByTagName('span')[0]            if (c && s) {                p = GPoint.fromLatLngXml(c)                s = GSize.fromLatLngXml(s)                z = map.spec.getLowestZoomLevel(p, s, map.viewSize)                map.centerAndZoom(p, z)                document.getElementById('search_results').style.display = 'none'                return 1;            }            refinements = x.getElementsByTagName('refinement');            if (refinements.length) {                var out = '<p>More than one match:</p><ul>'                for (ref=0; ref<refinements.length; ref++) {                    q = GXml.value(refinements[ref].getElementsByTagName('query')[0])                    d = GXml.value(refinements[ref].getElementsByTagName('description')[0])                    out += '<li><a href="#needsJS" onclick=\'window.search("' + q + '"); return false;\'>' + d + '</a>'                }                out += '</ul>'                d = document.getElementById('search_results')                d.innerHTML = out                d.style.display = 'block'                return 1;            }            error = x.getElementsByTagName('error')[0]            if (error) {                d = document.getElementById('search_results')                d.innerHTML = GXml.value(error)                d.style.display = 'block'            }        }    }    r.send(null);    return false;};
meta: 4679	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/a3e9f600215fc68dd77a3000e24dca82a27ea07f/pop.js/buggy/docs/js/pop.js