window.addEvent('domready', function(){
	$('ediform').addEvent('submit', function(e) {
		/**
		 * Prevent the submit event
		 */
		new Event(e).stop();
	
		/**
		 * This empties the log and shows the spinning indicator
		 */
		var log = $('log_res').empty().addClass('ajax-loading');
	
		/**
		 * send takes care of encoding and returns the Ajax instance.
		 * onComplete removes the spinner from the log.
		 */
		this.send({
			update: log,
			onComplete: function() {
				log.removeClass('ajax-loading');
			}
		});
	});
});
window.addEvent('domready', function(){
	$('participaForm').addEvent('submit', function(e) {
		/**
		 * Prevent the submit event
		 */
		new Event(e).stop();
	
		/**
		 * This empties the log and shows the spinning indicator
		 */
		var log2 = $('log_res2').empty().addClass('ajax-loading2');
	
		/**
		 * send takes care of encoding and returns the Ajax instance.
		 * onComplete removes the spinner from the log.
		 */
		this.send({
			update: log2,
			onComplete: function() {
				log2.removeClass('ajax-loading2');
			}
		});
	});
});

function showformvalue(){
  $('ediform').addEvent('submit', function(e) {
    new Event(e).stop();
    var log = $('log_res').empty().addClass('ajax-loading');
    this.send({
      update: log,
      onComplete: function(response) {
      update = response;
        log.removeClass('ajax-loading');
      }
    });
  });
};