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

	$('whoisForm').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 = $('log_res');
		//Send the form.
		var req = new Request({  
            method: this.get('method'),  
            url: this.get('action'),  
            onRequest: function() { log.empty().addClass('ajax-loading') },  
            onComplete: function(response) { 
				res = JSON.decode(response);
				log.removeClass('ajax-loading');
				log.set('html', res.text);
			}  
       }).send(this.toQueryString());
	});
});