function showAddress() 
{
    // daniel@klixo.net.nz
    // http://www.google.com/apis/maps/documentation/reference.html
    if (GBrowserIsCompatible()) 
    {
    	var sGLatLng = document.getElementById("oGLatLng").value;
    	eval("var point = new GLatLng(" + sGLatLng + ");");
    	DrawMarker(point);
    }
}

function DrawMarker(point)
{
	var gZoomLevel = 16; //starting zoom level

	if (!point) 
	{
		alert(address + " not found");
	} 
	else 
	{
		// Initialise the map object
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());

		// center the map
		map.setCenter(point, gZoomLevel);
		// draw the marker
		var marker = new GMarker(point);
		map.addOverlay(marker);
		// Show the info
		var info = document.getElementById("info");
		info.style.display = "block"; 
		marker.openInfoWindow(info);
	}
}				   
