	function getXhr(){
		var xhr = null; 
		if(window.XMLHttpRequest)
		   xhr = new XMLHttpRequest(); 
		else if(window.ActiveXObject){
		   try {
					xhr = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					xhr = new ActiveXObject("Microsoft.XMLHTTP");
				}
		}
		else {
		   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		   xhr = false; 
		} 
		return xhr;
	}
	
	function go(){
		
		
		
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				document.getElementById('maStation').innerHTML = leselect;
			}
		}
		xhr.open("POST","../affichage-stations.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		sel = document.getElementById('selectDepartement');
		idDepartement = sel.value;
		xhr.send("idDepartement="+idDepartement);
	}
	
	function go2(){
		
		if (document.getElementById('Station').value != "all") {
			
			var url = "http://www.skilou.com/location-ski/loueurs-"+document.getElementById('Station').value;
			document.forms['zoneRecherche'].action = url;
			//document.getElementById('ZoneRecherche').form.action = 'url.php';
			//window.location.replace("../location/loueurs-"+document.getElementById('Station').value+".php");
		}
	}

	
	
	
	function goUk(){
		
		
		
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				document.getElementById('maStation').innerHTML = leselect;
			}
		}
		xhr.open("POST","../uk-affichage-stations.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		sel = document.getElementById('selectDepartement');
		idDepartement = sel.value;
		xhr.send("idDepartement="+idDepartement);
	}
	
	function go2Uk(){
		
		if (document.getElementById('Station').value != "all") {
			
			var url = "http://www.skilou.com/ski-hire/renter-"+document.getElementById('Station').value;
			document.forms['zoneRecherche'].action = url;
			//document.getElementById('ZoneRecherche').form.action = 'url.php';
			//window.location.replace("../location/loueurs-"+document.getElementById('Station').value+".php");
		}
	}