Also, there was an episode of "Buffy the Vampire Slayer" with a similar theme. It doesn't fit the description so probably not it, but may be worth checking just in case (or, you want to watch other stuff with similar theme).
Season 2, Episode 6, "Halloween."
http://buffy.wikia.com/wiki/Halloween