function search(){
	var parametre = $("input[name='recherche']").val();
	$.ajax({
		type: "GET",
		url: "data.php",
		data: "param="+parametre,
		success: function(msg){
			$("#res_search").html( msg );
		}
	});
}



function lieu(reg,lieu_select){
	var reg;
	var lieu_select;
	$.ajax({
		type: "GET",
		url: "data.php",
		data: "reg="+reg+"&lieu="+lieu_select,
		success: ok,
		error: function (){alert ('Failure'+response.responseText);}
	});
}

function ok(reponse) {
	$.ajaxSetup({
	   async: false
	});						                    	
	$('#res_lieu').html(reponse);  		
	$.getScript("slide.js");
	$.ajaxSetup({
	   async: false
	});		  		  
}

function inventaire(obj){
	var obj;
	$.ajax({
		type: "GET",
		url: "data.php",
		data: "obj="+obj,
		success: function(msg){
			$("#bout_content").html( msg );
		}
	});
}

function bestiaire(lieu_best){
	var lieu_best;
	$.ajax({
		type: "GET",
		url: "data.php",
		data: "lieu_best="+lieu_best,
		success: function(msg){
			$("#contenu_bestiaire").html( msg );
		}
	});
}
