function p_pays(champ)
{
      if(champ.selectedIndex>0)
         pays.submit()
}

function p_dep(champ)
{
      if(champ.selectedIndex>0)
         depart.submit()
}

function p_ville(champ) 
{
      if(champ.selectedIndex>0)
         vil.submit()
}

function p_asso(champ) 
{
      if(champ.selectedIndex>0)
         nasso.submit()
}

	
//Creation de la fonction createInfoMarker
function createInfoMarker(point, address) {
	var marker = new GMarker(point);
	GEvent.addListener(marker, "click", function() 
		{
       		marker.openInfoWindowHtml(address);
         });
  return marker;
}

// Creates a marker at the given point with the given number label
function createMarker(point, number) {
	var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() 
		{
       		marker.openInfoWindowHtml("Marker #<b>" + number + "</b>");
         });
    return marker;
}

//
function deplace(lo, la) 
{
   map.setCenter(new GLatLng(lo, la), 10);
}

function showAddress(address) 
{
      if (geocoder)
	  {
        geocoder.getLatLng(
          address,
          function(point)
		  {
            if (!point)
			{
              alert(address + " not found");
           	}
			else 
			{
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          });
      }
}


