function uzXmlHttp() {
    var xmlHttp = false;
    try {
        xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e) {
            xmlHttp = false;
        }
    }
    if (!xmlHttp && document.createElement) {
        xmlHttp = new XMLHttpRequest();
    }
    return xmlHttp;
}

function alterContent(elementid, content) {
    if (document.all) {
        document.getElementById(elementid).innerHTML = content;
    } else if (document.getElementById) {
        rng = document.createRange();
        el = document.getElementById(elementid);
        rng.setStartBefore(el);
        htmlFrag = rng.createContextualFragment(content);
        while (el.hasChildNodes()) {
            el.removeChild(el.lastChild);
        }
        el.appendChild(htmlFrag);
    }
}
