function showAddress(address,divid) {
var map = null;
var geocoder = null;
if (GBrowserIsCompatible()) {
  map = new GMap2(document.getElementById(divid));
  map.addControl(new GLargeMapControl);
  //map.setCenter(new GLatLng(37.4419, -122.1419), 13);
  geocoder = new GClientGeocoder();
}
if (geocoder) {
  geocoder.getLatLng(address,
    function(point) {
      if (!point) {
    	var myDiv = document.getElementById(divid);
    	myDiv.innerHTML = "Google Maps could not find this address"
        //alert(1)
          } else {
            map.setCenter(point, 13);
            var marker = new GMarker(point);
            map.addOverlay(marker);
            //marker.openInfoWindowHtml(address);
          }
        }
      )
    }
 }


/* ########## GOOGLE API - GEOCODER - V3 ############*/
function showAddressV3(address,divid) {
	
	var myOptions = {
		zoom: 13,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};
	geocoder = new google.maps.Geocoder();
	map = new google.maps.Map(document.getElementById(divid),myOptions);
    
    if (geocoder) {
      geocoder.geocode( { 'address': address}, function(results, status) {
        if (status == google.maps.GeocoderStatus.OK) {
          map.setCenter(results[0].geometry.location);
          var marker = new google.maps.Marker({
              map: map, 
              position: results[0].geometry.location
          });
        } else {
        	map = null;
        	document.getElementById(divid).innerHTML = 'Geocode was not successful for the following reason: ' + status;
        }
      });
    }
	
}

function showAddressV3LatLong(lat,longi,divid) {
	

	
	var myLatlng = new google.maps.LatLng(lat, longi);
	
	var myOptions = {
		zoom: 13,
		center: myLatlng,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	}
	
	var map = new google.maps.Map(document.getElementById(divid),myOptions);
    
	var marker = new google.maps.Marker({
        map: map, 
        position: myLatlng,
        title:"Physical Location\r\n\r\nLatitude:"+lat+", Longitude:"+longi
    });
}

