function send() {
		var url = '/sondy.php5';
		var checked = false;
		$$('.sondaCheckBox').each(function(element){
			if(element.checked) {
				checked = true;
			}
		});
		if(checked) {
			new Ajax.Request(url, {
			  method: 'post',
			  postBody: $('sondaForm').serialize()+'&ajax=true',
			  onCreate: function() {
			  		Effect.Appear($('sondaAjax'), {duration: 0});
			  		new Effect.Opacity('sondaAjax', {duration:0, from:1.0, to:0.7});
			  },
			  onSuccess: function(transport) {
			    if (transport.responseText) {
			    	Effect.Fade($('sondaAjax'), {duration: 0});	
			    	var html = '';
			    	transport.responseText.stripScripts().evalJSON().each(function(element){
			    		html += '<p>' + element.nazwa + ' (' + element.procent + '%) (' + element.klikniecia + ')</p>';
			    	});
			    	html += '<p><a href="/sondy">zobacz inne sondy</a></p>';
			    	$('sondaForm').update(html);
			    } else {
					Effect.Fade($('sondaAjax'), {duration: 0});		    	
			    }
			  }
			});	
		} else {
			$('sondaMessage').update('Wybierz odpowiedź');
		}
	}
Event.observe(window, 'load', function() {
	Event.observe($('sondaForm'), 'submit', send);
});
