// +--------------------------------------------------------------+
// | This file contains standard javascript functions for use in  |
// | Ajax applications                                            |
// +--------------------------------------------------------------+


   // Creates an XMLHTTPRequest object using whichever mechanism the
   // browser support
   function getXMLHttpRequest()
   {
       var result;

       // For most modern browsers (inc. Netscape, Firefox and IE7+)
       try
       {
          result = new XMLHttpRequest();
       }
       
       // For older versions of Internet Explorer
       catch(e)
       {
          try
          {
             result = new ActiveXObject("Microsoft.XMLHTTP");
          }
          catch(e)
          {
             try
             {
                result = new ActiveXObject("Msxml2.XMLHTTP");
             }
             catch(e)
             {
                try
                {
                    result = new ActiveXObject("Msxml2.XMLHTTP.3.0");
                }
                catch(e)
                {
                   try
                   {
                      result = new ActiveXObject("Msxml2.XMLHTTP.4.0");
                   }
                   catch(e)
                   {
                      try
                      {
                         result = new ActiveXObject("Msxml2.XMLHTTP.5.0");
                      }
                      catch(e)
                      {
                         result = false;
                      }
                  }
               }
            }
         }
      }
      
      return result;
   }






