// Vérification de l'activation du javascript sur le navigateur

var ajaxIsOk = false;

function VerifAjax()
{
   var xhrObj = null;

   if(window.XMLHttpRequest) // Firefox
      xhrObj = new XMLHttpRequest();
   else if(window.ActiveXObject)// Internet Explorer
   {
      try {
         xhrObj = new ActiveXObject("Msxml2.XMLHTTP");
      }
      catch (e)
      {
         try
         {
           xhrObj = new ActiveXObject("Microsoft.XMLHTTP");
         }
         catch (e1) { xhrObj = null; }
      }
   }

   if(xhrObj)
      ajaxIsOk = true;

   return ajaxIsOk;
}
