if (typeof(Payment)!='undefined'){ Payment.prototype.init = function () { if ('function' == typeof(this.beforeInit)) { this.beforeInit(); } var elements = Form.getElements(this.form); if ($(this.form)) { $(this.form).observe('submit', function(event){this.save();Event.stop(event);}.bind(this)); } var method = null; for (var i=0; i