// Delete Comments
function deleteComment(comment_id) {
	if(confirm('Are you sure that you want to delete this comment?  This action cannot be undone!')) {
		$.ajax({
			type: "GET",
		 	url: "/index.php",
		 	data: "ajax=deleteComment&comment_id="+comment_id,
		 	success: function(status) {$('#comment_'+comment_id).hide()}});
		
	}
}

// Toggle Section
function toggle(id){
	$("#toggle_"+id).slideToggle("slow");
	obj = document.getElementById('arrow_'+id);
	var src = $('#arrow_'+id).attr("src");
	if(src == '/images/collapse.gif') {
		obj.src = '/images/expand.gif';
	} else {
		obj.src = '/images/collapse.gif';
	}
}