function l_xmlhttp() {
    var xmlhttp = false;
    try {
        xmlhttp = new XMLHttpRequest();
    }
    catch(e) {
        try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e) {
            try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch(e) {
                alert('Your browser is not compatible with this page.');
            }
        }
    }
    return xmlhttp;
}

function l_xmlcall (elem, strURL) {
    alert(elem + ' ' + strURL);
    var x = l_xmlhttp();
    if (x) {
        x.onreadystatechange = function() {
            if (x.readyState == 4) {
                alert(x.responseText);
                document.getElementById(elem).innerHTML = x.responseText;
            }
        }
        x.open("GET", strURL, true);
        x.send(null);
    }
}

