getCriteres=function()
{
	var t=new Array;
	var crit=new Array;
	
   	$("input[name=activite]:checked").each(
	   	function()
	   	{
		   t.push($(this).val());
	   	}
   	)
   	crit['act']=t.join(',');
   	t=new Array;
	
	
	$("input[name=activiteconnexe]:checked").each(
	   	function()
	   	{
		   t.push($(this).val());
	   	}
   	)
   	crit['act_co']=t.join(',');
   	t=new Array;
   	
   	$("input[name=effectif]:checked").each(
	   	function()
	   	{
		   t.push($(this).val());
	   	}
   	)
   	crit['eff']=t.join(',');
   	t=new Array;
   	
   	$("input[name=niveausstrait]:checked").each(
	   	function()
	   	{
		   t.push($(this).val());
	   	}
   	)
   	crit['sst']=t.join(',');
   	
   	return crit;
}

reloadMap=function()
{
	recherche=$("#recherchefiche").val()
	if(recherche){
		$("#recherchelimiter").submit()
		return;
		
	}
   var choix=getCriteres();
   var choixchaine="crit_act="+choix['act']+"&crit_act_co="+choix['act_co']+"&crit_eff="+choix['eff']+"&crit_sst="+choix['sst'];
   removeMarkers();
   setMapFlux("carte.php?"+choixchaine);
   loadMarkers();
}