var xhr;

function receive()
{
   if ((xhr.readyState == 4) && xhr.responseText) {
      document.getElementById('actu').innerHTML = xhr.responseText;
   }
}

function AfficherAlbum(dir)
{
   Effect.Appear('actu');
   if (xhr != null) {
      xhr.abort();
   }
   if (window.XMLHttpRequest) {
      xhr = new XMLHttpRequest();
   }
   else if (window.ActiveXObject) {
      try {
         xhr = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
         try {
            xhr = new ActiveXObject("Microsoft.XMLHTTP");
         } catch (e1) {
            xhr = null;
         }
      }
   }
   xhr.onreadystatechange = receive;
   xhr.open("GET", "album.php?dir="+dir, true);
   xhr.send(null);
}

