
	var myGlobalHandlers = {
		onCreate: function(){
			Element.show('progress');
		},

		onComplete: function() {
			if(Ajax.activeRequestCount == 0){
				Element.hide('progress');
			}
		}
	};

	Ajax.Responders.register(myGlobalHandlers);

function content(s)
{
 var url = 'ahandler.php?content=' + s;
 new Ajax.Request(url, {  method: 'get',
  onSuccess: function(transport)
  {
    $('mainhold').innerHTML = transport.responseText;
  }
 });
}
