		var post_id_now;
		function checkIt(post_id) {
			theGroup = document.getElementById('form-voting-'+post_id).answer;
			for (i=0; i<= theGroup.length; i++) {
			    if (theGroup[i].checked) {
					return theGroup[i].value;
				}
			}
		}

		function ajax_voting(post_id) {
			post_id_now = post_id;
			document.getElementById('loading-voting-'+post_id).style.display = "block";	
				$.post(
				'/sources/voting.php',
				{
					answer: checkIt(post_id),
					post_id: post_id,
					action: 'action'
				},
				onAjaxSuccessVoting
				);	
		}	
			function onAjaxSuccessVoting(data)
			{
				document.getElementById('voting-'+post_id_now).innerHTML = data;
				document.getElementById('loading-voting-'+post_id_now).style.display = "none";	
			}

