$(document).ready(function(){

    $('#nav').superfish();

    $("input#checkyes").click(function() {
      $('.'+$(this).attr('name')).show();
    });
    $("input#checkno").click(function() {
      $('.'+$(this).attr('name')).hide();
    });
    $('input#checkyes1').click(function() {
      $('.'+$(this).attr('name')+'1').show();
      $('.'+$(this).attr('name')+'2').hide();
    });
    $("input#checkno1").click(function() {
      $('.'+$(this).attr('name')+'1').hide();
      $('.'+$(this).attr('name')+'2').show();
    });
    
    $("form#reg").submit(function(){
      if($('#agree').attr('checked')){
        return true;
      }else{
        alert("You must agree to the terms above to submit your registration");
        return false;
      }
    });


});