var xhr = null; 
function getXhr()
{
     if(window.XMLHttpRequest)xhr = new XMLHttpRequest(); 
else if(window.ActiveXObject)
  { 
  try{
     xhr = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (e) 
     {
     xhr = new ActiveXObject("Microsoft.XMLHTTP");
     }
  }
else 
  {
  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
  xhr = false; 
  } 
}
 
function countvideoHits()
{
getXhr();

xhr.onreadystatechange = function()
    {
     if(xhr.readyState == 4 && xhr.status == 200)
     {
     document.getElementById('adad').innerHTML=xhr.responseText;
     }
    }	
xhr.open("GET","ajax/ajax.php?p=11&s=1&page=1&bool=0&c="+ Math.random() ,true);
xhr.send(null);
setTimeout("countvideoHits()", 6500);
}
