Submanifolds of cosymplectic manifolds