function showAddress() { geocoder = new google.maps.Geocoder() address=document.getElementById("Church_Search").value+", UK"; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) document.getElementById("Catholic_location").value=results[0].geometry.location; else document.getElementById("Catholic_location").value=''; document.Catholic_Church.submit(); }) } // programming (c) CathCom/CatholicDirectory/Nick Layton // function runScript(e) { if (e.keyCode == 13) { showAddress(); return false; } }