rem: q = refinements[ref].getElementsByTagName('query')[0] q = GXml.value(q) d = refinements[ref].getElementsByTagName('description')[0] d = GXml.value(d) 
add: q = GXml.value(refinements[ref].getElementsByTagName('query')[0]) d = GXml.value(refinements[ref].getElementsByTagName('description')[0]) 
context: function search(s) {    document.getElementById('Submit1').value = 'Searching...';    var r = GXmlHttp.create();    r.open("GET", "/lookup.php?output=xml&q=" + s, true);    r.onreadystatechange = function(){        if (r.readyState == 4) {            document.getElementById('Submit1').value = 'Search';            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 = refinements[ref].getElementsByTagName('query')[0]                    q = GXml.value(q)                    d = refinements[ref].getElementsByTagName('description')[0]                    d = GXml.value(d)                    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);};
meta: 4679	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/071bfe827e73b27a5ad4cb5faa8c4f48c34e3db7/pop.js/buggy/docs/js/pop.js