    var map;
    var geocoder;

    function initialize() {
        var lat = parseFloat(document.getElementById("lat").value);
        var lng = parseFloat(document.getElementById("lng").value);

        if (GBrowserIsCompatible()) {
            map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(new GLatLng(lat, lng), 14);
            map.setUIToDefault();
            geocoder = new GClientGeocoder();
            showLocation();
        }
    }

    function showLocation() {
        point = new GLatLng(parseFloat(document.getElementById("lat").value),
                        parseFloat(document.getElementById("lng").value));
        marker = new GMarker(point);

        GEvent.addListener(marker, "click", function() {
            showInfoWindow(marker);
        });

        map.setCenter(point, 14);
        map.addOverlay(marker);
        showInfoWindow(marker);
    }

    function showInfoWindow(marker) {
        var html = "";
        html += "<small class='sMap'><strong class='sName'>" + document.getElementById("sName").value + "</strong><br />";
        html += "&nbsp;&nbsp;" + document.getElementById("sPcode").value + "<br />";
        html += "&nbsp;&nbsp;" + "沖縄県うるま市&nbsp;" + document.getElementById("sAddr1").value + '&nbsp;' + document.getElementById("sAddr2").value + "<br />";
        html += "&nbsp;&nbsp;Tel:" + document.getElementById("sTel").value + "</small>";
        marker.openInfoWindowHtml(html);
    }

