// JavaScript Document

function logoff()
{ 
    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;   }
        }
     }
 
    xhr.onreadystatechange  = function()
    {    if(xhr.readyState  == 4)
         {    if(xhr.status  == 200) {
                 alert (xhr.responseText); 
				 window.location.reload(true); 
			  } else {
                 alert ("Erreur : " + xhr.status); 
			  }
         }
    }; 
	
	xhr.open( "POST", "/_ajax_logoff.php", true); 
	xhr.send(null); 
} 
