/**
* Psuedo-constructor for cross-browser instantiation of an XML Http Request object
* 
* @author Garrette A. Hall <ghall@positroniks.com>
* @copyright 2006, Licensed for unrestricted use to The Vandiver Group, Inc.
*/

function getXHR() {  
    var xhr;
    /*@cc_on
    @if (@_jscript_version >= 5)
        try {
            xhr = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch (e) {
            try {
                xhr = new ActiveXObject("Microsoft.XMLHTTP");
            } 
            catch (E) {
                xhr = false;
            }
        }
    @else
    xhr = false;
    @end @*/
    if (!xhr && typeof XMLHttpRequest != 'undefined') {
        try {
            xhr = new XMLHttpRequest();
        } 
        catch (e) {
            xhr = false;
        }
    }
    return xhr;
}