function xmlhttpPost(strURL) {
    var xmlHttpReq = false;
    var self = this;

    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    strURL = strURL + "?case=" + document.forms['f1'].caseid.value;
    self.xmlHttpReq.open("GET",strURL,true);
    self.xmlHttpReq.send(null);

    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText);
        }
    }
}

function getquerystring() {
    var form     = document.forms['f1'];
    var caseid = form.caseid.value;
    qstr = 'caseid=' + escape(caseid);  // NOTE: no '?' before querystring
    return qstr;
}

function updatepage(str){
    document.getElementById("pwcresult").innerHTML = str;
}
