window.addEvent('domready', function() {
	$('myForm').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('ajaxloading');			
				/*** 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('ajaxloading');
						if(log.innerHTML == '<pre>I got your email and I will contact you soon.</pre>'){
						$('form_box_main').addClass('disableClass');
						$('log').setStyle('width', '600px'); 
						log.setStyle('width', '600px'); 
						}
					}
				});
			});
});