function SendComment()
{	
	var new_weblog_comment = $('#new_weblog_comment').val();
	var postedname = $('#postedname').val();
	var postedemail = $('#postedemail').val();
	var post_id = $('#post_id').val();
	var owner = $('#owner').val();
	var security_code_id = $('#security_code_id').val();
	var url = '/mod/blog/ajax.php';
	var pars = 'action=weblogs:comment:add&new_weblog_comment=' + new_weblog_comment + '&postedname=' + postedname + '&postedemail=' + postedemail + '&post_id=' + post_id + '&owner' + owner + '&security_code=' + security_code_id;

	showLoader();
	$.ajax({
		   type: "GET",
		   url: '/mod/blog/ajax.php',
		   data: pars,
		   success: function(msg){
     			showWeblog(msg);
     			return false;
   			}
		 });
}

function showWeblog(originalRequest)
{	
	//alert('Zavrsio!');
	//put returned XML in the div
	$('#comments_feedback').html(originalRequest);
	show_and_fade_Div('comments_feedback', '#addcomment');
	hideLoader();
}
