Global existence and blowup for sign-changing solutions of the nonlinear heat equation