IVF Using Donated Sperm: Allowed?

Is in vitro fertilization (IVF) allowed if the ovum or semen comes from a donor other than the wife or husband?