function redirectLangueV2(base, idPageAccueil, idPageATester, idNews, langueActuelle)
{
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); //IE 6 ou superieur
	}
	catch(e){  
		xmlhttp = new XMLHttpRequest();	 //Mozilla
	}
	
	// récupère la langue sélectionnée
	var selectLangue = document.getElementById("choixLangue");
	var langue = selectLangue.options[selectLangue.selectedIndex].value;
	
	
	// fonction d'action
	function redirection(langue)
	{
		//requete effectuée
		if(xmlhttp.readyState == 4)
		{
			//OK
			if(xmlhttp.status < 400)
			{
				var reponse = xmlhttp.responseText;
				if (langue != 0)
					var urlLangue = '&L='+langue;
				else
					var urlLangue = '';
						
				if (reponse == 'oui')
					window.location.href='http://'+ base + '/index.php?id='+ idPageATester + urlLangue;
				else if (reponse == 'non')
					window.location.href='http://'+ base + '/index.php?id='+ idPageAccueil + urlLangue;
				else
					window.location.href='http://'+ base + '/index.php?id='+ reponse + urlLangue;
			}
		}
	}
	
	
	//gestionnaire d'évènements pour le changement d'état
	xmlhttp.onreadystatechange = function()
	{
		redirection(langue);
	}
	
	
	
	xmlhttp.open("POST", "http://www.celette.com/fileadmin/application/php/ajaxExistencePageLangue.php", true);
	xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send('base=' + base + '&langue=' + langue + '&page='+ idPageATester + '&actu=' + idNews +'&langueActuelle='+ langueActuelle);
	
}