Variational Approach to Beams Resting on two-parameters tensionless elastic foundations