

function appear(id) { new Effect.Appear(id, {duration:1, fps:25, from:0.0, to:1.0}); }
function disappear(id) { $(id).fade(); }

ajax_replace = function(argid, argurl) {
    $(argid).display = 'none';
	new Ajax.Request(argurl,

	  {

		method: 'get',

		onSuccess: function(transport){

		  var response = transport.responseText || "no response text";

		  $(argid).update(response);

		},

		onFailure: function(){  }

	  });

}

initAjax = function() {

	Ajax.Responders.register({

		  onCreate: function() {

		  },

		  onComplete: function() {

		  }

	});

}

var touch = function(group, key) {
    new Ajax.Request('?control=stats&group=' + group + '&key=' + key,
    {
        method: 'get',
        onSuccess: function(transport) { },
        onFailure: function() { }
    });
}


/*

valid_form = function(elemId, argurl, argmethod) {

	new Ajax.Request(argurl,

	  {

		method:argmethod,

		parameters: $(elemId).serialize(true),

		onSuccess: function(transport){

		  var response = transport.responseText || "no response text";

		  $('ajax').update(response);

		  window.scrollTo(0, 200);

		},

		onFailure: function(){ alert('Une erreur est survenue') }

	  });	

}



notify = function(htmlText, duree) {

	if (htmlText == null) {

		$('notify').update("");

		$('notify').style.display = "none";

	} else {

		$('notify').update(htmlText);

		$('notify').style.display = "block";

		

		if (duree != 0 && duree > 999) {

		 	setTimeout (function () { notify(null, 0);}, duree);	

		}

	}	

}
*/



