function sendComment (form, container, content_type, content_id)
{
	form = $(form);
	var params = Form.serialize (form);
	var myAjax = new Ajax.Request(
      form.action,
      {
				method: 'post', 
				postBody: params,
				onLoading: function () { $('loading').style.display = 'block'},
				onComplete: returnComment.bindAsEventListener (this, container, content_type, content_id)
			}
	);
}

function returnComment (e, container, content_type, content_id)
{
	$(container).innerHTML = e.responseText;
	new Ajax.Updater(
		'comments',
		'/comments/show_all/' + content_type + '/' + content_id
		)
}
