function sendData(page, div)
{
		if(document.all)//Internet Explorer
		{
			var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
		}
		else//Mozilla
		{
			var XhrObj = new XMLHttpRequest();
		}

		//dfinition de l'endroit d'affichage:
		var content = document.getElementById(div);
		XhrObj.open("POST", page);
		//Ok pour la page cible
		XhrObj.onreadystatechange = function()
		{
			if (XhrObj.readyState == 4 && XhrObj.status == 200)
				content.innerHTML = XhrObj.responseText ;
		}
		XhrObj.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-1');
		XhrObj.send(null);
}
function sendData2(page, div, laclass)
{
		if(document.all) var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
		else var XhrObj = new XMLHttpRequest();

		var content = document.getElementById(div);
		XhrObj.open("GET", page);
		XhrObj.onreadystatechange = function()
		{
			if (XhrObj.readyState == 4 && XhrObj.status == 200) content.innerHTML = XhrObj.responseText;
			else content.innerHTML = "<div class=\"" + laclass + "\">Chargement...</div>";
		}
		XhrObj.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-1');
		XhrObj.send(null);
}
function sendData3(page, div, path)
{
		if(document.all) var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
		else var XhrObj = new XMLHttpRequest();

		var content = path.getElementById(div);
		XhrObj.open("POST", page);
		XhrObj.onreadystatechange = function()
		{
			if (XhrObj.readyState == 4 && XhrObj.status == 200) content.innerHTML = XhrObj.responseText ;
		}
		XhrObj.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-1');
		XhrObj.send(null);
}


// AUTRES FONCTIONS --------------------------------------------------//

function fillbox (valeur, zone, div)
{
	 	document.getElementById(zone).value = valeur;
		sendData('stop.php', div);
}
