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 o(page)
{
getXhr();
xhr.onreadystatechange = function()
    {
     if(xhr.readyState == 4 && xhr.status == 200)
     {
     document.getElementById('n').innerHTML=xhr.responseText;
     }
    }
xhr.open("GET","http://www.mobimaroc.net/nv/n.php?n="+page,true);
xhr.send(null);
}



function i(page)
{
getXhr();
xhr.onreadystatechange = function()
    {
     if(xhr.readyState == 4 && xhr.status == 200)
     {
     document.getElementById('motioncontainer').innerHTML=xhr.responseText;
     }
    }
xhr.open("GET","http://www.mobimaroc.net/nv/alt.php?n="+page,true);
xhr.send(null);
}