$(function() {

  if($('body.rsvp').length)
  {
    ($('div.typecompany input[name=status]:checked').val() == 'other') ? $('div#other').removeClass('off') : $('div#other').addClass('off');

    $('input[name=companyType]').change(function() {
        $('div#other').toggleClass('off', $('input[name=companyType]:checked').val() != 'Other');
    }).change();

    $('.btn_submit').bind('click.submitform',function () {
      $('#main_form').submit();
      return false;
    });
  }

});
