The existence of global solutions of a variational nonlinear wave equation