var map = null;
var geocoder = null;

function showAddress() {
	address = document.getElementById("reload_address").value;
	map = new GMap2(document.getElementById("google_map"));
	geocoder = new GClientGeocoder();
	if (geocoder) {
		geocoder.getLatLng(
			address,
			function(point) {
				if (!point) {
					lat=document.getElementById("reload_glat").value;
					lng=document.getElementById("reload_glng").value;
					city=document.getElementById("reload_city").value;
					point = new GLatLng(lat, lng);
					address = city;
				}
				map.setCenter(point, 13);
				var marker = new GMarker(point);
				map.addOverlay(marker);
				marker.openInfoWindowHtml(address);
        		map.addControl(new GSmallMapControl());
			}
		);
	}
}