window.addEvent('domready', function() {
	$('myForm').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 form_box = $('form_box');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			form_box.set('html', response);
		}});
		//Send the form.
		this.send();
	});
});