Funerals are for those still alive.
Not entirely.
There's also the issue of giving someone a funeral in line with their values in life. You could, given the right or wrong set of circumstances, give a confirmed and well-known atheist a full Catholic Requiem mass with all the bells and smells, or cremate a Jewish person (traditionally forbidden in Judaism). It's not as though the stiff in the box is going to complain - they're dead. But why would you do such a thing? Wouldn't that merely be rude, a vulgarity, a final way of asserting your values over ones that the dead person disagreed with and may well have found abhorrent? How much respect does that show for the dead? None whatever, I'd say.
So I don't agree that funerals are wholly for the living, not when in such things the living can show themselves to be a bunch of absolute twats.