Hide registration options that are repetitive

After choosing Start a team the options appear again, this removes these options.

by jelane20

JavaScript

var EDITURL = window.location.href;
if (EDITURL.indexOf("/faf/teams/registerTeam.asp?") > -1 && $("form#thisForm table tbody tr td input:eq(11).length > 0") || EDITURL.indexOf("/faf/r/selectRegType.asp?") && $("form#thisForm table tbody tr td input:eq(11).length > 0") ) {
  if($('form#thisForm table tbody tr:eq(2) input').is(':checked')) {
    $('form#thisForm table tbody tr:eq(4)').hide();
    $('form#thisForm table tbody tr:eq(5)').hide();
    $('form#thisForm table tbody tr:eq(6)').hide();
    $('form#thisForm table tbody tr:eq(7)').hide();
} else if ($('form#thisForm table tbody tr:eq(4) input').is(':checked') && $("form#thisForm table tbody tr td input:eq(11).length > 0")) {
    $('form#thisForm table tbody tr:eq(2)').hide();
    $('form#thisForm table tbody tr:eq(3)').hide();
    $('form#thisForm table tbody tr:eq(6)').hide();
    $('form#thisForm table tbody tr:eq(7)').hide();
  }

};