
function testConnexion(log){
	if(log!=''){alert('oki1');
		if(window.XMLHttpRequest)
		{ // Firefox 
			   xhrConn = new XMLHttpRequest(); 
		}
		else if(window.ActiveXObject)
		{ // Internet Explorer 
					try{
						xhrConn = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						xhrConn = new ActiveXObject("Microsoft.XMLHTTP");
					}
		}
			 
		if(!xhrConn)
		{ // XMLHttpRequest non supporté par le navigateur 
		   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
		   xhrConn = false; 
		}

		/*xhrConn.onreadystatechange  = function()
		{
			try{
				  if(xhrConn.readyState  == 4)
				 {
					  if(xhrConn.status  == 200)
						if(xhrConn.responseText==''){
							alert('pas recu');
						}else{
							alert(xhrConn.responseText);
						}
				} 
			}
			catch(e){
			}
		}*//*
		xhr.open(method,url, true); 
		xhr.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
		xhr.send(null);*/	
		
		complet="logout=1";
		//alert(complet);
		
		xhrConn.open("POST", "phpAjax/testConnexion.php", true);
		xhrConn.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 	 
		xhrConn.send(complet); 	
	}
}

