function ratio (object_id, mark) {
	new Ajax.Request('/ajaxratio.html',
	{
		method:'get',
		parameters:{objectid: object_id, marked: mark},
		onSuccess: function(transport){
			var response = transport.responseText || "no response text";
			eval('var x =' + response + ';');
			if (x[0] == 'ALREADY_VOTED') {alert('Извините, но Вы уже голосовали за этот объект.');}
			if (x[0] == 'GO_AUTH') {alert('Вы не авторизированы!');}
		
			if (x[0] == true) {
				document.getElementById('ratio_'+object_id).style.width = x[1]*20 + '%';
				alert('Спасибо, Ваш голос учтен.');
			}

			//alert(document.getElementById('ratio_'+object_id).style.width);
		},
		onFailure: function(){ alert('Something went wrong...') }
	});
}