Homoclinics: Poincaré-Melnikov results via a variational method.