function Chronicles()
{
}


/*
	Deletes a comment from an article
*/

Chronicles.deleteComment = function(id, div)
{
	// paramater list
	var a = new Array();
	a['comment_id'] = id;
	
	// execute callback
	ajaxLoad(div, 'deletecomment', a, true);
}

Chronicles.showEditComment = function(id, div)
{
	// paramater list
	var a = new Array();
	a['comment_id'] = id;
	
	// execute callback
	ajaxLoad(div, 'showcommenteditor', a, true);
}

Chronicles.commitCommentEdits = function(id, div, obj)
{
	// paramater list
	var a = new Array();
	a['comment_id'] = id;
	a['body'] = getElement(obj).value;
	
	// execute callback
	ajaxLoad(div, 'commitcommentedits', a, true);
}


Chronicles.restoreComment = function(id, div)
{
	// paramater list
	var a = new Array();
	a['comment_id'] = id;
	
	// execute callback
	ajaxLoad(div, 'restorecomment', a, true);
}