var xmlHttp;

function createXMLHttpRequest() {
       if (window.ActiveXObject) {
               xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
       }
       else if (window.XMLHttpRequest) {
               xmlHttp = new XMLHttpRequest();
       }
}

function startRequest(method, URL) {
       createXMLHttpRequest();
       xmlHttp.onreadystatechange = handleStateChange;
       xmlHttp.open(method, URL, true);
       xmlHttp.send(null);
}

function handleStateChange() {
       if (xmlHttp.readyState == 4) {
               if (xmlHttp.status == 200) {
                       processResponse(xmlHttp.responseText);
               }
       }
}

function processResponse(response) {

}
