  // Script - ajax.js
  
  /* This page creates an Ajax and Bjax request objects
   * This page is included by other pages that
   * need to perform an XMLHttpRequest.
   */
  
  // Initialize the object:
  var ajax = false;
  
  // Create the object...
  
  // Choose object type based upon what's supported:
  if ( window.XMLHttpRequest )
  {
    // IE 7, Mozilla, Safari, Firefox, Opera, most browsers:
    ajax = new XMLHttpRequest();
  }
  else if ( window.ActiveXObject )
  {
    // Older IE browsers
    // Create type Msxml2.XMLHTTP, if possible
    try
    {
      ajax = new ActiveXObject( "Msxml2.XMLHTTP" );
    } catch (e1) { }
  }
  
  // Send an alert if the object wasn't created
  if ( !ajax )
  {
    alert( 'Some page functionality is unavailable.' );
  }

  
  // Initialize the bjax object:
  var bjax = false;
  
  // Create the object...
  
  // Choose object type based upon what's supported:
  if ( window.XMLHttpRequest )
  {
    // IE 7, Mozilla, Safari, Firefox, Opera, most browsers:
    bjax = new XMLHttpRequest();
  }
  else if ( window.ActiveXObject )
  {
    // Older IE browsers
    // Create type Msxml2.XMLHTTP, if possible
    try
    {
      bjax = new ActiveXObject( "Msxml2.XMLHTTP" );
    } catch (e1) { }
  }
  
  // Send an alert if the object wasn't created
  if ( !bjax )
  {
    alert( 'Some page functionality is unavailable.' );
  }