Existence of global and blowup solutions for a singular second-order ode