function createXHR() {
        var nxhr;
        if (window.XMLHttpRequest) { 
                var nxhr = new XMLHttpRequest();
        } else {
                if (window.ActiveXObject) {
                        nxhr = new ActiveXObject("Microsoft.XMLHTTP");
                }
        }
        return nxhr;
}


// This is a "reusable" component that allows us to do
// links in a generic way.
function submitLinkToDiv(query_string, div_id) {
        var orbro_div_id = div_id;
        var orbro_xhr = createXHR();

        if (!orbro_xhr) {
                // Tell it to just send the link
                return true;
        } else {
                orbro_xhr.onreadystatechange = function() {
                        if (orbro_xhr.readyState == 4) {
                                if (orbro_xhr.status == 200) {
                                        var bloc = document.getElementById(orbro_div_id);
                                        bloc.innerHTML = orbro_xhr.responseText;

                                }
                        }
                }
                orbro_xhr.open("GET", query_string);
                orbro_xhr.send(null);
                return false;
        }
}


