window.addEvent('load', function() {
	$('coltasubform').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('subformlog').set('html',"&nbsp;").addClass('subformAjax');
		//("this" refers to the $('myForm') element)
		this.set('send', {
			onComplete: function(response) { 
				log.removeClass('subformAjax');
				log.set('html', response);
			}
		});
		//Send the form.
		this.send();
	});	
});