function change_lang(lang)
{
	$.post("../ajax.php",
	{action: 'change_lang', lang: lang },	
	function(data){		
		location.reload();
	}); 
}

function get_rez_sondaj()
{
	/*$(':checkbox:checked').each(function(i){			
			all_msg = all_msg+'-'+$(this).attr('id');			
	});	*/
  
  if (!$("input[@name='sond_r']:checked").val()) {
     alert('Nothing is checked!');
      return false;
  }
  else {
    $("#sondaje").submit();
  }
}

function get_last_vote()
{
	$.post("../ajax.php", {action: 'get_last_vote'}); 
}