// JavaScript Document
    var map = null;
    var geocoder = null;
    var ok = false
    var gPoint = null
    //var WindowHtml = ""
	function getMap(gpsx, gpsy, societe, adresse, codepostal, ville) {
		//WindowHtml = "<span style=\"font-size: 12px;\"><b>" + societe + "</b></span>"
		if (GBrowserIsCompatible()) {
			geocoder = new GClientGeocoder();
			if (geocoder) {
			    if (gpsx != 0 && gpsy != 0) {
			        gPoint = new GLatLng(gpsx, gpsy)
			        Montrer(gPoint)
			    } else {
			    	
			        var address = '';
                    if (adresse != '')
				        address = adresse+','+codepostal+','+ville+',france';
			        else
				        address = codepostal+','+ville+',FR';
                    geocoder.getLatLng(address, Montrer)
                    
			    }
			}
		}
	}
	function Montrer (point){
		map = new GMap2(document.getElementById('map'));
		map.addControl (new GLargeMapControl());
		map.addControl (new GMapTypeControl());
        map.setCenter(point, 11);
        marker = new GMarker(point);
        //marker.openInfoWindowHtml(WindowHtml)
       	map.addOverlay(marker);
 	}
