function report_content(related_id, reported_type) {
  new Ajax.Request('/feedback/report_content.json',
    {
      asynchronous:true, 
      parameters:'reported_type='+reported_type+'&related_id='+related_id,
      onSuccess:report_content_onSuccess,
      onFailure:report_content_onFailure
    });
  return false;
}
function report_content_onSuccess(t) {
  display_notification('This content has been reported to the moderators.');
}
function report_content_onFailure(t) {
  display_notification('There was a problem reporting the content');
}

