var httpReq;
if (window.XMLHttpRequest) {
    httpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) {
    httpReq = new ActiveXObject("Microsoft.XMLHTTP");
}

function AJAXPost(strURL, callBack, formInputs) {
    httpReq.open('POST', strURL, true);
    httpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    httpReq.onreadystatechange = function() {
        if (httpReq.readyState == 4) {
            callBack(httpReq.responseText);
        }
    }
	dataTosend=formInputs?formInputs:null;
    httpReq.send(dataTosend);
}
function AJAXGet(strURL, callBack, formInputs) {
    httpReq.open('Get', strURL, true);
    httpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    httpReq.onreadystatechange = function() {
        if (httpReq.readyState == 4) {
            callBack(httpReq.responseText);
        }
    }
	dataTosend=formInputs?formInputs:null;
    httpReq.send(dataTosend);
}
