function showAddress(caixaEndereco, divMapa, width, height) {

    var map = null;
    var geocoder = null;
    var objetoMapa = null;

    if (caixaEndereco) {

        if (typeof caixaEndereco == "string")
            address = caixaEndereco;
        else
            address = caixaEndereco.value;

        address = address.toUpperCase();
        address = address.replaceAll("CEP:", "");
        address = address.replaceAll("CEP", "");
        address = address.replaceAll("ANDAR", "");
        
        if (address.indexOf("BR") < 0)
            address += ",BR"

        if (GBrowserIsCompatible()) {

            objetoMapa = document.getElementById(divMapa);
            geocoder = new GClientGeocoder();

            if (geocoder) {
                geocoder.getLatLng(
                  address,
                  function (point) {
                      if (!point) {
                          if (objetoMapa) {
                              objetoMapa.style.display = "none";
                              objetoMapa.style.visibility = "hidden";
                          }
                      } else {
                          map = new GMap2(objetoMapa, { size: new GSize(width, height) });
                          map.setCenter(point, 15);
                          map.addOverlay(new GMarker(point));
                      }
                  }
                );
            }
        }
    }
  }

  String.prototype.replaceAll = function (OldValue, NewValue) {
      var returnValue = "";
      returnValue = this;
      while (returnValue.indexOf(OldValue) >= 0) {
          returnValue = returnValue.replace(OldValue, NewValue);
      }
      return returnValue.toString();
  };




