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;
	}
	
	var myAjax = new Ajax.Updater('report-' + commentid,
								  '/ajax/report', 
                                  {method: 'post', 
                                   parameters: {comment_id: commentid, reason: reportMessage}});
}