// Comment and code added by AK, system worx
// we'll get with that an ajax loading message for long runners. Nice ! 
// But we have to check if the DOM element with ID "loadingMessage" really exists
// we'll get a Jscript error otherwise

lm=document.getElementById('loadingMessage');
//alert(lm);
if(lm != null) {
  xajax.callback.global.onRequest = function() {xajax.$('loadingMessage').style.display = 'block';}
  xajax.callback.global.beforeResponseProcessing = function() {xajax.$('loadingMessage').style.display='none';}
}
