
$(document).ready(function() {


if(document.getElementById('check_q3_o').checked == true) {
         $('#span_question3').hide();
} else if(document.getElementById('check_q3_n').checked == true) {
        $('#span_question3').show();
} else {
        $('#span_question3').hide();              
}




if(document.getElementById('check_q10_n').checked == true) {
         $('#span_question10').hide();
} else if(document.getElementById('check_q10_o').checked == true) {
        $('#span_question10').show();
} else {
        $('#span_question10').hide();
}

if(document.getElementById('check_q7_n').checked == true) {
         $('#span_question7').hide();
         $('#span_question7_bis').show();
} else if(document.getElementById('check_q7_o').checked == true) {
        $('#span_question7').show();
        $('#span_question7_bis').hide();
} else {
        $('#span_question7').hide();
        $('#span_question7_bis').hide();
}


});



$(function(){
 $('form input').click(function(){
  if($(this).attr('id')== 'check_q3_o' && $($(this)+':checked')){
   $('#span_question3').hide();
  }else if($(this).attr('id')== 'check_q3_n' && $($(this)+':checked')){
  $('#span_question3').show();
  } 


  if($(this).attr('id')== 'check_q10_o' && $($(this)+':checked')){
   $('#span_question10').show();
  }else if($(this).attr('id')== 'check_q10_n' && $($(this)+':checked')){
  $('#span_question10').hide();
  }



  if($(this).attr('id')== 'check_q7_n' && $($(this)+':checked')){
   $('#span_question7').hide();
   $('#span_question7_bis').show();
  }else if($(this).attr('id')== 'check_q7_o' && $($(this)+':checked')){
  $('#span_question7').show();
  $('#span_question7_bis').hide();
  }



 });
});




