document.write("Selected county: " + county + "
\n"); document.write("Selected quads: " + quads + "
\n");
and here's the map of the query results:


Note that the results are not sorted unless the shapefile had been sorted on the quad name item. You could populate JavaScript arrays and do the sort on the result set before writing to the browser.