function reportComment(commentid)
{
	var reportMessage = trim(document.getElementById('report-reason-' + commentid).value);

	if (reportMessage.length == 0) {
		alert('You must give a reson for reporting the comment');
		return false;
	}
	
	$.ajax({
		   type: "POST",
		   url: "/ajax/report",
		   datatype:"html",
		   data:{comment_id: commentid, reason: reportMessage},
		   success: function(msg){
		     $("#report-" + commentid).html(msg);
		   }
		 });
}
