function hlasuj(id) {
	new Ajax.Request('hlasuj.php?id='+id, 
	{
		method:'get',
		onSuccess: function(transport) {
			var response = transport.responseText || "no response text";
			alert(response);
		},
		onFailure: function() {
			alert('Something went wrong...');
		}
	});
}

