automatic reload google maps ajax

automatic reload google maps ajax

hi, iam not sure if i here in the correct forum.
but iam looking for a sample  that when i enter a town or zipcode on a
webformular and after a short time the google maps will automatically
refresh and show me the current location. how can i realize that?
(without click on a search button, or that the whole page reload)

i found something on a sample page (it seems made with prototype) that is what i want
 var observeFieldsSearch = ['location'];
  var observeEventsSearch = ['keyup', 'change'];
  observeFieldsSearch.each(function(fld) {
   observeEventsSearch.each(function(evt) {
    $(fld).observe(evt, scheduleSearch);
   })
  })












 
 
but iam not found the code for schedulesearch. is that problem solve with jquery?