function vote(pid,mark)
{
$.post('/vote07/register-vote.php',{vote:pid, mark:mark})

stroka='';

for(i=1;i<=5;i++)
{
	if(i==mark)
	{
	stroka=stroka+'<td><a class="red">'+i+'</a></td>';
	}else
	{
	stroka=stroka+'<td><a>'+i+'</a></td>';
	}
}

$('#'+pid).replaceWith('<table class="vote_close" style=\"margin-left:76px;\"><tr><td>'+stroka+'</td></tr></table>');



}