

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 ShowPagenew(choice,id_div)
{
document.getElementById(id_div).innerHTML= '<div class="loader" style="margin-top:130px; margin-left:140px"></div>';


getXhr();
xhr.onreadystatechange = function()
    {
     if(xhr.readyState == 4 && xhr.status == 200)
     {
     document.getElementById(id_div).innerHTML= xhr.responseText;  
     }
    }
xhr.open("GET","scripts/php/vignet-prevs.php?choice="+choice,true);

xhr.send(null);
}