Should You Take Young Children to a Funeral?

When a beloved family member dies, most parents use the opportunity to teach their children about the concept of life and death. But at what age can children understand and appreciate a funeral?