/*
* Common code used by other Ajax scripts.
* 
* Taken more or less verbatim from the book "Bulletproof Ajax" by Jeremy Keith
*/


function NDgetHTTPObject() {
    var xhr = false;
    if( window.XMLHttpRequest ) {
        xhr = new XMLHttpRequest();        
    }
    else if ( window.ActiveXObject ) {
        try {
            xhr = new ActiveXObject( "Msxml2.XMLHTTP" );
        }
        catch(e) {
            try {
                xhr = new ActiveXObject( "Microsoft.XMLHTTP" );
            }
            catch(e) {
                xhr = false;
            }
        }
    }
    return xhr;
}
