function showMap(address,city,state){
    var mapwin;
    var location = address+','+city+','+state;
    if (!mapwin) {
    var mapwin = new Ext.Window({
    layout: 'fit',
    title: 'Event Venue',
    closeAction: 'hide',
    width: 400,
    height: 400,
    x: 320,
    y: 150,
    items: {
    id:'gMap1',
    xtype: 'gmappanel',
    region: 'center',
    zoomLevel: 14,
    gmapType: 'map',
    addControl: new GSmallMapControl(),
    setCenter: {
                        geoCodeAddr: location,
    marker: {
    title: address
    }
    }
    }
    });

    }
	var geocoder = new GClientGeocoder();
	geocoder.reset();
	geocoder.getLatLng(location, function(point) {
		if (!point) {
			alert("We were not able to locate the address");
		}else{
			mapwin.show();
		}
	});
}

function showMapLink(address,city,state,divId){
	var geocoder = new GClientGeocoder();
	var location = address+','+city+','+state;
	geocoder.reset();
	geocoder.getLatLng(location, function(point) {
	document.getElementById(divId).style.display = "block";
	});
}

