The map displays at the end of the page. I want the function to terminate by scrolling to the map. Everything works great at first, the page loads, I click on a store name, and I'm scrolled to the map. However, if I scroll back up to the store list and click on another store, the page doesn't scroll (doesn't move at all). However, the new map has been displayed, and except for the lack of scrolling after the first time, everything works great.
function disp_map( lat, lng, balloon_text) }
map.addoverlay(marker); // this causes the map to display
window.location = window.location + "#the_map";
<p class="store_block onclick="disp_map(34.011285,-118.400275,'balloon text goes here')">
store name<br />
// more stores go here
<div id="map"></div> // the map is displayed in this div