thanks for the amazing response Ray.
I got rid of the infowindow - no problems.
I tried adding the function and additional code block to both the map page and the wagmp_map_1.php page, as I was having trouble getting it to work.
i changed references from wagmp_map_3_obj to wagmp_map_1_obj in the code, so it corresponded to my form
the infowindow now displays the search box, but clicking the button has unusual effect.
i get a response from the onclick, i get alert of 0, then 1, then the directions are created, but not to the address i selected, always the ip14 address
can you please clarify..." You would replace the [0] with [1] for the second info window each time it appears."
i think its nearly there, i'm just not quite up to speed.
(I updated my web page if that helps)
thanks