function initializeAreaMap(metro, address) {
    // var metro = document.getElementById("metro_id").value
   //alert('hhh')
    var scale_factor = 9;
    if (metro == "2") {
        latitude = 32.7761;
        longitude = -96.9291;
        scale_factor = 8;
    }
    else {
        latitude = 30.277952882891515;
        longitude = -97.79196739196777;
    }

    var myPoint = new GLatLng(latitude, longitude);

    if (GBrowserIsCompatible()) {
        geocoder = new GClientGeocoder();
        map = new GMap2(document.getElementById("map_canvas"));
        map.enableScrollWheelZoom();
        map.addControl(new GSmallMapControl());

        if (geocoder) {
            geocoder.getLatLng(
          address,
          function(point) {
              if (!point) {
                  // alert(address + " not found");
              } else {
                  map.setCenter(point, 12);
              }
          }
        );
        }
        else {
            //  Center the map
            map.setCenter(new GLatLng(latitude, longitude), scale_factor);
        }
    }
}

function handleNoFlash(errorCode) {
    if (errorCode == 603) {
        alert("Error: Flash doesn't appear to be supported by your browser");
        return;
    }
}


function GoCity(address) {
    var geocoder = null;
    if (GBrowserIsCompatible()) {
        geocoder = new GClientGeocoder();
    }

    if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
              if (!point) {
                 // alert(address + " not found");
              } else {
                  map.setCenter(point, 12);
//                  var marker = new GMarker(point);
//                  map.addOverlay(marker);
//                  marker.openInfoWindowHtml(address);
              }
          }
        );
    }
}