function verifierIdentifiant()
{
	var identifiant = document.getElementById("Identifiant").value;
	// CREATION D'UNE INSTANCE XHR DE L'OBJET XMLHttpRequest
	var xhr;
	try {xhr = new ActiveXObject('Msxml2.XMLHTTP');}
	catch (e)
	{
		try {xhr = new ActiveXObject('Microsoft.XMLHTTP');}
		catch (e2)
		{
			try {xhr = new XMLHttpRequest();}
			catch (e3) {xhr = false;}
		}
	}
	// ON TESTE LA RECUPERATION DES DONNEES POUR AFFICHAGE
	xhr.onreadystatechange = function()
	{
		if(xhr.readyState == 4)
		{
			if(xhr.status == 200)
			{
				if(xhr.responseText == 'OK')
				{
					document.getElementById("Identifiant").style.backgroundColor = '#29496f';
					document.getElementById("Identifiant").style.color = 'white';
					document.getElementById("Identifiant").style.backgroundImage = 'url(\'Images/Pictogrammes/Validation.png\')';
					document.getElementById("Identifiant").style.backgroundPosition = 'bottom right';
					document.getElementById("Identifiant").style.backgroundRepeat = 'no-repeat';
				}
				else
				{
					document.getElementById("Identifiant").style.backgroundColor = 'white';
					document.getElementById("Identifiant").style.color = '#29496f';
					document.getElementById("Identifiant").style.backgroundImage = 'none';
					document.getElementById("Identifiant").style.backgroundPosition = 'bottom right';
					document.getElementById("Identifiant").style.backgroundRepeat = 'no-repeat';
				}
			}
		}
	};
	// REQUETE XHR
	xhr.open("GET", "Php/verifierIdentifiant.ajax.php?Identifiant="+identifiant, true);
	xhr.send(null);
}

function verifierMotDePasse()
{
	var motdepasse = document.getElementById("MotDePasse").value;
	var identifiant = document.getElementById("Identifiant").value;
	// CREATION D'UNE INSTANCE XHR DE L'OBJET XMLHttpRequest
	var xhr;
	try {xhr = new ActiveXObject('Msxml2.XMLHTTP');}
	catch (e)
	{
		try {xhr = new ActiveXObject('Microsoft.XMLHTTP');}
		catch (e2)
		{
			try {xhr = new XMLHttpRequest();}
			catch (e3) {xhr = false;}
		}
	}
	// ON TESTE LA RECUPERATION DES DONNEES POUR AFFICHAGE
	xhr.onreadystatechange = function()
	{
		if(xhr.readyState == 4)
		{
			if(xhr.status == 200)
			{
				if(xhr.responseText == 'OK')
				{
					document.getElementById("MotDePasse").style.backgroundColor = '#29496f';
					document.getElementById("MotDePasse").style.color = 'white';
					document.getElementById("MotDePasse").style.backgroundImage = 'url(\'Images/Pictogrammes/Validation.png\')';
					document.getElementById("MotDePasse").style.backgroundPosition = 'bottom right';
					document.getElementById("MotDePasse").style.backgroundRepeat = 'no-repeat';
				}
				else
				{
					document.getElementById("MotDePasse").style.backgroundColor = 'white';
					document.getElementById("MotDePasse").style.color = '#29496f';
					document.getElementById("MotDePasse").style.backgroundImage = 'none';
					document.getElementById("MotDePasse").style.backgroundPosition = 'bottom right';
					document.getElementById("MotDePasse").style.backgroundRepeat = 'no-repeat';
				}
			}
		}
	};
	// REQUETE XHR
	xhr.open("GET", "Php/verifierMotDePasse.ajax.php?MotDePasse="+motdepasse+"&Identifiant="+identifiant, true);
	xhr.send(null);
}