function DoVote(id, hash)
{
$j.ajax({  type: "GET",  url: 'http://www.top40.ro/DoVote/'+ id +'/' + hash,  success: function(msg) { 

if(msg == 'OK') 
{ 
$j('#site_' + id).show(); 
$j('#site_' + id).css('margin-top','4px'); 

var new_val = Number($j('#vote_count_'+ id).text()) + 1;

$j('#vote_count_'+ id).html(new_val);
}

}
});
}

function get_vote_status(id, address)
{
$j.ajax({
  type: "GET",
  url: "http://www.top40.ro/includes/get_vote_status.php?address="+ address +"&id="+ id,
  success: function(msg){

	  if(msg == 'voted')
	  {
      $j('#vote_status_'+ id).html('<i><span style="color: #999999;">votat</span></i>');
	  }
   }
});
}