function verif(f,id,name,name2)
{
	var texte = f.name.value;
	var xhr;
	if (window.XMLHttpRequest) xhr = new XMLHttpRequest();
	else if (window.ActiveXObject) xhr = new ActiveXObject('Microsoft.XMLHTTP');
	else
		return;
	
	xhr.open('POST','ajax/ajax_inscription.php?id='+id+'&'+id+'='+name+'&'+id+'2='+name2,true);
	xhr.onreadystatechange = function()
	{
		if (xhr.readyState == 4)
		{
			if (document.getElementById)
				document.getElementById(id).innerHTML = xhr.responseText;
		}
	}
	xhr.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	var data = 'texte='+encodeURIComponent(texte);
	xhr.send(data);
}
