function commentShow(id) {
	new Ajax.Request("scripts/ajax.php", {
	method: "post", parameters:("show=true&id=" + id),
	onFailure:function(transport){
		if (transport.status==401)
			alert('Access Denied!');
		else
			alert(transport.status ? ("Error "+transport.status) : "Undefined error");
	}, onSuccess:function(transport) {
		var resp = transport.responseText;
		if (resp=="OK") {
			var link = document.getElementsByClassName("accept", $("comment"+id));
			for (var i=0; i<link.length; ++i)
				link[i].parentNode.removeChild(link[i]);
		} else {
			alert(resp);
		}
	}});
	return false;
}

function commentEdit(id) {
}

function commentDelete(id) {
	new Ajax.Request("scripts/ajax.php", {
	method: "post", parameters:("id=" + id),
	onFailure:function(transport){
		if (transport.status==401)
			alert('Access Denied!');
		else
			alert(transport.status ? ("Error "+transport.status) : "Undefined error");
	}, onSuccess:function(transport) {
		var resp = transport.responseText;
		if (resp=="OK") {
			var div = $("comment"+id);
			Effect.Puff(div);
		} else {
			alert(resp);
		}
	}});
	return false;
}
