function flagNote(id){
	
	if (confirm('Are you sure you want to flag this message?')){
		$.post('/custom/?c=flag&a=note', {id:id}, function(data){
			$("#textUpdate").html("This message has been flagged.");
			$("#statusStatements").fadeIn("slow");
		});
	}
}

function flagComment(id){
	
	if (confirm('Are you sure you want to flag this comment?')){
		$.post('/custom/?c=flag&a=comment', {id:id}, function(data){
			$("#textUpdate").html("This comment has been flagged.");
			$("#statusStatements").fadeIn("slow");
		});	
	}
}

function deleteComment(id){
	
	if (confirm('Are you sure you want to delete this comment?')){
		$.post('/custom/?c=profile&a=deleteComment', {id:id}, function(data){
			$("#textUpdate").html("This comment has been deleted.");
			$("#statusStatements").fadeIn("slow");
			$('#comment_'+id+'').remove();
		});
	}
}

function deleteProfileNote(noteId){
	
	if (confirm('Are you sure you want to delete this note?')){
		$.post('/custom/?c=profile&a=deleteNote', {noteId:noteId}, function(data){
			$("#textUpdate").html("This note has been deleted.");
			$("#statusStatements").fadeIn("slow");
			$('#note_'+noteId+'').remove();
		});
	}
}

function deleteTeamNote(teamId, noteId){
	
	if (confirm('Are you sure you want to delete this note?')){
		$.post('/custom/?c=team&a=deleteNote', {noteId:noteId, teamId:teamId}, function(data){
			$("#textUpdate").html("This note has been deleted.");
			$("#statusStatements").fadeIn("slow");
			$('#note_'+noteId+'').remove();
		});
	}
}

function deleteTeamComment(id){
	
	if (confirm('Are you sure you want to delete this comment?')){
		$.post('/custom/?c=team&a=deleteComment', {id:id}, function(data){
			$("#textUpdate").html("This comment has been deleted.");
			$("#statusStatements").fadeIn("slow");
			$('#comment_'+id+'').remove();
		});
	}
}

// delete star note

function deleteStarNote(id){
	if (confirm('Are you sure you want to delete this note?')){
		$.post('/custom/?c=constellation&a=deleteNote', {id:id}, function(data){
		  $('#note_'+id).remove();
			$("#textUpdate").html("This note has been deleted.");
			$("#statusStatements").fadeIn("slow");
			
		});
	}
}





