A Variational Formulation For Thin Membranes