function SendForm(url,form_name,id_res,no_valid){	
		startLoading();
		var ton_form=document.forms[form_name];
		var str_param = "";
		for (i=0; i<ton_form.length; i++) {
			// On vérifie si c'est un nom de formulaire sous forme de tableau ou non
			l = ton_form.elements[i].name.substring((ton_form.elements[i].name.length-1),ton_form.elements[i].name.length);
			
			if ((l=="]" && ton_form.elements[i].checked==true) || ((ton_form.elements[i].checked==null || ton_form.elements[i].checked==false) && l!="]"))
				str_param += "&" + ton_form.elements[i].name + "=" + ton_form.elements[i].value;
		}
		str_param += "&no_valid=" + no_valid;
		str_param = ltrim(str_param,'&');
		//alert(str_param);

		new Ajax.Request(url,{
		  method: 'post',
		  asynchronous: true,
		  contentType: 'application/x-www-form-urlencoded',
		  encoding: 'UTF-8',
		  parameters: str_param,
		  onSuccess: onSuccess,
		  onFailure: onFailure
		});

		function onSuccess(xhr)
		{
			if (xhr.status == 200)
			{
				$(id_res).innerHTML = xhr.responseText;
			}
			else
			{
				$(id_res).innerHTML = xhr.status
							+ ' : ' + xhr.statusText;
			}
			stopLoading();
		} 

		function onFailure() {
			alert("Erreur onFailure de l'AjaxRequest");
		}
  }

function envoieRequete(url,id) {
	startLoading(); 
	var xhr_object = null;
	if(window.XMLHttpRequest) 
		xhr_object = new XMLHttpRequest();
	else if (window.ActiveXObject) 
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");

	// On ouvre la requete vers la page désirée
	xhr_object.open("GET", url, true);
	xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xhr_object.onreadystatechange = function(){
		if ( xhr_object.readyState == 4 ) {
			// j'affiche dans la DIV spécifiées le contenu retourné par le fichier
			document.getElementById(id).innerHTML = xhr_object.responseText;
			stopLoading();
		}
	}

	// dans le cas du get
	xhr_object.send(null);
} 