/**
 * Created with PyCharm.
 * User: anikella
 * Date: 29.01.14
 * Time: 14:58
 * To change this template use File | Settings | File Templates.
 */
function getXmlHttp() {
        var xmlhttp;
        try {
          xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
        try {
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
          xmlhttp = false;
        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
          xmlhttp = new XMLHttpRequest();
        }

        return xmlhttp;
    }
