function getComments(id, page) {
	ajaxEngine.sendRequest('albumComments', 'id='+id, 'page='+page);
}

var commentArea;
function addComment(id) {
	if (!commentArea) {
		commentArea = document.getElementById("albumCommentArea");
	}

    var comment = commentArea.value;
	if (comment.length > 0) {
		ajaxEngine.sendRequest('albumComments', 'action=add', 'id='+id, 'comment='+comment);
	}
	commentArea.value="";
}

function deleteComment(album, id, page) {
    ajaxEngine.sendRequest('albumComments', 'action=delete', 'id='+album, 'cid='+id, 'page='+page);
}