// JavaScript Document
function getXhttp ( ){
    var ajax_request;

    if (  window.ActiveXObject  )  {

        var mSoftVersions = [

            'MSXML2.DOMDocument.5.0',

            'MSXML2.DOMDocument.4.0',

            'MSXML2.DOMDocument.3.0',

            'MSXML2.DOMDocument.2.0',

            'MSXML2.DOMDocument',

            'Microsoft.XmlDom',

            'Msxml2.XMLHTTP',

            'Microsoft.XMLHTTP'

        ];

        

        for (  i=0; i<mSoftVersions.length; i++  )  {

            try {

                ajax_request = new ActiveXObject (  mSoftVersions[i]  );

            }  catch (  e  )  {    }

        }

    }  else if (  !ajax_request && typeof XMLHttpRequest != 'undefined'  )  {

        try {

            ajax_request = new XMLHttpRequest;

        }  catch (  e  )  {    }

    }  else if (  !ajax_request && window.createRequest  )  {

        try {

            ajax_request = window.createRequest;

        }  catch (  e  )  {    }

    }  else  {

        ajax_request = false;

    }

    

    return ajax_request;

}