istrationValidator.init($('form#mainRegForm'),
                                       1,
                                       '#registrations_{0}__RegistrationId',
                                       '#registrations_{0}__PostCode ');

            $('.clear-form').click(function() {
                if (confirm('Are you sure you want to clear the registration details form?')) {
                    $('.add-registration input[type="text"]').val('');
                    $('.add-registration .field-validatio