poster = function(post_site)
{
var netUrl     = '';

	if(post_site == 'facebook')
	{
		netUrl  = 'http://www.facebook.com/sharer.php?s=100';
		netUrl += '&p[title]=' + encodeURIComponent(text);
		netUrl += '&p[summary]=' + encodeURIComponent(comment);
		netUrl += '&p[url]=' + encodeURIComponent(url);
		netUrl += '&p[images][0]=' + encodeURIComponent(picture);
	}	
	else if(post_site == 'odnokl')
	{
		netUrl  = 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1';
		netUrl += '&st.comments=' + encodeURIComponent(text);
		netUrl += '&st._surl=' + encodeURIComponent(url);
	}
	else if(post_site == 'vkontakte')
	{
		netUrl  = 'http://vkontakte.ru/share.php?';
		netUrl += 'url=' + encodeURIComponent(url);
		netUrl += '&title=' + encodeURIComponent(text);
		netUrl += '&description=' + encodeURIComponent(comment);
		netUrl += '&image=' + encodeURIComponent(picture);
		netUrl += '&noparse=true';
	}
	else if(post_site == 'mailru')
	{
		netUrl  = 'http://connect.mail.ru/share?';
		netUrl += 'url=' + encodeURIComponent(url);
		netUrl += '&title=' + encodeURIComponent(text);
		netUrl += '&description=' + encodeURIComponent(comment);
		netUrl += '&imageurl=' + encodeURIComponent(picture);
	}

	new Request({
		url: '/actions/update_social.php?id=' + news_id
	}).send();
	
	
window.open(netUrl,'','toolbar=0,status=0,width=630,height=440');
}

