
// retrieve message from the server and display it if it contains anything.
var messageURL=cgiPath+"IMOS.message.cgi?asHTML"; // URL will return the message

// retrieve the latest message.
function getMessage() {
	var XHR=new xhr(messageURL);	// method is GET, by default.
	XHR.processData=function () {
		var data=XHR.data;
		var el=document.getElementById('message');
		el.innerHTML=data;
	}
	XHR.send();
}

