
function get_article_comments(page)
{
	$.ajax({
		url:page,
		type: 'POST',
		data: 'show_just_comments=yes',
		beforeSend:function(){ $('.loading').show(); },		
		error: function(data){	 $('.loading').hide();  $('#rent').html('Error '); 	},
		success: function(data) 
			{
			$('.loading').hide();  
			//alert(data);
			$('#article_comments').html(data);
			//refresh_cart();
			}
});

	return false;
}

function add_comment(link)
{
//alert($('#comment_name').val());
//return;
	$.ajax({
		url:link,
		type: 'POST',
		data: 'add_comment=yes&comment_name='+$('#comment_name').val()+'&comment_text='+$('#comment_text').val(),
		beforeSend:function(){ $('.sending').show(); },		
		error: function(data){	 $('.sending').hide(); alert('Error '); 	},
		success: function(data) 
			{
			$('.sending').hide();  
			alert(data);
			$('#add_comment').hide('fast');
			//$('#article_comments').html(data);
			//refresh_cart();
			}
});

	return false;
}
