returns the master form of the button
// "myBtn" is the ID of the button var masterForm = $$("myBtn").getFormView().validate();