function VK_onAuth(info) {
    new Request({method: 'POST', url: '/vk/login/', evalScripts: true, onComplete: function(response) {
    	var info = JSON.decode(response);
    	if (info && info.data.status == 'ok') {    		redirect(info.data.redirect_url); // Перенаправляем на адрес, который получили в ответе
    	}  	}}).send('uid='+info.uid+'&first_name='+info.first_name+'&last_name='+info.last_name+'&photo='+info.photo+'&photo_rec='+info.photo_rec+'&hash='+info.hash+'&_ajax=1');

}

function VK_Change_Comments(num,last_comment,date,sign) {
  new Request({method: 'POST', url: '/modules/vk/ajax/change_comments.php', evalScripts: true, onComplete: function(response) {

  	}}).send('num='+num+'&last_comment='+last_comment+'&date='+date+'&sign='+sign+'&mname='+cms_mname+'&itemid='+cms_itemid);
}
