var inputID;
var outputID;
function xmlhttpPost(strURL, inID, outID) {
    inputID = inID;
	outputID = outID;
	
	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('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystring());
}

function getquerystring() {
   
    var word = document.getElementById(inputID).value;
    qstr = 'w=' + escape(word); 
    return qstr;
}

function updatepage(str){
    document.getElementById(outputID).innerHTML = str;

}