var thisAjaxData;

// This is a basic AJAX script template
function runAjaxCode(fileRequest) {

   var ajaxRequest;  // the AJAX request variable

   try {
      // Try for Opera, Firefox, and Safari
      ajaxRequest = new XMLHttpRequest();
   }
   catch(e) {
      try {
      // Try for Internet Explorer
         ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
      }
      catch(e) {
         try {
            // Alternate Internet Explorer
            ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
         }
         catch(e) {
            // Browser does not support AJAX
            // Debug alert, comment out in live environment
            alert('Debug Mode: Browser does not support AJAX');
            return false;
         }
      }
   }

   ajaxRequest.onreadystatechange = function() {
      if( ajaxRequest.readyState == 4 ) {
         // Change the AJAX variable to contain the returned value
         thisAjaxData = ajaxRequest.responseText;
      }
   }

   // Send the AJAX request
   ajaxRequest.open("GET", fileRequest, false);
   ajaxRequest.send(null);

} // end of AJAX script
