// ajax.js

function xmlhttpGet(strURL, div) {
    var xmlHttpReq = false;
    var self = this;
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('GET', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
           var val = document.getElementById(div);
           val.innerHTML = self.xmlHttpReq.responseText;
           
           //var shpcosts = document.getElementById("shippingcosts");
           //shpcosts.innerHTML = "Shipping Costs $"+self.xmlHttpReq.responseText;
        }
    }
    self.xmlHttpReq.send("");
}