function addComment(itemId, typeId, body)
{
	new Ajax.Request('/feedback/ax-add-comment/', {
	  method: 'post',
	  parameters: { item: itemId, type: typeId, body: body, ref: document.location.pathname },
	  onSuccess: function(transport) {
	  	document.location.reload();
	  },
	  onFailure: function(transport) {
	  	alert(transport.responseText);
	  }
	});
}

function removeComment(id)
{
	new Ajax.Request('/feedback/ax-remove-comment/', {
		method: 'post',
		parameters: { id: id , ref: document.location.pathname},
		onSuccess: function(transport) {
			document.location.reload(); 
		},
		onFailure: function(transport) {
			alert(transport.responseText);
		}
	});
} 
 