I have two friends who recently went ectopic pregnancy. How to detect ectopic pregnancy and how to avoid having such pregnancy? It's really a tragic experience.