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("MSXML2.XMLHTTP");
    }

    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = handleStateChange;
	
	function handleStateChange() {
		if (self.xmlHttpReq.readyState == 3)
			updatepage(self.xmlHttpReq.responseText);
				
    }		

	self.xmlHttpReq.send(getquerystring());

}

function getquerystring() {
    var form     = document.forms['f_lg'];
    var method = form.method.value;
	var parameter = form.parameter.value;
    qstr = 'method=' + escape(method) + '&' + 'parameter=' + escape(parameter); 
    return qstr;
}

function updatepage(str){
    document.getElementById("result").innerHTML = str;
}

function notify(str) {
	document.getElementById("status").innerHTML = str;
}
