// JavaScript code for implementation of Ajax in the VisWeb site.
//
// Author:  OrdinaSoft
//          Patrick Lanz
//          Lausanne
//          www.ordinasoft.ch
//
// First version: November 2, 2006


// Returns a requester that can be used to communicate with the server.
// If a requester cannot be found, the result will be null.

function GetXmlRequester () {

  try {
    return new XMLHttpRequest ();
  }
  catch (Error) {
    try {
      return new ActiveXObject ('Microsoft.XMLHTTP');
    }
    catch (Error) {
      return null;
    }
  }
}  // GetXmlRequester
