/* constants */
/* ... */

/* ajax interface global indicators */
if (typeof Ajax != 'undefined'){
	var ajaxGlobalHandlers = {
		onCreate: function(request){
			document.body.style.cursor = "default"; //was wait
		},
		onComplete: function(request, response){
			document.body.style.cursor = "default";
		},
		onException: function(t, e){
			if (typeof DEBUG != 'undefined' && DEBUG){
				var error_info = $H(e);
				var s = '';
				error_info.each(function(pair){
					s += pair.key + ' = "' + pair.value + '"\n';
				});
				alert(s);
			}
		}
	};
	
	Ajax.Responders.register(ajaxGlobalHandlers);
}