function CheckValue()
	{
		form = document.recherche;
		if(form.q.value == "rechercher")form.q.value = "";
		else if(form.q.value == "")form.q.value = "rechercher";
	}
function ValTheme()
	{
		for (i=0;i<document.myform.thematique.length;i++){			
			if (document.myform.thematique[i].checked==true){
				window.location.href = "/carto/"+document.myform.thematique[i].value+"/";
			  	break;}
		  	} 
		
	}
function ChgTheme()
	{
		window.location.href = "/carto/"+document.myform.theme.value+"/";		
	}
function sendData(data,page,cible)
	{
		if(document.all){var XhrObj = new ActiveXObject("Microsoft.XMLHTTP");}else{var XhrObj = new XMLHttpRequest();}
		var content = document.getElementById(cible);
		if(data == 'null'){XhrObj.open("GET", page);}
		else{XhrObj.open("GET", page+"?"+data);}
		XhrObj.onreadystatechange = function(){if(XhrObj.readyState == 4 && XhrObj.status == 200){content.innerHTML = XhrObj.responseText;}} 
		XhrObj.send(null);
	}
function Rech()
	{
		form = document.recherche;
		if(form.q.value != '' && form.q.value != 'Département de Seine-Maritime'){window.location.href='recherche/'+form.q.value+'/';}
	}
function ChgPage(num)
	{
		form = document.recherche;
		form.pg.value = num;
		window.location.href='recherche/'+form.q.value+'/'+num;
	}