
window.addEvent('domready', function() {

	$('contact').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the response area
		var log = $('response').empty();
		$('submitter').setStyle('display','none');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('contact') element).
		this.set('send', {onComplete: function(response) { 
			$('submitter').setStyle('display','block');
			log.set('html', response);

		}});
		//Send the form.
		this.send();
	});
});

