﻿// GoogleMap related functions, requires GoogleMap Api

function showListView() {
	document.getElementById("cyberknifelocations").style.visibility = "visible";
	document.getElementById("locationmap").style.visibility = "hidden";
}
function showMapView() {
	document.getElementById("cyberknifelocations").style.visibility = "hidden";
	document.getElementById("locationmap").style.visibility = "visible";

}
		//Function to get GeoCode from address
		//sGeoCode must 
		function getGeoCode(sAddress) {
			var oGeoCoder = new GClientGeocoder();
			var r;
			oGeoCoder.getLatLng(sAddress,
			  function(point) {
				if (!point) { r = "0,0"; } 
				else {
					alert(point);
					r = point;
				}
			  }
			);
			return r.value;
		}

