That sounds quite a bit like Quantum Leap. Man, I really enjoyed that one.