function mark(id,uid,typ,mark)
{
	jQuery.post("/scripts/awc/awc_mark.php", { "t":typ,"uv":1,"id":id,"ocena":mark }, function(response){
		var response = response.split(":");
		if (response[0] == 'OK')
		{
			if ($("#mark_div_"+id)) $("#mark_div_"+id).html('<p class="fleft marg_t3">'+response[2]+'&nbsp;</p><img src="http://www.autocentrum.pl/gfx/awc/css/plus_grey.png" alt="Już ocenione" title="Już ocenione" width="21" height="19" class="fleft" /><img src="http://www.autocentrum.pl/gfx/awc/css/minus_grey.png" alt="Już ocenione" title="Już ocenione" width="21" height="19" class="fleft" />');
			if ($(".respect_"+uid) && response[1]) $(".respect_"+uid).html(response[1]);
		}
		else if (response[0] == 'ERROR') {
			alert(response[1]);
		}
	});
}
