
    $(document).ready(function(){
        //Hide div w/id extra
        $("#about_patient").css("display","none");
        $("#q1_caregiver").css("display","none");
        $("#q1_copay_caregiver").css("display","none");
        $("#q1_jia").css("display","none");
        $("#q1_jia_patient").css("display","none");
        $("#q1_copay_jia").css("display","none");
        $("#q2_caregiver").css("display","none");
        $("#q3_caregiver").css("display","none");
        $("#q4_caregiver").css("display","none");
        $("#q4_copay_caregiver").css("display","none");
        $("#infusion_caregiver").css("display","none");
        $("#infusion_caregiver_jia").css("display","none");
        $("#infusion_patient_jia").css("display","none");
        $("#injection_caregiver").css("display","none");
        $("#injection_caregiver_jia").css("display","none");
        $("#injection_patient_jia").css("display","none");
        $("#oral_caregiver").css("display","none");
        $("#oral_caregiver_jia").css("display","none");
        $("#oral_patient_jia").css("display","none");
        $("#how_many_years_caregiver").css("display","none");
        $("#how_many_years_caregiver2").css("display","none");
        $("#how_many_years_caregiver3").css("display","none");
        $("#how_many_years_caregiver4").css("display","none");
        $("#how_many_years_caregiver5").css("display","none");
        $("#how_many_years_caregiver6").css("display","none");
        $("#how_many_years_caregiver7").css("display","none");
        $("#how_many_years_caregiver8").css("display","none");
        $("#how_many_years_caregiver9").css("display","none");
        $("#how_many_years_caregiver10").css("display","none");
        $("#how_many_years_caregiver11").css("display","none");
        $("#how_many_years_caregiver12").css("display","none");
        $("#how_many_years_caregiver13").css("display","none");
        $("#how_many_years_caregiver14").css("display","none");
        $("#how_many_years_caregiver15").css("display","none");
        $("#how_many_years_caregiver16").css("display","none");
        $("#how_many_years_caregiver17").css("display","none");
        $("#how_many_years_caregiver18").css("display","none");
        $("#how_many_years_caregiver19").css("display","none");
        $("#jia_year").css("display","none");
        $("#jia_radio").css("display","none");
        $("#oral_other").css("display","none");
        $("#signup_infusion").css("display","none");
        $("#signup_injection").css("display","none");
        $("#signup_oral").css("display","none");
        $("#Methotrexate").css("display","none");
        $("#Orencia2").css("display","none");
        $("#Remicade").css("display","none");
        $("#Rituxan").css("display","none");
        $("#Actemra").css("display","none");
        $("#Cimzia").css("display","none");
        $("#Enbrel").css("display","none");
        $("#Humira").css("display","none");
        $("#Kineret").css("display","none");
        $("#Methotrexate2").css("display","none");
        $("#Simponi").css("display","none");
        $("#Prednisone").css("display","none");
        $("#Arava").css("display","none");
        $("#Azulfidine").css("display","none");
        $("#Methotrexate3").css("display","none");
        $("#Plaquenil").css("display","none");
        $("#Ridaura").css("display","none");
        $("#Prednisone2").css("display","none");
        $("#Over_the_counter").css("display","none");
        $("#prednisone_jia").css("display","none");
        $("#prednisone_jia_patient").css("display","none");
        $("#prednisone_ra_caregiver").css("display","none");
        $("#orencia_calendar").css("display","none");
        $("#physician_name").css("display","none");
        $("#tasks").css("display","none");
	    $("#physician_type").css("display","none");
	    $("#medications_considering").css("display","none");
	    $("#tasks_caregiver").css("display","none");
	    $("#tasks_patient").css("display","none");
	    $("#satisfied_ra_caregiver").css("display","none");
	    $("#satisfied_ra_patient").css("display","none");
	    $("#doctor_discussed_ra_caregiver").css("display","none");
	    $("#doctor_discussed_ra_patient").css("display","none");
	    $("#satisfied_jia_caregiver").css("display","none");
	    $("#satisfied_jia_patient").css("display","none");
	    $("#doctor_discussed_jia_caregiver").css("display","none");
	    $("#doctor_discussed_jia_patient").css("display","none");
	    $("#medications_considering_jia").css("display","none");
	    $("#medications_considering").css("display","none");
	    $("#medications_considering_jia_caregiver").css("display","none");
	    $("#medications_considering_caregiver").css("display","none");
	    $("#medications_considering_patient").css("display","none");
	    $("#caregiver_insurance").css("display","none");
	    $("#caregiver_participation_programs").css("display","none");
	    $("#rate_important_life").css("display","none");
	    
        // disable all sub checkbox options
			$.en_disInfusion(false);
			$.en_disInjection(false);
			$.en_disOral(false);
			$.en_disDynamicQuestions(false);
		
		// Add onclick handler to checkbox w/name checkme
        $("input:radio[name=usertype]").click(function(){
        
        // If caregiver is checked
        if($("input:radio[value='10016018']").is(":checked"))
        {
            //show the hidden div
            $("#about_patient").show("fast");
            $("#q2_caregiver").show("fast");
            $("#q3_caregiver").show("fast");
            $("#q4_caregiver").show("fast");
            $("#q4_copay_caregiver").show("fast");
            $("#about_treatment").hide("fast");
            $("#q2_patient").hide("fast");
            $("#q3_patient").hide("fast");
            $("#q4_patient").hide("fast");
            $("#oral_other").hide("fast");
            $("#how_many_years_caregiver").show("fast");
            $("#how_many_years_patient").hide("fast");
            $("#how_many_years_caregiver2").show("fast");
            $("#how_many_years_patient2").hide("fast");
            $("#how_many_years_caregiver3").show("fast");
            $("#how_many_years_patient3").hide("fast");
            $("#how_many_years_caregiver4").show("fast");
            $("#how_many_years_patient4").hide("fast");
            $("#how_many_years_caregiver5").show("fast");
            $("#how_many_years_patient5").hide("fast");
            $("#how_many_years_caregiver6").show("fast");
            $("#how_many_years_patient6").hide("fast");
            $("#how_many_years_caregiver7").show("fast");
            $("#how_many_years_patient7").hide("fast");
            $("#how_many_years_caregiver8").show("fast");
            $("#how_many_years_patient8").hide("fast");
            $("#how_many_years_caregiver9").show("fast");
            $("#how_many_years_patient9").hide("fast");
            $("#how_many_years_caregiver10").show("fast");
            $("#how_many_years_patient10").hide("fast");
            $("#how_many_years_caregiver11").show("fast");
            $("#how_many_years_patient11").hide("fast");
            $("#how_many_years_caregiver12").show("fast");
            $("#how_many_years_patient12").hide("fast");
            $("#how_many_years_caregiver13").show("fast");
            $("#how_many_years_patient13").hide("fast");
            $("#how_many_years_caregiver14").show("fast");
            $("#how_many_years_patient14").hide("fast");
            $("#how_many_years_caregiver15").show("fast");
            $("#how_many_years_patient15").hide("fast");
            $("#how_many_years_caregiver16").show("fast");
            $("#how_many_years_patient16").hide("fast");
            $("#how_many_years_caregiver17").show("fast");
            $("#how_many_years_patient17").hide("fast");
            $("#how_many_years_caregiver18").show("fast");
            $("#how_many_years_patient18").hide("fast");
            $("#how_many_years_caregiver19").show("fast");
            $("#how_many_years_patient19").hide("fast");
            $("#patient_insurance").hide("fast");
            $("#caregiver_insurance").show("fast");
            $("#patient_participation_programs").hide("fast");
            $("#caregiver_participation_programs").show("fast");
            
            $.show_Hide_Questions();
            $.en_disDynamicQuestions(true);
            
			// Caregiver&JIA selection
			if($("input:radio[value='14000053']").is(":checked"))
			{
			    $("#oral_other").show("fast");
			    $("input:checkbox[name='check_oral_other']").removeAttr("disabled");
			    $("#jia_year").show("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = false;
				
				$.JIA_Caregiver_Questions();
			}
			
			// Caregiver&RA selection
			else
			{
			    $("#oral_other").hide("fast");
                $("input:checkbox[name='check_oral_other']").attr("disabled", "disabled");
                $("#jia_year").hide("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = true;
				
				$.RA_Caregiver_Questions();
                
			}
        }
     
         
         //start - new
        // If caregiver is checked
        if ($("input:radio[value='10016018']").is(":checked"))
        {
            //show the hidden div
            $("#about_patient").show("fast");
            $("#q2_caregiver").show("fast");
            $("#q3_caregiver").show("fast");
            $("#q4_caregiver").show("fast");
            $("#q4_copay_caregiver").show("fast");
            $("#about_treatment").hide("fast");
            $("#q2_patient").hide("fast");
            $("#q3_patient").hide("fast");
            $("#q4_patient").hide("fast");
            $("#oral_other").hide("fast");
            $("#how_many_years_caregiver").show("fast");
            $("#how_many_years_patient").hide("fast");
            $("#how_many_years_caregiver2").show("fast");
            $("#how_many_years_patient2").hide("fast");
            $("#how_many_years_caregiver3").show("fast");
            $("#how_many_years_patient3").hide("fast");
            $("#how_many_years_caregiver4").show("fast");
            $("#how_many_years_patient4").hide("fast");
            $("#how_many_years_caregiver5").show("fast");
            $("#how_many_years_patient5").hide("fast");
            $("#how_many_years_caregiver6").show("fast");
            $("#how_many_years_patient6").hide("fast");
            $("#how_many_years_caregiver7").show("fast");
            $("#how_many_years_patient7").hide("fast");
            $("#how_many_years_caregiver8").show("fast");
            $("#how_many_years_patient8").hide("fast");
            $("#how_many_years_caregiver9").show("fast");
            $("#how_many_years_patient9").hide("fast");
            $("#how_many_years_caregiver10").show("fast");
            $("#how_many_years_patient10").hide("fast");
            $("#how_many_years_caregiver11").show("fast");
            $("#how_many_years_patient11").hide("fast");
            $("#how_many_years_caregiver12").show("fast");
            $("#how_many_years_patient12").hide("fast");
            $("#how_many_years_caregiver13").show("fast");
            $("#how_many_years_patient13").hide("fast");
            $("#how_many_years_caregiver14").show("fast");
            $("#how_many_years_patient14").hide("fast");
            $("#how_many_years_caregiver15").show("fast");
            $("#how_many_years_patient15").hide("fast");
            $("#how_many_years_caregiver16").show("fast");
            $("#how_many_years_patient16").hide("fast");
            $("#how_many_years_caregiver17").show("fast");
            $("#how_many_years_patient17").hide("fast");
            $("#how_many_years_caregiver18").show("fast");
            $("#how_many_years_patient18").hide("fast");
            $("#how_many_years_caregiver19").show("fast");
            $("#how_many_years_patient19").hide("fast");
            $("#patient_insurance").hide("fast");
            $("#caregiver_insurance").show("fast");
            $("#patient_participation_programs").hide("fast");
            $("#caregiver_participation_programs").show("fast");
		
		    // Caregiver&JIA selection
			if($("input:radio[value='14000053']").is(":checked"))
			{
			    $("#oral_other").show("fast");
			    $("input:checkbox[name='check_oral_other']").removeAttr("disabled");  
				$("#jia_year").show("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = false;
				
				$.JIA_Caregiver_Questions();
			}
			// Caregiver&RA selection
			else
			{
                $("#oral_other").hide("fast");
                $("input:checkbox[name='check_oral_other']").attr("disabled", "disabled");
                $("#jia_year").hide("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = true;
				
				$.RA_Caregiver_Questions();
                
			}
        }
	});
       // If patient is clicked     
       $("input:radio[value='10016015']").click(function(){
       // If patient is checked 
        if ($("input:radio[value='10016015']").is(":checked"))
        {
            //show the hidden div
            $("#about_patient").hide("fast");
            $("#about_treatment").show("fast");
            $("#q2_patient").show("fast");
            $("#q3_patient").show("fast");
            $("#q4_patient").show("fast");
            $("#q2_caregiver").hide("fast");
            $("#q3_caregiver").hide("fast");
            $("#q4_caregiver").hide("fast");
            $("#q4_copay_caregiver").hide("fast");
            $("#oral_other").hide("fast");
            $("#how_many_years_caregiver").hide("fast");
            $("#how_many_years_patient").show("fast");
            $("#how_many_years_caregiver2").hide("fast");
            $("#how_many_years_patient2").show("fast");
            $("#how_many_years_caregiver3").hide("fast");
            $("#how_many_years_patient3").show("fast");
            $("#how_many_years_caregiver4").hide("fast");
            $("#how_many_years_patient4").show("fast");
            $("#how_many_years_caregiver5").hide("fast");
            $("#how_many_years_patient5").show("fast");
            $("#how_many_years_caregiver6").hide("fast");
            $("#how_many_years_patient6").show("fast");
            $("#how_many_years_caregiver7").hide("fast");
            $("#how_many_years_patient7").show("fast");
            $("#how_many_years_caregiver8").hide("fast");
            $("#how_many_years_patient8").show("fast");
            $("#how_many_years_caregiver9").hide("fast");
            $("#how_many_years_patient9").show("fast");
            $("#how_many_years_caregiver10").hide("fast");
            $("#how_many_years_patient10").show("fast");
            $("#how_many_years_caregiver11").hide("fast");
            $("#how_many_years_patient11").show("fast");
            $("#how_many_years_caregiver12").hide("fast");
            $("#how_many_years_patient12").show("fast");
            $("#how_many_years_caregiver13").hide("fast");
            $("#how_many_years_patient13").show("fast");
            $("#how_many_years_caregiver14").hide("fast");
            $("#how_many_years_patient14").show("fast");
            $("#how_many_years_caregiver15").hide("fast");
            $("#how_many_years_patient15").show("fast");
            $("#how_many_years_caregiver16").hide("fast");
            $("#how_many_years_patient16").show("fast");
            $("#how_many_years_caregiver17").hide("fast");
            $("#how_many_years_patient17").show("fast");
            $("#how_many_years_caregiver18").hide("fast");
            $("#how_many_years_patient18").show("fast");
            $("#how_many_years_caregiver19").hide("fast");
            $("#how_many_years_patient19").show("fast");
            $("#patient_insurance").show("fast");
            $("#caregiver_insurance").hide("fast");
            $("#patient_participation_programs").show("fast");
            $("#caregiver_participation_programs").hide("fast");
            
            $.show_Hide_Questions();
            $.en_disDynamicQuestions(true);
            $.disable_checkbox('check_oral_other');
            
            // Patient&JIA selection
            if($("input:radio[value='14000053']").is(":checked"))
            {
                $("#jia_year").hide("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = true;
                $("#medications_considering_jia_patient").show("fast");
                $("#doctor_appointment_jia_patient").show("fast");
                $("#medications_considering_jia_caregiver").hide("fast");
                $("#doctor_appointment_jia_caregiver").hide("fast");
                $("#q3_caregiver").hide("fast");
                $("#q3_patient").show("fast");
                $("#q4_caregiver").hide("fast");
                $("#q4_copay_caregiver").hide("fast");
                $("#q4_patient").show("fast");
			    
			    $.JIA_Patient_Questions();
            }
            //Patient&RA selection
            else
            {
                $("#jia_year").hide("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = true;
                $("#medications_considering_jia_patient").hide("fast");
                $("#doctor_appointment_jia_patient").hide("fast");
                $("#medications_considering_jia_caregiver").show("fast");
                $("#doctor_appointment_jia_caregiver").show("fast");
			    
			    $.RA_Patient_Questions();
            }
        }
        else
        {       
            //otherwise, hide it 
            $("#about_patient").hide("fast");
        }
    
       //start - new
       // If patient is checked 
       	  if ($("input:radio[value='10016015']").is(":checked"))
        {
            //show the hidden div
            $("#about_patient").hide("fast");
            $("#about_treatment").show("fast");
            $("#q2_patient").show("fast");
            $("#q3_patient").show("fast");
            $("#q4_patient").show("fast");
            $("#q2_caregiver").hide("fast");
            $("#q3_caregiver").hide("fast");
            $("#q4_caregiver").hide("fast");
            $("#q4_copay_caregiver").hide("fast");
            $("#oral_other").hide("fast");
            $("#how_many_years_caregiver").hide("fast");
            $("#how_many_years_patient").show("fast");
            $("#how_many_years_caregiver2").hide("fast");
            $("#how_many_years_patient2").show("fast");
            $("#how_many_years_caregiver3").hide("fast");
            $("#how_many_years_patient3").show("fast");
            $("#how_many_years_caregiver4").hide("fast");
            $("#how_many_years_patient4").show("fast");
            $("#how_many_years_caregiver5").hide("fast");
            $("#how_many_years_patient5").show("fast");
            $("#how_many_years_caregiver6").hide("fast");
            $("#how_many_years_patient6").show("fast");
            $("#how_many_years_caregiver7").hide("fast");
            $("#how_many_years_patient7").show("fast");
            $("#how_many_years_caregiver8").hide("fast");
            $("#how_many_years_patient8").show("fast");
            $("#how_many_years_caregiver9").hide("fast");
            $("#how_many_years_patient9").show("fast");
            $("#how_many_years_caregiver10").hide("fast");
            $("#how_many_years_patient10").show("fast");
            $("#how_many_years_caregiver11").hide("fast");
            $("#how_many_years_patient11").show("fast");
            $("#how_many_years_caregiver12").hide("fast");
            $("#how_many_years_patient12").show("fast");
            $("#how_many_years_caregiver13").hide("fast");
            $("#how_many_years_patient13").show("fast");
            $("#how_many_years_caregiver14").hide("fast");
            $("#how_many_years_patient14").show("fast");
            $("#how_many_years_caregiver15").hide("fast");
            $("#how_many_years_patient15").show("fast");
            $("#how_many_years_caregiver16").hide("fast");
            $("#how_many_years_patient16").show("fast");
            $("#how_many_years_caregiver17").hide("fast");
            $("#how_many_years_patient17").show("fast");
            $("#how_many_years_caregiver18").hide("fast");
            $("#how_many_years_patient18").show("fast");
            $("#how_many_years_caregiver19").hide("fast");
            $("#how_many_years_patient19").show("fast");
			$("#patient_insurance").show("fast");
            $("#caregiver_insurance").hide("fast");
            $("#patient_participation_programs").show("fast");
            $("#caregiver_participation_programs").hide("fast");
            
            $.disable_checkbox('check_oral_other');
			
			// Patient&JIA selection
			if($("input:radio[value='14000053']").is(":checked"))
            {
                $("#jia_year").hide("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = true;
                $("#medications_considering_jia_patient").show("fast");
                $("#doctor_appointment_jia_patient").show("fast");
                $("#medications_considering_jia_caregiver").hide("fast");
                $("#doctor_appointment_jia_caregiver").hide("fast");
                $("#q3_caregiver").hide("fast");
                $("#q3_patient").show("fast");
                $("#q4_caregiver").hide("fast");
                $("#q4_copay_caregiver").hide("fast");
                $("#q4_patient").show("fast");
			    
			    $.JIA_Patient_Questions();
            }
            
            //Patient&RA selection
            else
            {
                $("#jia_year").hide("fast");
                document.getElementById("child-age<10028055,OPEN>").disabled = true;
                $("#medications_considering_jia_patient").hide("fast");
                $("#doctor_appointment_jia_patient").hide("fast");
                $("#medications_considering_jia_caregiver").show("fast");
                $("#doctor_appointment_jia_caregiver").show("fast");
			    
			    $.RA_Patient_Questions();
            }
        }
       //end - new
    });
        //RA click function
        $("input:radio[value='14000052']").click(function(){
        // If RA is checked
        if ($("input:radio[value='14000052']").is(":checked"))
        {
			//show the hidden div
            $("#jia_year").hide("fast");
            $("#jia_radio").hide("fast");
            $("#ra_radio").show("fast");
			$("#infusion_methotrexate").show("fast");
            $("#infusion_Rituxan").show("fast");
            $("#infusion_Remicade").show("fast");
            $("#infusion_Actemra").show("fast");
            $("#injection_Cimzia").show("fast");
            $("#injection_Kineret").show("fast");
            $("#injection_Simponi").show("fast");
            $("#oral_other").hide("fast");
            $("#Oral_Arava").show("fast");
            
            //RA&Caregiver selection
			if ($("input:radio[value='10016018']").is(":checked"))
			{
			    $.RA_Caregiver_Questions();
		    }
		    //RA&Patient selection
			else
			{
			    $.RA_Patient_Questions();
            }
            	

            $("#oral_Plaquenil").show("fast");
            $("#oral_Ridaura").show("fast");
            //-- 
            
			
			$.disable_checkbox('check_oral_other');
			
			//enable/disable checkboxes for infustion check
            if ($("input:checkbox[name='infusion']").is(":checked"))
            {
                $.enable_checkbox('checkbox_Methotrexate');
                
                if($("input:checkbox[name='checkbox_Remicade']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Remicade');
                    $.disable_checkbox('checkbox_Orencia');
                    $.disable_checkbox('checkbox_Rituxan');
                    $.disable_checkbox('checkbox_Actemra');
                }
                else if($("input:checkbox[name='checkbox_Rituxan']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Rituxan');
                    $.disable_checkbox('checkbox_Orencia');
                    $.disable_checkbox('checkbox_Remicade');
                    $.disable_checkbox('checkbox_Actemra');
                }
                else if($("input:checkbox[name='checkbox_Actemra']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Actemra');
                    $.disable_checkbox('checkbox_Orencia');
                    $.disable_checkbox('checkbox_Remicade');
                    $.disable_checkbox('checkbox_Rituxan');
                }
                else if($("input:checkbox[name='checkbox_Orencia']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Orencia');
                    $.disable_checkbox('checkbox_Actemra');
                    $.disable_checkbox('checkbox_Remicade');
                    $.disable_checkbox('checkbox_Rituxan');
                }
                else 
                {
                    $.enable_checkbox('checkbox_Remicade');
			        $.enable_checkbox('checkbox_Rituxan');
			        $.enable_checkbox('checkbox_Actemra');
                }
            }
            //enable/disable checkboxes for injection check
            if ($("input:checkbox[name='injection']").is(":checked"))
            {
                if($("input:checkbox[name='checkbox_Cimzia']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Cimzia');
                    $.disable_checkbox('checkbox_Enbrel');
                    $.disable_checkbox('checkbox_Humira');
                    $.disable_checkbox('checkbox_Kineret');
                    $.disable_checkbox('checkbox_Simponi');
                }
                else if($("input:checkbox[name='checkbox_Enbrel']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Enbrel');
                    $.disable_checkbox('checkbox_Cimzia');
                    $.disable_checkbox('checkbox_Humira');
                    $.disable_checkbox('checkbox_Kineret');
                    $.disable_checkbox('checkbox_Simponi');
                }
                else if($("input:checkbox[name='checkbox_Humira']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Humira');
                    $.disable_checkbox('checkbox_Cimzia');
                    $.disable_checkbox('checkbox_Enbrel');
                    $.disable_checkbox('checkbox_Kineret');
                    $.disable_checkbox('checkbox_Simponi');
                }
                else if($("input:checkbox[name='checkbox_Kineret']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Kineret');
                    $.disable_checkbox('checkbox_Cimzia');
                    $.disable_checkbox('checkbox_Enbrel');
                    $.disable_checkbox('checkbox_Humira');
                    $.disable_checkbox('checkbox_Simponi');
                }
                else if($("input:checkbox[name='checkbox_Simponi']").is(":checked"))
                {
                    $.enable_checkbox('checkbox_Simponi');
                    $.disable_checkbox('checkbox_Cimzia');
                    $.disable_checkbox('checkbox_Enbrel');
                    $.disable_checkbox('checkbox_Humira');
                    $.disable_checkbox('checkbox_Kineret');
                }
                else 
                {
                    $.enable_checkbox('checkbox_Cimzia');
			        $.enable_checkbox('checkbox_Kineret');
			        $.enable_checkbox('checkbox_Simponi');
                }
            }
            
            if ($("input:checkbox[name='oral']").is(":checked"))
            {
                $.enable_checkbox('checkbox_Ridaura'); 
                $.enable_checkbox('checkbox_Arava'); 
            }
			//--
        }
       
        $.show_Hide_Questions();
        $.en_disDynamicQuestions(true);
         });
        //if RA is checked
        if ($("input:radio[value='14000052']").is(":checked"))
        {
            //show the hidden div
            $("#jia_year").hide("fast");
            $("#jia_radio").hide("fast");
            $("#ra_radio").show("fast");
			$("#infusion_methotrexate").show("fast");
            $("#infusion_Rituxan").show("fast");
            $("#infusion_Remicade").show("fast");
            $("#infusion_Actemra").show("fast");
            $("#injection_Cimzia").show("fast");
            $("#injection_Kineret").show("fast");
            $("#injection_Simponi").show("fast");
            $("#oral_other").hide("fast");
            $("#Oral_Arava").show("fast");
            
            //RA&Caregiver selection
			if ($("input:radio[value='10016018']").is(":checked"))
			{
			    $.RA_Caregiver_Questions();
		    }
		    
		    //RA&Patient selection
			else
			{
			    $.RA_Patient_Questions();
            }

            $("#oral_Plaquenil").show("fast");
            $("#oral_Ridaura").show("fast");
            $.disable_checkbox('check_oral_other');
        }
        
        //JIA click function
		$("input:radio[value='14000053']").click(function(){
		// If JIA is checked
        if ($("input:radio[value='14000053']").is(":checked"))
        {
            //show the hidden div
            $("#jia_year").show("fast");
            $("#jia_radio").show("fast");
            $("#ra_radio").hide("fast");
            $("#q2_caregiver").show("fast");
            $("#q3_caregiver").show("fast");
            $("#q4_caregiver").show("fast");
            $("#q4_copay_caregiver").show("fast");
            $("#q2_patient").hide("fast");
            $("#q3_patient").hide("fast");
            $("#q4_patient").hide("fast");
            $("#Remicade").hide("fast");
            $("#Rituxan").hide("fast");
            $("#Actemra").hide("fast");
			$("#Cimzia").hide("fast");
			$("#Kineret").hide("fast");
			$("#Simponi").hide("fast");
			$("#Ridaura").hide("fast");
            $("#infusion_methotrexate").show("fast");
			$("#infusion_Rituxan").hide("fast");
            $("#infusion_Remicade").hide("fast");
            $("#infusion_Actemra").hide("fast");
            $("#injection_Cimzia").hide("fast");
            $("#injection_Kineret").hide("fast");
            $("#injection_Simponi").hide("fast");
            $("#injection_Simponi").hide("fast");
            $("#oral_Ridaura").hide("fast");
            $("#oral_other").show("fast");
            $("#Oral_Arava").hide("fast");
            
			//--
			//$.disable_checkbox('checkbox_Methotrexate');
			$.disable_checkbox('checkbox_Remicade');
			$.disable_checkbox('checkbox_Rituxan');
			$.disable_checkbox('checkbox_Cimzia');
			$.disable_checkbox('checkbox_Actemra');
			$.disable_checkbox('checkbox_Kineret');
			$.disable_checkbox('checkbox_Simponi');
			//$.disable_checkbox('checkbox_Plaquenil');
			$.disable_checkbox('checkbox_Ridaura');
			$.disable_checkbox('checkbox_Arava');
			 
			//--
            $("#about_patient").show("fast");
            $("#about_treatment").hide("fast");
            $("#how_many_years_patient").hide("fast");
            $("#how_many_years_caregiver2").show("fast");
            $("#how_many_years_patient2").hide("fast");
            $("#how_many_years_patient3").hide("fast");
            $("#how_many_years_patient4").hide("fast");
            $("#how_many_years_caregiver5").show("fast");
            $("#how_many_years_patient5").hide("fast");
            $("#how_many_years_caregiver6").show("fast");
            $("#how_many_years_patient6").hide("fast");
            $("#how_many_years_caregiver7").show("fast");
            $("#how_many_years_patient7").hide("fast");
            $("#how_many_years_caregiver8").show("fast");
            $("#how_many_years_patient8").hide("fast");
            $("#how_many_years_caregiver9").show("fast");
            $("#how_many_years_patient9").hide("fast");
            $("#how_many_years_caregiver10").show("fast");
            $("#how_many_years_patient10").hide("fast");
            $("#how_many_years_caregiver11").show("fast");
            $("#how_many_years_patient11").hide("fast");
            $("#how_many_years_caregiver12").show("fast");
            $("#how_many_years_patient12").hide("fast");
            $("#how_many_years_caregiver13").show("fast");
            $("#how_many_years_patient13").hide("fast");
            $("#how_many_years_caregiver14").show("fast");
            $("#how_many_years_patient14").hide("fast");
            $("#how_many_years_caregiver15").show("fast");
            $("#how_many_years_patient15").hide("fast");
            $("#how_many_years_patient16").hide("fast");
            $("#how_many_years_caregiver17").show("fast");
            $("#how_many_years_patient17").hide("fast");
            $("#how_many_years_caregiver18").show("fast");
            $("#how_many_years_patient18").hide("fast");
            $("#how_many_years_patient19").hide("fast");
            
            if ($("input:checkbox[name='infusion']").is(":checked"))
            {
                $.enable_checkbox('checkbox_Orencia');
            }
            
			if ($("input:checkbox[name='injection']").is(":checked"))
			{
			    if($("input:checkbox[name='checkbox_Enbrel']").is(":checked"))
			    {
			        $.disable_checkbox('checkbox_Humira');
			    }
			    else if($("input:checkbox[name='checkbox_Humira']").is(":checked"))
			    {
			        $.disable_checkbox('checkbox_Enbrel');
			    }
			    else
			    {
			        $.enable_checkbox('checkbox_Enbrel');
			        $.enable_checkbox('checkbox_Humira');
			    }
			}
			
			// JIA&Caregiver selection
			if ($("input:radio[value='10016018']").is(":checked"))
			{
			    $.enable_checkbox('check_oral_other');
			    document.getElementById("child-age<10028055,OPEN>").disabled = false;
			    
			    $.JIA_Caregiver_Questions();
		    }
		    //JIA&Patient selection
			else if($("input:radio[value='10016015']").is(":checked"))
			{
			    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			    
			    $.JIA_Patient_Questions();
            }
            else
            {
                $.JIA_Caregiver_Questions();
                $.enable_checkbox('check_oral_other');
                document.getElementById("child-age<10028055,OPEN>").disabled = false;
            }
			
        }
        else
        {       
            //otherwise, hide it 
            $("#jia_year").hide("fast");
            $("#jia_radio").hide("fast");
        }
            $.show_Hide_Questions();
			$.en_disDynamicQuestions(true);
         });

		//start - new
		//if JIA is checked
        if ($("input:radio[value='14000053']").is(":checked"))
        {
            //show the hidden div
            $("#jia_year").show("fast");
            $("#jia_radio").show("fast");
            $("#ra_radio").hide("fast");
            $("#q2_caregiver").show("fast");
            $("#q3_caregiver").show("fast");
            $("#q4_caregiver").show("fast");
            $("#q4_copay_caregiver").show("fast");
            $("#q2_patient").hide("fast");
            $("#q3_patient").hide("fast");
            $("#q4_patient").hide("fast");
            $("#Methotrexate").hide("fast");
            $("#Remicade").hide("fast");
            $("#Rituxan").hide("fast");
            $("#Actemra").hide("fast");
			$("#Cimzia").hide("fast");
			$("#Kineret").hide("fast");
			$("#Simponi").hide("fast");
			$("#Ridaura").hide("fast");
			$("#infusion_methotrexate").show("fast");
            $("#infusion_Rituxan").hide("fast");
            $("#infusion_Remicade").hide("fast");
            $("#injection_Cimzia").hide("fast");
            $("#injection_Kineret").hide("fast");
            $("#injection_Simponi").hide("fast");
            $("#injection_Simponi").hide("fast");
            $("#oral_Ridaura").hide("fast");
            $("#oral_other").show("fast");
            $("#Oral_Arava").hide("fast");
            $("#about_patient").show("fast");
            $("#about_treatment").hide("fast");
            $("#how_many_years_patient").hide("fast");
            $("#how_many_years_caregiver2").show("fast");
            $("#how_many_years_patient2").hide("fast");
            $("#how_many_years_patient3").hide("fast");
            $("#how_many_years_patient4").hide("fast");
            $("#how_many_years_patient5").hide("fast");
            $("#how_many_years_caregiver6").show("fast");
            $("#how_many_years_patient6").hide("fast");
            $("#how_many_years_caregiver7").show("fast");
            $("#how_many_years_patient7").hide("fast");
            $("#how_many_years_patient8").hide("fast");
            $("#how_many_years_caregiver9").show("fast");
            $("#how_many_years_patient9").hide("fast");
            $("#how_many_years_patient10").hide("fast");
            $("#how_many_years_caregiver11").show("fast");
            $("#how_many_years_patient11").hide("fast");
            $("#how_many_years_caregiver12").show("fast");
            $("#how_many_years_patient12").hide("fast");
            $("#how_many_years_caregiver13").show("fast");
            $("#how_many_years_patient13").hide("fast");
            $("#how_many_years_caregiver14").show("fast");
            $("#how_many_years_patient14").hide("fast");
            $("#how_many_years_caregiver15").show("fast");
            $("#how_many_years_patient15").hide("fast");
            $("#how_many_years_patient16").hide("fast");
            $("#how_many_years_caregiver17").show("fast");
            $("#how_many_years_patient17").hide("fast");
            $("#how_many_years_caregiver18").show("fast");
            $("#how_many_years_patient18").hide("fast");
            $("#how_many_years_patient19").hide("fast");
            
            //JIA&Caregiver selection
            if ($("input:radio[value='10016018']").is(":checked"))
			{
			    $.enable_checkbox('check_oral_other');
			    
			    $.JIA_Caregiver_Questions();
		    }
		    //JIA&Patient questions
			else if($("input:radio[value='10016015']").is(":checked"))
			{
			    $.JIA_Patient_Questions();
            }
            else
            {
                $.JIA_Caregiver_Questions();
            }
        }       
       //end - new
       
        if ($("input:checkbox[name='infusion']").is(":checked"))
        {
            //show the hidden div
            $("#signup_infusion").show("fast");
            
            //disable 4th check box
            $("input:checkbox[name='med']").attr("disabled", "disabled");
                 
			if ($("input:radio[value='14000053']").is(":checked"))
			{
				$("#infusion_methotrexate").show("fast");
				$("#Methotrexate").show("fast");
				$("#infusion_Rituxan").hide("fast");
				$("#Rituxan").hide("fast");
				$("#infusion_Remicade").hide("fast");
				$("#Remicade").hide("fast");
				$("#infusion_other").show("fast");
			}
			else
				$("#infusion_methotrexate").show("fast");

			if ($("input:radio[value='10016018']").is(":checked"))
			{
				//Caregiver&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    $.JIA_Caregiver_Questions();
                   
				}
				//Caregiver&RA selection
				else
				{
                    $.RA_Caregiver_Questions();
				}
			}
			else if ($("input:radio[value='10016015']").is(":checked"))
			{
				
				$("#oral_other").hide("fast");
				
				//Patient&JIA selection 
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.JIA_Patient_Questions();
				}
				//Patient&RA selection 
				else
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.RA_Patient_Questions();
                    
				}
				
			}
			else
			{   
			    //neither patient/caregiver is selected, but JIA is selected
			    //display JIA/Caregiver questions
			    if ($("input:radio[value='14000053']").is(":checked"))
			    {
			        $.JIA_Caregiver_Questions();
			    }
			    //neither patient/caregiver is selected, but RA is selected
			    //display RA/Patient questions
			    else
			    {
			        $("#oral_other").hide("fast");
			        $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			        
			        $.RA_Patient_Questions();
			    }
			}
        }
        else
        {
                if ($("input:checkbox[name='injection']").is(":checked")  || $("input:checkbox[name='oral']").is(":checked"))
                {
                     
                }
                else
                {
                    $("input:checkbox[name='med']").removeAttr("disabled");
                }       
        }
        
       
       
       $("input:checkbox[name='infusion']").click(function(){
        // If checked
        if ($("input:checkbox[name='infusion']").is(":checked"))
        {
            $.en_disInfusion(true);
            //$.en_disDynamicQuestions(true);
			//show the hidden div
            $("#signup_infusion").show("fast");
            
            //disable 4th check box
            $("input:checkbox[name='med']").attr("disabled", "disabled");
            
			if ($("input:radio[value='14000053']").is(":checked"))
			{
				$("#infusion_Rituxan").hide("fast");
				$("#Rituxan").hide("fast");
				$("#infusion_Remicade").hide("fast");
				$("#Remicade").hide("fast");
				$("#infusion_Actemra").hide("fast");
				$("#Actemra").hide("fast");
				$("#infusion_other").show("fast");
			}
			//else
				//$("#infusion_methotrexate").show("fast");

			if ($("input:radio[value='10016018']").is(":checked"))
			{
				
				//Caregiver&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    
                    $.JIA_Caregiver_Questions();
                   
				}
				//Caregiver&RA selection
				else
				{
                    
                    $.RA_Caregiver_Questions();
				}
				
			}
			else if ($("input:radio[value='10016015']").is(":checked"))
			{
				
				$("#oral_other").hide("fast");
				
				//Patient&JIA selection 
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                     
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.JIA_Patient_Questions();
				}
				//Patient&RA selection 
				else
				{
                    
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.RA_Patient_Questions();
                    
				}
			}
			else
			{   
			    //neither patient/caregiver is selected, but JIA is selected
			    //display JIA/Caregiver questions
			    if ($("input:radio[value='14000053']").is(":checked"))
			    {
			        $.JIA_Caregiver_Questions();
			    }
			    //neither patient/caregiver is selected, but RA is selected
			    //display RA/Patient questions
			    else
			    {
			        $("#oral_other").hide("fast");
			        $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			        
			        $.RA_Patient_Questions();
			    }
			}
        }
        else
        {       
            
			//otherwise, hide it 
            $("#signup_infusion").hide("fast");
            $("input:radio[name='orencia_infusion_date']").attr("disabled", "disabled")
            
			//disenable sub options
			$.en_disInfusion(false);
			
                if ($("input:checkbox[name='injection']").is(":checked")  || $("input:checkbox[name='oral']").is(":checked"))
                {
                     
                }
                else
                {
                    $("input:checkbox[name='med']").removeAttr("disabled");
                }      
        }
            $.en_disDynamicQuestions(true);
            $.show_Hide_Questions();
         });


        if ($("input:checkbox[name='injection']").is(":checked"))
        {
         
            //show the hidden div
            $("#signup_injection").show("fast");
            
             //disable 4th check box
                 $("input:checkbox[name='med']").attr("disabled", "disabled");
                 
			if ($("input:radio[value='14000053']").is(":checked"))
			{
				$("#injection_Cimzia").hide("fast");
				$("#Cimzia").hide("fast");
				$("#injection_Kineret").hide("fast");
				$("#Kineret").hide("fast");
				$("#injection_Simponi").hide("fast");
				$("#Simponi").hide("fast");
			}

			if ($("input:radio[value='10016018']").is(":checked"))
			{
			    //Caregiver&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    $.JIA_Caregiver_Questions();
				}
				//Caregiver&RA selection
				else
				{
                    $.RA_Caregiver_Questions();
				}	
			}
			else if($("input:radio[value='10016015']").is(":checked"))
			{
				$("#oral_other").hide("fast");
				// Patient&JIA selection 
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                   
                   $.JIA_Patient_Questions();
                    
				}
				// Patient&RA selection
				else
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.RA_Patient_Questions();
                    
				}
			}
			else
			{   
			    //neither patient/caregiver is selected, but JIA is selected
			    //display JIA/Caregiver questions
			    if ($("input:radio[value='14000053']").is(":checked"))
			    {
			        $.JIA_Caregiver_Questions();
			    }
			    //neither patient/caregiver is selected, but RA is selected
			    //display RA/Patient questions
			    else
			    {
			        $("#oral_other").hide("fast");
			        $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			        
			        $.RA_Patient_Questions();
			    }
			}

        }
        else
        {
                if ($("input:checkbox[name='infusion']").is(":checked")  || $("input:checkbox[name='oral']").is(":checked"))
                {
                     
                }
                else
                {
                    $("input:checkbox[name='med']").removeAttr("disabled");
                }     
        }
        
	$("input:checkbox[name='injection']").click(function(){
        // If checked
        
        if ($("input:checkbox[name='injection']").is(":checked"))
        {
            //enable sub options
			$.en_disInjection(true);
			
			 //disable 4th check box
                 $("input:checkbox[name='med']").attr("disabled", "disabled");
			//show the hidden div
            $("#signup_injection").show("fast");

			if ($("input:radio[value='14000053']").is(":checked"))
			{
				$("#injection_Cimzia").hide("fast");
				$("#Cimzia").hide("fast");
				$("#injection_Kineret").hide("fast");
				$("#Kineret").hide("fast");
				$("#injection_Simponi").hide("fast");
				$("#Simponi").hide("fast");
			}
			
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				//Caregiver&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    
                    $.JIA_Caregiver_Questions();
				}
				//Caregiver&RA selection
				else
				{
                    $.RA_Caregiver_Questions();
				}
			}
			else if($("input:radio[value='10016015']").is(":checked"))
			{
				$("#oral_other").hide("fast");
				
				//Patient&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.JIA_Patient_Questions();
           
				
				}
				//Patient&RA selection
				else
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.RA_Patient_Questions();
         
				}
			}
			else
			{   
			    //neither patient/caregiver is selected, but JIA is selected
			    //display JIA/Caregiver questions
			    if ($("input:radio[value='14000053']").is(":checked"))
			    {
			        $.JIA_Caregiver_Questions();
			    }
			    //neither patient/caregiver is selected, but RA is selected
			    //display RA/Patient questions
			    else
			    {
			        $("#oral_other").hide("fast");
			        $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			        
			        $.RA_Patient_Questions();
			    }
			}
        }
        else
        {       
            
			//otherwise, hide it 
            $("#signup_injection").hide("fast");

			//disenable sub options
			$.en_disInjection(false);
			
                if ($("input:checkbox[name='infusion']").is(":checked")  || $("input:checkbox[name='oral']").is(":checked"))
                {
                     
                }
                else
                {
                    $("input:checkbox[name='med']").removeAttr("disabled");
                }     
        }
        $.show_Hide_Questions();
        $.en_disDynamicQuestions(true);
        });

        if ($("input:checkbox[name='oral']").is(":checked"))
        {
         
            //show the hidden div
            $("#signup_oral").show("fast");
            
             //disable 4th check box
                 $("input:checkbox[name='med']").attr("disabled", "disabled");

			if ($("input:radio[value='14000053']").is(":checked"))
			{
				$("#oral_Ridaura").hide("fast");
				$("#Ridaura").hide("fast");
			}

			if ($("input:radio[value='10016018']").is(":checked"))
			{
				//Caregiver&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    
                    $.JIA_Caregiver_Questions();
				}
				//Caregiver&RA selection
				else
				{
                    
                    $.RA_Caregiver_Questions();
				}
			}
			else if ($("input:radio[value='10016015']").is(":checked"))
			{
				$("#oral_other").hide("fast");
				//Patient&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.JIA_Patient_Questions();
        
				}
				//Patient&RA selection
				else
				{
                    
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.RA_Patient_Questions();
                 
				}
			}
			else
			{   
			    //neither patient/caregiver is selected, but JIA is selected
			    //display JIA/Caregiver questions
			    if ($("input:radio[value='14000053']").is(":checked"))
			    {
			        $.JIA_Caregiver_Questions();
			    }
			    //neither patient/caregiver is selected, but RA is selected
			    //display RA/Patient questions
			    else
			    {
			        $("#oral_other").hide("fast");
			        $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			        
			        $.RA_Patient_Questions();
			    }
			}
        }
        else
        {
                if ($("input:checkbox[name='infusion']").is(":checked")  || $("input:checkbox[name='injection']").is(":checked"))
                {
                     
                }
                else
                {
                    $("input:checkbox[name='med']").removeAttr("disabled");
                }     
        }

        $("input:checkbox[name='oral']").click(function(){
        // If checked
        if ($("input:checkbox[name='oral']").is(":checked"))
        {
            //enable sub options
			$.en_disOral(true);
			
			 //disable 4th check box
                 $("input:checkbox[name='med']").attr("disabled", "disabled");
			//show the hidden div
            $("#signup_oral").show("fast");
            
			if ($("input:radio[value='14000053']").is(":checked"))
			{
				$("#oral_Ridaura").hide("fast");
				$("#Ridaura").hide("fast");
				$("#Oral_Arava").hide("fast");
				$("#Arava").hide("fast");
			}

			if ($("input:radio[value='10016018']").is(":checked"))
			{
				//Caregiver&JIA selection
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    $.JIA_Caregiver_Questions();
				}
				//Caregiver&RA selection
				else
				{
                    $.RA_Caregiver_Questions();
				}
			}
			else if ($("input:radio[value='10016015']").is(":checked"))
			{
				
				$("#oral_other").hide("fast");
				//Patient&JIA questions 
				if ($("input:radio[value='14000053']").is(":checked"))
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.JIA_Patient_Questions();
                    
				}
				//Patient&RA questions
				else
				{
                    $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
                    
                    $.RA_Patient_Questions();
                
				}
			}
			else
			{   
			    //neither patient/caregiver is selected, but JIA is selected
			    //display JIA/Caregiver questions
			    if ($("input:radio[value='14000053']").is(":checked"))
			    {
			        $.JIA_Caregiver_Questions();
			    }
			    //neither patient/caregiver is selected, but RA is selected
			    //display RA/Patient questions
			    else
			    {
			        $("#oral_other").hide("fast");
			        $("#jia_year").hide("fast");
                    document.getElementById("child-age<10028055,OPEN>").disabled = true;
			        
			        $.RA_Patient_Questions();
			    }
			}
        }
        else
        {       
            
			//otherwise, hide it 
            $("#signup_oral").hide("fast");
			
			//disenable sub options
			$.en_disOral(false);
			//$.show_Hide_Questions();
			
                if ($("input:checkbox[name='infusion']").is(":checked")  || $("input:checkbox[name='injection']").is(":checked"))
                {
                     
                }
                else
                {
                    $("input:checkbox[name='med']").removeAttr("disabled");
                }     
        }
        $.show_Hide_Questions();
        $.en_disDynamicQuestions(true);

         });
         
         
          ///not taking medication 4th checkbox
         if ($("input:checkbox[name='med']").is(":checked"))
        {
             $("input:checkbox[name='oral']").attr("disabled", "disabled");
        
             $("input:checkbox[name='injection']").attr("disabled", "disabled");
             
              $("input:checkbox[name='infusion']").attr("disabled", "disabled");
        }
        else
        {
            //enable checkbox
             $("input:checkbox[name='oral']").removeAttr("disabled");
             $("input:checkbox[name='injection']").removeAttr("disabled");
             $("input:checkbox[name='infusion']").removeAttr("disabled");
        
        }
        
        ///function for 4th checkbox
        $("input:checkbox[name='med']").click(function(){
        if ($("input:checkbox[name='med']").is(":checked"))
        {
             $("input:checkbox[name='oral']").attr("disabled", "disabled");
             $("input:checkbox[name='injection']").attr("disabled", "disabled");
             $("input:checkbox[name='infusion']").attr("disabled", "disabled");
             
             //checking conditions for show/hide of dynamic questions
		    $.show_Hide_Questions();
		
		    //checking conditions for dynamic questions enable/disable
		    $.en_disDynamicQuestions(false);
        }
        else
        {
            //enable checkbox
             $("input:checkbox[name='oral']").removeAttr("disabled");
             $("input:checkbox[name='injection']").removeAttr("disabled");
             $("input:checkbox[name='infusion']").removeAttr("disabled");
             
             //checking conditions for show/hide of dynamic questions
		    $.show_Hide_Questions();
		
		    //checking conditions for dynamic questions enable/disable
		    $.en_disDynamicQuestions(true);
        
        }
          });
          
         
        $("input:checkbox[name='checkbox_Methotrexate']").click(function(){
     
        // If checked
        if ($("input:checkbox[name='checkbox_Methotrexate']").is(":checked"))
        {
            //show the hidden div
            $("#Methotrexate").show("fast");
            $("input:radio[name='how_long_methotrexate']").removeAttr("disabled");
			
			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver").hide("fast");
				$("#how_many_years_patient").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver").show("fast");
				$("#how_many_years_patient").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Methotrexate").hide("fast");
            $("input:radio[name='how_long_methotrexate']").attr("disabled", "disabled");
        }
        
     });
            
        // If checked
        if ($("input:checkbox[name='checkbox_Methotrexate']").is(":checked"))
        {
            //show the hidden div
            $("#Methotrexate").show("fast");
            $("input:radio[name='how_long_methotrexate']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver").hide("fast");
				$("#how_many_years_patient").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver").show("fast");
				$("#how_many_years_patient").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Methotrexate").hide("fast");
            $("input:radio[name='how_long_methotrexate']").attr("disabled", "disabled");
        }

    //INFUSION BIOLOGIC
        $("input:checkbox[name='checkbox_Orencia']").click(function(){
      
        // If checked
        if ($("input:checkbox[name='checkbox_Orencia']").is(":checked"))
        {
            //show the hidden div
            $("#Orencia2").show("fast");
            $("input:radio[name='orencia_infusion_date']").removeAttr("disabled");
           
            
            $("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");
            
            

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver2").hide("fast");
				$("#how_many_years_patient2").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver2").show("fast");
				$("#how_many_years_patient2").hide("fast");
			}
			
			//hiding and disabling additional questions on selection of orencia
			$("#physician_type").hide("fast");
            document.getElementById("physician-type<10002329,ID>").disabled = true;
            document.getElementById("physician-name").disabled = true; 
            $("#physician_name").hide("fast"); 
            $("#tasks").hide("fast");
            $("#medications_considering").hide("fast");
            $("#medications_considering_jia").hide("fast");
            $("#rate_important_life").hide("fast");
            
            $("input:checkbox[name='checkbox_tasks']").attr("disabled", "disabled");
            $("input:radio[name='how_satisfied']").attr("disabled", "disabled");
            $("input:radio[name='doctor_discussed']").attr("disabled", "disabled");
            $("input:checkbox[name='medications_ra']").attr("disabled", "disabled");
            $("input:checkbox[name='medications_jia']").attr("disabled", "disabled");
            $("input:radio[name='next_appt_ra']").attr("disabled", "disabled");
            $("input:radio[name='next_appt_jia']").attr("disabled", "disabled");
            $("input:radio[name='rate_important']").attr("disabled", "disabled");
            
        }
        else
        {       
            //otherwise, hide it 
            $("#Orencia2").hide("fast");
            $("input:radio[name='orencia_infusion_date']").attr("disabled", "disabled")
            $.show_Hide_Questions();
            $.en_disDynamicQuestions(true);
            //enable other checkboxes
            $("input:checkbox[name='checkbox_Rituxan']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Remicade']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Actemra']").removeAttr("disabled");
        }
        
     });

        // If checked
        if ($("input:checkbox[name='checkbox_Orencia']").is(":checked"))
        {
            //show the hidden div
            $("#Orencia2").show("fast");
            $("input:radio[name='orencia_infusion_date']").removeAttr("disabled");

		$("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");
		$("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
        $("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver2").hide("fast");
				$("#how_many_years_patient2").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver2").show("fast");
				$("#how_many_years_patient2").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Orencia2").hide("fast");
            $("input:radio[name='orencia_infusion_date']").attr("disabled", "disabled");
        }

        $("input:checkbox[name='checkbox_Remicade']").click(function(){
        // If checked
        if ($("input:checkbox[name='checkbox_Remicade']").is(":checked"))
        {
            //show the hidden div
            $("#Remicade").show("fast");
            $("input:radio[name='how_long_remicade']").removeAttr("disabled");
            
            $("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");
		    $("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
		    $("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");
		
			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver3").hide("fast");
				$("#how_many_years_patient3").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver3").show("fast");
				$("#how_many_years_patient3").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Remicade").hide("fast");
            $("input:radio[name='how_long_remicade']").attr("disabled", "disabled");

            //enable other checkboxes
            $("input:checkbox[name='checkbox_Rituxan']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Orencia']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Actemra']").removeAttr("disabled");
        }
        
     });
		  
        // If checked
        if ($("input:checkbox[name='checkbox_Remicade']").is(":checked"))
        {
            //show the hidden div
            $("#Remicade").show("fast");
            $("input:radio[name='how_long_remicade']").removeAttr("disabled");

		$("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");
		$("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
		$("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver3").hide("fast");
				$("#how_many_years_patient3").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver3").show("fast");
				$("#how_many_years_patient3").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Remicade").hide("fast");
            $("input:radio[name='how_long_remicade']").attr("disabled", "disabled");
        }
        

      $("input:checkbox[name='checkbox_Rituxan']").click(function(){
        // If checked
        if ($("input:checkbox[name='checkbox_Rituxan']").is(":checked"))
        {
            //show the hidden div
            $("#Rituxan").show("fast");
            $("input:radio[name='how_long_rituxan']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
	        $("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
	        $("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver4").hide("fast");
				$("#how_many_years_patient4").show("fast");
				//$.hide_Caregiver_Questions();
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver4").show("fast");
				$("#how_many_years_patient4").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Rituxan").hide("fast");
            $("input:radio[name='how_long_rituxan']").attr("disabled", "disabled");

            //enable other checkboxes
            $("input:checkbox[name='checkbox_Remicade']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Orencia']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Actemra']").removeAttr("disabled");
        }
        
     });
             
        // If checked
        if ($("input:checkbox[name='checkbox_Rituxan']").is(":checked"))
        {
            //show the hidden div
            $("#Rituxan").show("fast");
            $("input:radio[name='how_long_rituxan']").removeAttr("disabled");

	    $("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
	    $("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
	    $("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver4").hide("fast");
				$("#how_many_years_patient4").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver4").show("fast");
				$("#how_many_years_patient4").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Rituxan").hide("fast");
            $("input:radio[name='how_long_rituxan']").attr("disabled", "disabled");
        }
        
        $("input:checkbox[name='checkbox_Actemra']").click(function(){
        // If checked
        if ($("input:checkbox[name='checkbox_Actemra']").is(":checked"))
        {
            //show the hidden div
            $("#Actemra").show("fast");
            $("input:radio[name='how_long_actemra']").removeAttr("disabled");

              $("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
              $("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
              $("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver19").hide("fast");
				$("#how_many_years_patient19").show("fast");
			}
			if($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver19").show("fast");
				$("#how_many_years_patient19").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Actemra").hide("fast");
            $("input:radio[name='how_long_actemra']").attr("disabled", "disabled");
            //enable other checkboxes
              $("input:checkbox[name='checkbox_Remicade']").removeAttr("disabled");
              $("input:checkbox[name='checkbox_Orencia']").removeAttr("disabled");
              $("input:checkbox[name='checkbox_Rituxan']").removeAttr("disabled");
        }
        
     });
             
        // If checked
        if ($("input:checkbox[name='checkbox_Actemra']").is(":checked"))
        {
            //show the hidden div
            $("#Actemra").show("fast");
            $("input:radio[name='how_long_actemra']").removeAttr("disabled");

              $("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
              $("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
              $("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");


			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver19").hide("fast");
				$("#how_many_years_patient19").show("fast");
			}
			if($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver19").show("fast");
				$("#how_many_years_patient19").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Actemra").hide("fast");
            $("input:radio[name='how_long_actemra']").attr("disabled", "disabled");
        }

        //INJECTION BIOLOGIC
         $("input:checkbox[name='checkbox_Cimzia']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Cimzia']").is(":checked"))
        {
            //show the hidden div
            $("#Cimzia").show("fast");
            $("input:radio[name='how_long_cimzia']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver5").hide("fast");
				$("#how_many_years_patient5").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver5").show("fast");
				$("#how_many_years_patient5").hide("fast");
			}
		}
        else
        {       
            //otherwise, hide it 
            $("#Cimzia").hide("fast");
            $("input:radio[name='how_long_cimzia']").attr("disabled", "disabled");

            //enable checkboxes
            $("input:checkbox[name='checkbox_Enbrel']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Humira']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Simponi']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Kineret']").removeAttr("disabled");
        }
        
     });
            
        // If checked
        if ($("input:checkbox[name='checkbox_Cimzia']").is(":checked"))
        {
            //show the hidden div
            $("#Cimzia").show("fast");
            $("input:radio[name='how_long_cimzia']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver5").hide("fast");
				$("#how_many_years_patient5").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver5").show("fast");
				$("#how_many_years_patient5").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Cimzia").hide("fast");
            $("input:radio[name='how_long_cimzia']").attr("disabled", "disabled");
        }
         
      $("input:checkbox[name='checkbox_Enbrel']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Enbrel']").is(":checked"))
        {
            //show the hidden div
            $("#Enbrel").show("fast");
            $("input:radio[name='how_long_enbrel']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");
			
			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver6").hide("fast");
				$("#how_many_years_patient6").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver6").show("fast");
				$("#how_many_years_patient6").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Enbrel").hide("fast");
            $("input:radio[name='how_long_enbrel']").attr("disabled", "disabled");

            //enable checkboxes
            $("input:checkbox[name='checkbox_Cimzia']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Humira']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Simponi']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Kineret']").removeAttr("disabled");
        }
        
     });
            
        // If checked
        if ($("input:checkbox[name='checkbox_Enbrel']").is(":checked"))
        {
            //show the hidden div
            $("#Enbrel").show("fast");
            $("input:radio[name='how_long_enbrel']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver6").hide("fast");
				$("#how_many_years_patient6").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver6").show("fast");
				$("#how_many_years_patient6").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Enbrel").hide("fast");
            $("input:radio[name='how_long_enbrel']").attr("disabled", "disabled");
        }
         
      $("input:checkbox[name='checkbox_Humira']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Humira']").is(":checked"))
        {
            //show the hidden div
            $("#Humira").show("fast");
            $("input:radio[name='how_long_humira']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver7").hide("fast");
				$("#how_many_years_patient7").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver7").show("fast");
				$("#how_many_years_patient7").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Humira").hide("fast");
            $("input:radio[name='how_long_humira']").attr("disabled", "disabled");

            //enable checkboxes
            $("input:checkbox[name='checkbox_Cimzia']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Enbrel']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Simponi']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Kineret']").removeAttr("disabled");
        }
        
     });
             
        // If checked
        if ($("input:checkbox[name='checkbox_Humira']").is(":checked"))
        {
            //show the hidden div
            $("#Humira").show("fast");
            $("input:radio[name='how_long_humira']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver7").hide("fast");
				$("#how_many_years_patient7").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver7").show("fast");
				$("#how_many_years_patient7").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Humira").hide("fast");
            $("input:radio[name='how_long_humira']").attr("disabled", "disabled");
        }

      $("input:checkbox[name='checkbox_Simponi']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Simponi']").is(":checked"))
        {
            //show the hidden div
            $("#Simponi").show("fast");
            $("input:radio[name='how_long_simponi']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver10").hide("fast");
				$("#how_many_years_patient10").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver10").show("fast");
				$("#how_many_years_patient10").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Simponi").hide("fast");
            $("input:radio[name='how_long_simponi']").attr("disabled", "disabled");

            //enable checkboxes
            $("input:checkbox[name='checkbox_Cimzia']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Enbrel']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Humira']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Kineret']").removeAttr("disabled");
        }
        
     });
        
        // If checked
        if ($("input:checkbox[name='checkbox_Simponi']").is(":checked"))
        {
            //show the hidden div
            $("#Simponi").show("fast");
            $("input:radio[name='how_long_simponi']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver10").hide("fast");
				$("#how_many_years_patient10").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver10").show("fast");
				$("#how_many_years_patient10").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Simponi").hide("fast");
            $("input:radio[name='how_long_simponi']").attr("disabled", "disabled");
        }

      $("input:checkbox[name='checkbox_Kineret']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Kineret']").is(":checked"))
        {
            //show the hidden div
            $("#Kineret").show("fast");
            $("input:radio[name='how_long_kineret']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver8").hide("fast");
				$("#how_many_years_patient8").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver8").show("fast");
				$("#how_many_years_patient8").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Kineret").hide("fast");
            $("input:radio[name='how_long_kineret']").attr("disabled", "disabled");

            //enable checkboxes
            $("input:checkbox[name='checkbox_Cimzia']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Enbrel']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Humira']").removeAttr("disabled");
            $("input:checkbox[name='checkbox_Simponi']").removeAttr("disabled");
        }
        
     });
        
        // If checked
        if ($("input:checkbox[name='checkbox_Kineret']").is(":checked"))
        {
            //show the hidden div
            $("#Kineret").show("fast");
            $("input:radio[name='how_long_kineret']").removeAttr("disabled");

            $("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
            $("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");


			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver8").hide("fast");
				$("#how_many_years_patient8").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver8").show("fast");
				$("#how_many_years_patient8").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Kineret").hide("fast");
            $("input:radio[name='how_long_kineret']").attr("disabled", "disabled");
		}
        
      $("input:checkbox[name='checkbox_Methotrexate2']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Methotrexate2']").is(":checked"))
        {
            //show the hidden div
            $("#Methotrexate2").show("fast");
            $("input:radio[name='how_long_methotrexate2']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver9").hide("fast");
				$("#how_many_years_patient9").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver9").show("fast");
				$("#how_many_years_patient9").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Methotrexate2").hide("fast");
            $("input:radio[name='how_long_methotrexate2']").attr("disabled", "disabled");
        }
        
     });
        
        // If checked
        if ($("input:checkbox[name='checkbox_Methotrexate2']").is(":checked"))
        {
            //show the hidden div
            $("#Methotrexate2").show("fast");
            $("input:radio[name='how_long_methotrexate2']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver9").hide("fast");
				$("#how_many_years_patient9").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver9").show("fast");
				$("#how_many_years_patient9").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Methotrexate2").hide("fast");
            $("input:radio[name='how_long_methotrexate2']").attr("disabled", "disabled");
        }
             
    /* could not find checkbox_Prednisone element on the page. Keeping it as is. */
      $("#checkbox_Prednisone").click(function(){
        
        // If checked
        if ($("#checkbox_Prednisone").is(":checked"))
        {
            //show the hidden div
            $("#Prednisone").show("fast");
        }
        else
        {       
            //otherwise, hide it 
            $("#Prednisone").hide("fast");
        }
        
     });
         
        // If checked
        if ($("#checkbox_Prednisone").is(":checked"))
        {
            //show the hidden div
            $("#Prednisone").show("fast");
        }
        else
        {       
            //otherwise, hide it 
            $("#Prednisone").hide("fast");
        }
        
     $("input:checkbox[name='checkbox_Arava']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Arava']").is(":checked"))
        {
            //show the hidden div
            $("#Arava").show("fast");
            $("input:radio[name='how_long_arava']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver12").hide("fast");
				$("#how_many_years_patient12").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver12").show("fast");
				$("#how_many_years_patient12").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Arava").hide("fast");
            $("input:radio[name='how_long_arava']").attr("disabled", "disabled");
        }
        
     });
         
        // If checked
        if ($("input:checkbox[name='checkbox_Arava']").is(":checked"))
        {
            //show the hidden div
            $("#Arava").show("fast");
            $("input:radio[name='how_long_arava']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver12").hide("fast");
				$("#how_many_years_patient12").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver12").show("fast");
				$("#how_many_years_patient12").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Arava").hide("fast");
            $("input:radio[name='how_long_arava']").attr("disabled", "disabled");
        }
        
      $("input:checkbox[name='checkbox_Azulfidine']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Azulfidine']").is(":checked"))
        {
            //show the hidden div
            $("#Azulfidine").show("fast");
            $("input:radio[name='how_long_azulfidine']").removeAttr("disabled");
			
			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver13").hide("fast");
				$("#how_many_years_patient13").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver13").show("fast");
				$("#how_many_years_patient13").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Azulfidine").hide("fast");
            $("input:radio[name='how_long_azulfidine']").attr("disabled", "disabled");
        }
        
     });
     
        // If checked
        if ($("input:checkbox[name='checkbox_Azulfidine']").is(":checked"))
        {
            //show the hidden div
            $("#Azulfidine").show("fast");
            $("input:radio[name='how_long_azulfidine']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver13").hide("fast");
				$("#how_many_years_patient13").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver13").show("fast");
				$("#how_many_years_patient13").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Azulfidine").hide("fast");
            $("input:radio[name='how_long_azulfidine']").attr("disabled", "disabled");
        }
        
      $("input:checkbox[name='checkbox_Methotrexate3']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Methotrexate3']").is(":checked"))
        {
            //show the hidden div
            $("#Methotrexate3").show("fast");
            $("input:radio[name='how_long_methotrexate3']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver14").hide("fast");
				$("#how_many_years_patient14").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver14").show("fast");
				$("#how_many_years_patient14").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Methotrexate3").hide("fast");
            $("input:radio[name='how_long_methotrexate3']").attr("disabled", "disabled");
        }
        
     });
         
        // If checked
        if ($("input:checkbox[name='checkbox_Methotrexate3']").is(":checked"))
        {
            //show the hidden div
            $("#Methotrexate3").show("fast");
            $("input:radio[name='how_long_methotrexate3']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver14").hide("fast");
				$("#how_many_years_patient14").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver14").show("fast");
				$("#how_many_years_patient14").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Methotrexate3").hide("fast");
            $("input:radio[name='how_long_methotrexate3']").attr("disabled", "disabled");
        }
        
     $("input:checkbox[name='checkbox_Plaquenil']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Plaquenil']").is(":checked"))
        {
            //show the hidden div
            $("#Plaquenil").show("fast");
            $("input:radio[name='how_long_plaquenil']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver15").hide("fast");
				$("#how_many_years_patient15").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver15").show("fast");
				$("#how_many_years_patient15").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Plaquenil").hide("fast");
            $("input:radio[name='how_long_plaquenil']").attr("disabled", "disabled");
        }
        
     });
         
        // If checked
        if ($("input:checkbox[name='checkbox_Plaquenil']").is(":checked"))
        {
            //show the hidden div
            $("#Plaquenil").show("fast");
            $("input:radio[name='how_long_plaquenil']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver15").hide("fast");
				$("#how_many_years_patient15").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver15").show("fast");
				$("#how_many_years_patient15").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Plaquenil").hide("fast");
            $("input:radio[name='how_long_plaquenil']").attr("disabled", "disabled");
        }
        
      $("input:checkbox[name='checkbox_Ridaura']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='checkbox_Ridaura']").is(":checked"))
        {
            //show the hidden div
            $("#Ridaura").show("fast");
            $("input:radio[name='how_long_ridaura']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver16").hide("fast");
				$("#how_many_years_patient16").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver16").show("fast");
				$("#how_many_years_patient16").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Ridaura").hide("fast");
            $("input:radio[name='how_long_ridaura']").attr("disabled", "disabled");
        }
        
     });
             
        // If checked
        if ($("input:checkbox[name='checkbox_Ridaura']").is(":checked"))
        {
            //show the hidden div
            $("#Ridaura").show("fast");
            $("input:radio[name='how_long_ridaura']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver16").hide("fast");
				$("#how_many_years_patient16").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked"))
			{
				$("#how_many_years_caregiver16").show("fast");
				$("#how_many_years_patient16").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Ridaura").hide("fast");
            $("input:radio[name='how_long_ridaura']").attr("disabled", "disabled");
        }
        
        /* could not find checkbox_Prednisone2 element on the page. Keeping it as is. */
       $("#checkbox_Prednisone2").click(function(){
        
        // If checked
        if ($("#checkbox_Prednisone2").is(":checked"))
        {
            //show the hidden div
            $("#Prednisone2").show("fast");
        }
        else
        {       
            //otherwise, hide it 
            $("#Prednisone2").hide("fast");
        }
        
     });
             
        // If checked
        if ($("#checkbox_Prednisone2").is(":checked"))
        {
            //show the hidden div
            $("#Prednisone2").show("fast");
        }
        else
        {       
            //otherwise, hide it 
            $("#Prednisone2").hide("fast");
        }
        
     $("input:checkbox[name='otc_nonpresc']").click(function(){
        
        // If checked
        if ($("input:checkbox[name='otc_nonpresc']").is(":checked"))
        {
            //show the hidden div
            $("#Over_the_counter").show("fast");
            $("input:radio[name='how_long_over_the_counter']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver18").hide("fast");
				$("#how_many_years_patient18").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver18").show("fast");
				$("#how_many_years_patient18").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Over_the_counter").hide("fast");
            $("input:radio[name='how_long_over_the_counter']").attr("disabled", "disabled");
        }
        
     });
     
        // If checked
        if ($("input:checkbox[name='otc_nonpresc']").is(":checked"))
        {
            //show the hidden div
            $("#Over_the_counter").show("fast");
            $("input:radio[name='how_long_over_the_counter']").removeAttr("disabled");

			if ($("input:radio[value='10016015']").is(":checked")||($("input:radio[value='14000052']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver18").hide("fast");
				$("#how_many_years_patient18").show("fast");
			}
			if ($("input:radio[value='10016018']").is(":checked")||($("input:radio[value='14000053']").is(":checked") && !($("input:radio[value='10016015']").is(":checked") || $("input:radio[value='10016018']").is(":checked"))))
			{
				$("#how_many_years_caregiver18").show("fast");
				$("#how_many_years_patient18").hide("fast");
			}
        }
        else
        {       
            //otherwise, hide it 
            $("#Over_the_counter").hide("fast");
            $("input:radio[name='how_long_over_the_counter']").attr("disabled", "disabled");
        }
        
        $("input:radio[name='orencia_infusion_date']").click(function(){
         if ($("input:radio[value='10006019']").is(":checked") || $("input:radio[value='30004645']").is(":checked"))
         {

            $("#orencia_calendar").show("fast");
            document.getElementById("datepicker").disabled = false;
            document.getElementById("datepicker<15008959,OPEN>").disabled = false;
         }
         else
        {
            $("#orencia_calendar").hide("fast");
            document.getElementById("datepicker").disabled = true;
            document.getElementById("datepicker<15008959,OPEN>").disabled = true;
        }
    });
    
    $("input:radio[name='doctor_discussed']").click(function(){
         $.display_Medications();
    });
    
        
        $("input:checkbox[name='checkbox_tasks']").click(function(){
         var tasks_count = 0;
         var opening_jar = document.getElementById("check-opening-a-jar<15008958,10001002>");
         var turning_key = document.getElementById("check-turning-a-key<15008956,10001002>");
         var bending_down = document.getElementById("check-bending-down<15008964,10001002>");
         var fastening_button = document.getElementById("check-fastening-a-button<15008968,10001002>");
         var brushing_teeth = document.getElementById("check-brushing-teeth<15008946,10001002>");
         var using_knife = document.getElementById("check-using-a-knife<15008947,10001002>");
         var climbing_stars = document.getElementById("check-climbing-stairs<15008969,10001002>");
         var getting_outof_bed = document.getElementById("check-getting-out-of-bed<15008967,10001002>");
         var lifting = document.getElementById("check-lifting<15008966,10001002>");
         var shaving = document.getElementById("check-shaving<15008957,10001002>");
         var dont_find_any = document.getElementById("check-i-do-not-find<15008965,10001002>");
         
         if(dont_find_any.checked)
         {
            opening_jar.disabled = true;
            turning_key.disabled = true;
            bending_down.disabled = true;
            fastening_button.disabled = true;
            fastening_button.disabled = true;
            brushing_teeth.disabled = true;
            using_knife.disabled = true;
            climbing_stars.disabled = true;
            getting_outof_bed.disabled = true;
            lifting.disabled = true;
            shaving.disabled = true;
         }
         else
         {
            opening_jar.disabled = false;
            turning_key.disabled = false;
            bending_down.disabled = false;
            fastening_button.disabled = false;
            fastening_button.disabled = false;
            brushing_teeth.disabled = false;
            using_knife.disabled = false;
            climbing_stars.disabled = false;
            getting_outof_bed.disabled = false;
            lifting.disabled = false;
            shaving.disabled = false;
         }
         
         if(!dont_find_any.checked)
         {
             for (i = 0; i < document.forms[0].checkbox_tasks.length; i++)
             {
                    
                    if (document.forms[0].checkbox_tasks[i].checked)
                    {
                            dont_find_any.disabled = true;
                            tasks_count++;
                    }
             }
            if(tasks_count >= 3)
            {
                for (i = 0; i < document.forms[0].checkbox_tasks.length; i++)
                {
                    if(!document.forms[0].checkbox_tasks[i].checked)
                    {
                      document.forms[0].checkbox_tasks[i].disabled = true;
                    }
                }
            }
         }
         if(tasks_count == 0)
         {
            dont_find_any.disabled = false;
         }

    });
    
    $("input:checkbox[name='medications_ra']").click(function(){
         var actemra = document.getElementById("check-actemra<15008943,10001002>");
         var orencia = document.getElementById("check-ra-orencia<15008953,10001002>");
         var cimzia = document.getElementById("check-cimzia<15008948,10001002>");
         var remicade = document.getElementById("check-remicade<15008952,10001002>");
         var enbrel = document.getElementById("check-enbrel<15008949,10001002>");
         var rituxan = document.getElementById("check-rituxan<15008951,10001002>");
         var humira = document.getElementById("check-humira<15008950,10001002>");
         var simponi = document.getElementById("check-simponi<15008970,10001002>");
         var kineret = document.getElementById("check-kineret<15008955,10001002>");
         var none = document.getElementById("check-none-at-this-time<15008954,10001002>");
         
         if(none.checked)
         {
            actemra.disabled = true;
            orencia.disabled = true;
            cimzia.disabled = true;
            remicade.disabled = true;
            enbrel.disabled = true;
            rituxan.disabled = true;
            humira.disabled = true;
            simponi.disabled = true;
            kineret.disabled = true;
         }
         else
         {
            actemra.disabled = false;
            orencia.disabled = false;
            cimzia.disabled = false;
            remicade.disabled = false;
            enbrel.disabled = false;
            rituxan.disabled = false;
            humira.disabled = false;
            simponi.disabled = false;
            kineret.disabled = false;
            
            var none_enable = true;
            
            for (i = 0; i < document.forms[0].medications_ra.length; i++)
             {
                    
                    if (document.forms[0].medications_ra[i].checked)
                    {
                            none.disabled = true;
                            none_enable = false;
                            break;
                            
                    }
             }
             
             if(none_enable)
             {
                none.disabled = false;
             }
         }
         
    });
        
        });

(function ($)
{
    $.RA_Patient_Questions=function RA_Patient_Questions(){
        
        $("#q1_patient").show("fast");
		$("#q1_caregiver").hide("fast");
		$("#q1_jia").hide("fast");
		$("#q1_jia_patient").hide("fast");
		$("#q1_copay_caregiver").hide("fast");
		$("#q1_copay_jia").hide("fast");
		$("#q3_patient").show("fast");
		$("#q3_caregiver").hide("fast");
		$("#q4_patient").show("fast");
		$("#q4_caregiver").hide("fast");
		$("#q4_copay_caregiver").hide("fast");
		$("#infusion_patient").show("fast");
		$("#infusion_caregiver").hide("fast");
        $("#infusion_caregiver_jia").hide("fast");
        $("#infusion_patient_jia").hide("fast");
        $("#injection_patient").show("fast");
        $("#injection_caregiver").hide("fast");
        $("#injection_patient_jia").hide("fast");
        $("#injection_caregiver_jia").hide("fast");
		$("#oral_patient").show("fast");
		$("#oral_caregiver").hide("fast");
		$("#oral_caregiver_jia").hide("fast");
		$("#oral_patient_jia").hide("fast");
        $("#prednisone_ra").show("fast");
		$("#prednisone_ra_caregiver").hide("fast");
		$("#prednisone_jia").hide("fast");
		$("#prednisone_jia_patient").hide("fast");
    }
    
    $.RA_Caregiver_Questions=function RA_Caregiver_Questions(){
    
        $("#q1_patient").hide("fast");
		$("#q1_caregiver").show("fast");
		$("#q1_jia").hide("fast");
		$("#q1_jia_patient").hide("fast");
		$("#q1_copay_caregiver").show("fast");
		$("#q1_copay_jia").hide("fast");
		$("#q3_patient").hide("fast");
		$("#q3_caregiver").show("fast");
		$("#q4_patient").hide("fast");
		$("#q4_caregiver").show("fast");
		$("#q4_copay_caregiver").show("fast");
		$("#infusion_patient").hide("fast");
		$("#infusion_caregiver").show("fast");
        $("#infusion_caregiver_jia").hide("fast");
        $("#infusion_patient_jia").hide("fast");
        $("#injection_patient").hide("fast");
        $("#injection_caregiver").show("fast");
        $("#injection_patient_jia").hide("fast");
        $("#injection_caregiver_jia").hide("fast");
		$("#oral_patient").hide("fast");
		$("#oral_caregiver").show("fast");
		$("#oral_caregiver_jia").hide("fast");
		$("#oral_patient_jia").hide("fast");
        $("#prednisone_ra").hide("fast");
		$("#prednisone_ra_caregiver").show("fast");
		$("#prednisone_jia").hide("fast");
		$("#prednisone_jia_patient").hide("fast");
    }
    
    $.JIA_Patient_Questions=function JIA_Patient_Questions(){
    
        $("#q1_patient").hide("fast");
		$("#q1_caregiver").hide("fast");
		$("#q1_jia").hide("fast");
		$("#q1_jia_patient").show("fast");
		$("#q1_copay_caregiver").hide("fast");
		$("#q1_copay_jia").hide("fast");
		$("#q3_patient").show("fast");
		$("#q3_caregiver").hide("fast");
		$("#q4_patient").show("fast");
		$("#q4_caregiver").hide("fast");
		$("#q4_copay_caregiver").hide("fast");
		$("#infusion_patient").hide("fast");
		$("#infusion_caregiver").hide("fast");
        $("#infusion_caregiver_jia").hide("fast");
        $("#infusion_patient_jia").show("fast");
        $("#injection_patient").hide("fast");
        $("#injection_caregiver").hide("fast");
        $("#injection_patient_jia").show("fast");
        $("#injection_caregiver_jia").hide("fast");
		$("#oral_patient").hide("fast");
		$("#oral_caregiver").hide("fast");
		$("#oral_caregiver_jia").hide("fast");
		$("#oral_patient_jia").show("fast");
        $("#prednisone_ra").hide("fast");
		$("#prednisone_ra_caregiver").hide("fast");
		$("#prednisone_jia").hide("fast");
		$("#prednisone_jia_patient").show("fast");
    }
    
    $.JIA_Caregiver_Questions=function JIA_Caregiver_Questions(){
    
        $("#q1_patient").hide("fast");
		$("#q1_caregiver").hide("fast");
		$("#q1_jia").show("fast");
		$("#q1_jia_patient").hide("fast");
		$("#q1_copay_caregiver").hide("fast");
		$("#q1_copay_jia").show("fast");
		$("#q3_patient").hide("fast");
		$("#q3_caregiver").show("fast");
		$("#q4_patient").hide("fast");
		$("#q4_caregiver").show("fast");
		$("#q4_copay_caregiver").show("fast");
		$("#infusion_patient").hide("fast");
		$("#infusion_caregiver").hide("fast");
        $("#infusion_caregiver_jia").show("fast");
        $("#infusion_patient_jia").hide("fast");
        $("#injection_patient").hide("fast");
        $("#injection_caregiver").hide("fast");
        $("#injection_patient_jia").hide("fast");
        $("#injection_caregiver_jia").show("fast");
		$("#oral_patient").hide("fast");
		$("#oral_caregiver").hide("fast");
		$("#oral_caregiver_jia").show("fast");
		$("#oral_patient_jia").hide("fast");
        $("#prednisone_ra").hide("fast");
		$("#prednisone_ra_caregiver").hide("fast");
		$("#prednisone_jia").show("fast");
		$("#prednisone_jia_patient").hide("fast");
    }
    
    
    //function added for enable/disable dynamic questions
    $.en_disDynamicQuestions=function en_disDynamicQuestions(bEnable){
    if(bEnable)
    {
    
        var infcheck = $("input:checkbox[name='infusion']").is(":checked");
        var injcheck = $("input:checkbox[name='injection']").is(":checked");
        var oralcheck = $("input:checkbox[name='oral']").is(":checked");
        var orencia = $("input:checkbox[name='checkbox_Orencia']").is(":checked");
        var disable = true;  
                
        if(infcheck || injcheck || oralcheck)
        {
            disable = false;
        }
        if(infcheck && orencia)
        {
            disable = true;
        }
        
        if(disable)
        {
            document.getElementById("physician-type<10002329,ID>").disabled = true;
            document.getElementById("physician-name").disabled = true;
            $("input:checkbox[name='checkbox_tasks']").attr("disabled", "disabled");
            $("input:radio[name='how_satisfied']").attr("disabled", "disabled");
            $("input:radio[name='doctor_discussed']").attr("disabled", "disabled");
            $("input:checkbox[name='medications_ra']").attr("disabled", "disabled");
            $("input:checkbox[name='medications_jia']").attr("disabled", "disabled");
            $("input:radio[name='next_appt_ra']").attr("disabled", "disabled");
            $("input:radio[name='next_appt_jia']").attr("disabled", "disabled");
            $("input:radio[name='rate_important']").attr("disabled", "disabled");
            if(infcheck && orencia)
            {
                $("input:radio[name='orencia_infusion_date']").removeAttr("disabled");
            }
            else
            {  
                $("input:radio[name='orencia_infusion_date']").attr("disabled", "disabled"); 
            }
        }
        else
        {
            document.getElementById("physician-type<10002329,ID>").disabled = false;
            $("input:checkbox[name='checkbox_tasks']").removeAttr("disabled");
            $("input:radio[name='how_satisfied']").removeAttr("disabled");
            $("input:radio[name='doctor_discussed']").removeAttr("disabled"); 
            $("input:radio[name='rate_important']").removeAttr("disabled"); 
            if (document.getElementById("doctor-discussed-yes<15008962,10001001>").checked)
            {
                if ($("input:radio[value='14000052']").is(":checked"))
                {
                    $("input:checkbox[name='medications_ra']").removeAttr("disabled");
                    $("input:radio[name='next_appt_ra']").removeAttr("disabled");
                }
                if ($("input:radio[value='14000053']").is(":checked"))
                {
                    $("input:checkbox[name='medications_jia']").removeAttr("disabled");
                    $("input:radio[name='next_appt_jia']").removeAttr("disabled");
                }
            }
            
        }
    }
    else
    {
        //onload of the page disable all dynamic entries
        document.getElementById("physician-type<10002329,ID>").disabled = true;
        document.getElementById("physician-name").disabled = true;
        document.getElementById("datepicker").disabled = true;
        document.getElementById("datepicker<15008959,OPEN>").disabled = true;
        $("input:checkbox[name='checkbox_tasks']").attr("disabled", "disabled");
        $("input:radio[name='how_satisfied']").attr("disabled", "disabled");
        $("input:radio[name='doctor_discussed']").attr("disabled", "disabled");
        $("input:checkbox[name='medications_ra']").attr("disabled", "disabled");
        $("input:checkbox[name='medications_jia']").attr("disabled", "disabled");
        $("input:radio[name='next_appt_ra']").attr("disabled", "disabled");
        $("input:radio[name='next_appt_jia']").attr("disabled", "disabled");
        $("input:radio[name='orencia_infusion_date']").attr("disabled", "disabled");
        $("input:radio[name='rate_important']").attr("disabled", "disabled");
    }
    
    }
    //function ended

    
	$.en_disInfusion=function en_disInfusion(bEnable){
	    if(($("input:radio[value='14000053']").is(":checked")) && ($("input:radio[value='10016018']").is(":checked")))
	    {
	        $("input:checkbox[name='check_oral_other']").removeAttr("disabled");
	    }
	    else
	    {
	        $("input:checkbox[name='check_oral_other']").attr("disabled", "disabled");
	    }	
		if(bEnable) 
		{
			if(!($("input:radio[value='14000053']").is(":checked")))
			{
				//$("input:checkbox[name='checkbox_Methotrexate']").removeAttr("disabled");
				$("input:checkbox[name='checkbox_Remicade']").removeAttr("disabled");
				$("input:checkbox[name='checkbox_Rituxan']").removeAttr("disabled");
				$("input:checkbox[name='checkbox_Actemra']").removeAttr("disabled");
			}
			$("input:checkbox[name='checkbox_Methotrexate']").removeAttr("disabled");
			$("input:checkbox[name='checkbox_Orencia']").removeAttr("disabled");
			$("input:checkbox[name='infusion_dont_know']").removeAttr("disabled");
		}
		else
		{
			$("input:checkbox[name='checkbox_Methotrexate']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Orencia']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Remicade']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Rituxan']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Actemra']").attr("disabled", "disabled");
			$("input:checkbox[name='infusion_dont_know']").attr("disabled", "disabled");
		}
	}
	
	$.en_disInjection=function(bEnable){
	    if(($("input:radio[value='14000053']").is(":checked")) && ($("input:radio[value='10016018']").is(":checked")))
	    {
	        $("input:checkbox[name='check_oral_other']").removeAttr("disabled");
	    }
	    else
	    {
	        $("input:checkbox[name='check_oral_other']").attr("disabled", "disabled");
	    }		
		if(bEnable){
			if(!($("input:radio[value='14000053']").is(":checked")))
			{
				$("input:checkbox[name='checkbox_Cimzia']").removeAttr("disabled");			
				$("input:checkbox[name='checkbox_Kineret']").removeAttr("disabled");			
				$("input:checkbox[name='checkbox_Simponi']").removeAttr("disabled");
			}
			$("input:checkbox[name='checkbox_Enbrel']").removeAttr("disabled");
			$("input:checkbox[name='checkbox_Humira']").removeAttr("disabled");
			$("input:checkbox[name='checkbox_Methotrexate2']").removeAttr("disabled");			
			$("input:checkbox[name='injection_dont_know']").removeAttr("disabled");
		}
		else
		{
			$("input:checkbox[name='checkbox_Cimzia']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Enbrel']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Humira']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Kineret']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Methotrexate2']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Simponi']").attr("disabled", "disabled");
			$("input:checkbox[name='injection_dont_know']").attr("disabled", "disabled");
		}
	}
	
	$.en_disOral=function(bEnable){
		if(bEnable){
		    //enable Riduara&Arava only for RA
			if(!($("input:radio[value='14000053']").is(":checked")))
			{
				$("input:checkbox[name='checkbox_Ridaura']").removeAttr("disabled");
				$("input:checkbox[name='checkbox_Arava']").removeAttr("disabled");
			}
			//enable Oral Other only for JIA
			else
			{
			  //disabling Arava for JIA selection  
			  $("input:checkbox[name='checkbox_Arava']").attr("disabled", "disabled");  
			  if ($("input:radio[value='10016018']").is(":checked"))
			  {  
			    //enable Oral Other for JIA/Caregiver
			    $("input:checkbox[name='check_oral_other']").removeAttr("disabled");
			  }
			  else
			  {
			    $("input:checkbox[name='check_oral_other']").attr("disabled", "disabled");
			  }
			}
			//enable for both RA & JIA
			$("input:checkbox[name='checkbox_Azulfidine']").removeAttr("disabled");
			$("input:checkbox[name='checkbox_Methotrexate3']").removeAttr("disabled");	
			$("input:checkbox[name='checkbox_Plaquenil']").removeAttr("disabled");		
			$("input:checkbox[name='otc_nonpresc']").removeAttr("disabled");
			$("input:checkbox[name='check_oral_dont_know']").removeAttr("disabled");	
		}
		//disable if Oral is not checked
		else{
			$("input:checkbox[name='checkbox_Arava']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Azulfidine']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Methotrexate3']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Plaquenil']").attr("disabled", "disabled");
			$("input:checkbox[name='checkbox_Ridaura']").attr("disabled", "disabled");
			$("input:checkbox[name='otc_nonpresc']").attr("disabled", "disabled");
			$("input:checkbox[name='check_oral_other']").attr("disabled", "disabled");
			$("input:checkbox[name='check_oral_dont_know']").attr("disabled", "disabled");	
		}
	}
	
	$.disable_checkbox=function(chkname){
		//disable for LNP
		$("input:checkbox[name='"+chkname+"']").attr("disabled", "disabled");
	}
	
	$.enable_checkbox=function(chkname){
		//enable for LNP
		$("input:checkbox[name='"+chkname+"']").removeAttr("disabled");
	}
	
	$.show_Hide_Questions=function show_Hide_Questions(){
	var infcheck = $("input:checkbox[name='infusion']").is(":checked");
    var injcheck = $("input:checkbox[name='injection']").is(":checked");
    var oralcheck = $("input:checkbox[name='oral']").is(":checked");
    var orencia = $("input:checkbox[name='checkbox_Orencia']").is(":checked");
    var showHide = false;
            
    if(!(infcheck || injcheck || oralcheck))
    {
        showHide = true;
    }
    //hide additional questions when both orencia&infusion selected
    if(infcheck && orencia)
    {
        showHide = true;
    }
    
    //hiding dynamic questions when infusion/injection/oral admin group is not selected
    if(showHide)
    {
        $("#physician_type").hide("fast");
        document.getElementById("physician-type<10002329,ID>").disabled = true;
        $("#physician_name").hide("fast");
        document.getElementById("physician-name").disabled = true;
        $("#tasks").hide("fast");
        $("#medications_considering").hide("fast");
        $("#medications_considering_jia").hide("fast");
        $("#rate_important_life").hide("fast");
    }
    else
    {
        if ($("input:radio[value='10016015']").is(":checked"))
        {
            $.hide_Caregiver_Questions();
        }
        if ($("input:radio[value='10016018']").is(":checked"))
        {
            $.hide_Patient_Questions();
        }
    }
    
    }
    
    $.hide_Caregiver_Questions=function hide_Caregiver_Questions(){
        if(($("input:radio[value='14000052']").is(":checked")))
        {
            $("#physician_type").show("fast");
            $("#q2_caregiver").hide("fast");
            $("#tasks").show("fast");
            $("#tasks_patient").show("fast");
            $("#tasks_caregiver").hide("fast");
            $("#satisfied_ra_patient").show("fast");
            $("#satisfied_ra_caregiver").hide("fast");
            $("#satisfied_jia_patient").hide("fast");
            $("#satisfied_jia_caregiver").hide("fast");
            $("#doctor_discussed_ra_patient").show("fast");
            $("#doctor_discussed_ra_caregiver").hide("fast");
            $("#doctor_discussed_jia_patient").hide("fast");
            $("#doctor_discussed_jia_caregiver").hide("fast");
            $("#rate_important_life").show("fast");
            $("#patient-rate-important-ra").show("fast");
            $("#caregiver-rate-important-ra").hide("fast");
            $("#caregiver-rate-important-jia").hide("fast");
            $("#patient-rate-important-jia").hide("fast");
            
            $.RA_Patient_Questions();
            
            var physician = document.getElementById("physician-type<10002329,ID>");
            physician.disabled = false;
            var physicianName = document.getElementById("physician-name");
            physicianName.disabled = false;
            
            if(physician.options[physician.selectedIndex].text == "Rheumatologist")
            {
                $("#physician_name").show("fast");
                physicianName.disabled = false;
            }
            else
            {
                physicianName.disabled = true;
                $("#physician_name").hide("fast");
            }
        }
        if(($("input:radio[value='14000053']").is(":checked")))
        {
            $("#physician_type").show("fast");
            $("#q2_caregiver").hide("fast");
            $("#tasks").show("fast");
            $("#tasks_patient").show("fast");
            $("#tasks_caregiver").hide("fast");
            $("#satisfied_ra_patient").hide("fast");
            $("#satisfied_ra_caregiver").hide("fast");
            $("#satisfied_jia_patient").show("fast");
            $("#satisfied_jia_caregiver").hide("fast");
            $("#doctor_discussed_ra_patient").hide("fast");
            $("#doctor_discussed_ra_caregiver").hide("fast");
            $("#doctor_discussed_jia_patient").show("fast");
            $("#doctor_discussed_jia_caregiver").hide("fast");
            $("#rate_important_life").show("fast");
            $("#patient-rate-important-ra").hide("fast");
            $("#caregiver-rate-important-ra").hide("fast");
            $("#caregiver-rate-important-jia").hide("fast");
            $("#patient-rate-important-jia").show("fast");
            
            $.JIA_Patient_Questions();
            
            var physician = document.getElementById("physician-type<10002329,ID>");
            physician.disabled = false;
            var physicianName = document.getElementById("physician-name");
            physicianName.disabled = false;
            
            if(physician.options[physician.selectedIndex].text == "Rheumatologist")
            {
                $("#physician_name").show("fast");
                physicianName.disabled = false;
            }
            else
            {
                physicianName.disabled = true;
                $("#physician_name").hide("fast");
            }
        }
        
        $("#task-do-not-find").html("&nbsp;I do not find any of these<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tasks challenging");
        
        //display medications for patient selection
        $.display_Medications();
        
    }
    
    $.hide_Patient_Questions=function hide_Patient_Questions(){
        if(($("input:radio[value='14000052']").is(":checked")))
        {
            $("#physician_type").show("fast");
	        $("#q2_patient").hide("fast");
	        $("#tasks").show("fast");
            $("#tasks_patient").hide("fast");
            $("#tasks_caregiver").show("fast");
            $("#satisfied_ra_patient").hide("fast");
            $("#satisfied_ra_caregiver").show("fast");
            $("#satisfied_jia_patient").hide("fast");
            $("#satisfied_jia_caregiver").hide("fast");
            $("#doctor_discussed_ra_patient").hide("fast");
            $("#doctor_discussed_ra_caregiver").show("fast");
            $("#doctor_discussed_jia_patient").hide("fast");
            $("#doctor_discussed_jia_caregiver").hide("fast");
            $("#rate_important_life").show("fast");
            $("#patient-rate-important-ra").hide("fast");
            $("#caregiver-rate-important-jia").hide("fast");
            $("#caregiver-rate-important-ra").show("fast");
            $("#patient-rate-important-jia").hide("fast");
            
            $.RA_Caregiver_Questions();
            
            var physician = document.getElementById("physician-type<10002329,ID>");
            physician.disabled = false;
            var physicianName = document.getElementById("physician-name");
            physicianName.disabled = false;
            
            if(physician.options[physician.selectedIndex].text == "Rheumatologist")
            {
                $("#physician_name").show("fast");
                physicianName.disabled = false;
            }
            else
            {
                physicianName.disabled = true;
                $("#physician_name").hide("fast");
            }
        }
        if(($("input:radio[value='14000053']").is(":checked")))
        {
            $("#physician_type").show("fast");
	        $("#q2_patient").hide("fast");
	        $("#tasks").show("fast");
            $("#tasks_patient").hide("fast");
            $("#tasks_caregiver").show("fast");
            $("#satisfied_ra_patient").hide("fast");
            $("#satisfied_ra_caregiver").hide("fast");
            $("#satisfied_jia_patient").hide("fast");
            $("#satisfied_jia_caregiver").show("fast");
            $("#doctor_discussed_ra_patient").hide("fast");
            $("#doctor_discussed_ra_caregiver").hide("fast");
            $("#doctor_discussed_jia_patient").hide("fast");
            $("#doctor_discussed_jia_caregiver").show("fast");
            $("#rate_important_life").show("fast");
            $("#patient-rate-important-ra").hide("fast");
            $("#caregiver-rate-important-jia").show("fast");
            $("#caregiver-rate-important-ra").hide("fast");
            $("#patient-rate-important-jia").hide("fast");
            
            $.JIA_Caregiver_Questions();
            
            var physician = document.getElementById("physician-type<10002329,ID>");
            physician.disabled = false;
            var physicianName = document.getElementById("physician-name");
            physicianName.disabled = false;
            
            if(physician.options[physician.selectedIndex].text == "Rheumatologist")
            {
                $("#physician_name").show("fast");
                physicianName.disabled = false;
            }
            else
            {
                physicianName.disabled = true;
                $("#physician_name").hide("fast");
            }
        }
        
        $("#task-do-not-find").html("&nbsp;The patient does not find any of these<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tasks challenging");
        
        //display medications for jia and caregiver conditions
        $.display_Medications();
    }
	
	$.display_Medications=function display_Medications(){
	    if (document.getElementById("doctor-discussed-yes<15008962,10001001>").checked)
         {
            if(($("input:radio[value='14000053']").is(":checked")))
            {
                $("input:checkbox[name='medications_ra']").attr("disabled", "disabled");
                $("input:checkbox[name='medications_jia']").removeAttr("disabled");
                $("input:radio[name='next_appt_ra']").attr("disabled", "disabled");
                $("input:radio[name='next_appt_jia']").removeAttr("disabled");
                
                if($("input:radio[value='10016018']").is(":checked"))
                {
                    $("#medications_considering").hide("fast");
                    $("#medications_considering_jia").show("fast");
                    $("#medications_considering_jia_caregiver").show("fast");
                    $("#medications_considering_jia_patient").hide("fast");
                    $("#next_appt_jia_patient").hide("fast");
                    $("#next_appt_jia_caregiver").show("fast");
                    $("#doctor_appointment_jia_caregiver").show("fast");
                    $("#doctor_appointment_jia_patient").hide("fast");
                }
                if($("input:radio[value='10016015']").is(":checked"))
                {
                    $("#medications_considering").hide("fast");
                    $("#medications_considering_jia").show("fast");
                    $("#medications_considering_jia_caregiver").hide("fast");
                    $("#medications_considering_jia_patient").show("fast");
                    $("#next_appt_jia_patient").show("fast");
                    $("#next_appt_jia_caregiver").hide("fast");
                    $("#doctor_appointment_jia_patient").show("fast");
                    $("#doctor_appointment_jia_caregiver").hide("fast");
                }
            }
            
            if(($("input:radio[value='14000052']").is(":checked")))
            {
                $("input:checkbox[name='medications_jia']").attr("disabled", "disabled");
                $("input:checkbox[name='medications_ra']").removeAttr("disabled");
                $("input:radio[name='next_appt_ra']").removeAttr("disabled");
                $("input:radio[name='next_appt_jia']").attr("disabled", "disabled");
                
                if($("input:radio[value='10016015']").is(":checked"))
                {
                    $("#medications_considering").show("fast");
                    $("#medications_considering_patient").show("fast");
                    $("#medications_considering_caregiver").hide("fast");
                    $("#next_appt_patient").show("fast");
                    $("#next_appt_caregiver").hide("fast");
                    $("#medications_considering_jia").hide("fast");
                }
                
                if($("input:radio[value='10016018']").is(":checked"))
                {
                    $("#medications_considering").show("fast");
                    $("#medications_considering_patient").hide("fast");
                    $("#medications_considering_caregiver").show("fast");
                    $("#next_appt_patient").hide("fast");
                    $("#next_appt_caregiver").show("fast");
                    $("#medications_considering_jia").hide("fast");
                }
            }
         }
         else
        {
            $("#medications_considering").hide("fast");
            $("#medications_considering_jia").hide("fast");
            $("#medications_considering_patient").hide("fast");
            $("#medications_considering_caregiver").hide("fast");
            
            $("input:checkbox[name='medications_ra']").attr("disabled", "disabled");
            $("input:checkbox[name='medications_jia']").attr("disabled", "disabled");
            $("input:radio[name='next_appt_ra']").attr("disabled", "disabled");
            $("input:radio[name='next_appt_jia']").attr("disabled", "disabled");
            
        }
	}
}
)(jQuery);

function Disab (val) 
{
  
    info_form=document.forms[0];
    if(val=="1")
    {
        info_form.child_jia[0].disabled=true;
        info_form.child_jia[1].disabled=true;
        info_form.child_jia[2].disabled=true;
        info_form.rheumatoid_arthritis[0].disabled=false;
        info_form.rheumatoid_arthritis[1].disabled=false;
        info_form.rheumatoid_arthritis[2].disabled=false;
        info_form.requestinfo[1].checked=false;
        info_form.usertype[0].disabled=false;
    }
    
    if(val=="2")
    {
        info_form.child_jia[0].disabled=false;
        info_form.child_jia[1].disabled=false;
        info_form.child_jia[2].disabled=false;
        info_form.rheumatoid_arthritis[0].disabled=true;
        info_form.rheumatoid_arthritis[1].disabled=true;
        info_form.rheumatoid_arthritis[2].disabled=true;
        info_form.requestinfo[0].checked=false;
    }
}

function clearTextBox(p_tbName,p_value)
{
    if (document.getElementById(p_tbName).value == p_value)
    {
        document.getElementById(p_tbName).value = "";
    }
}

function resetTextBox(p_tbName,p_value)
{
    if (document.getElementById(p_tbName).value == "")
    {
        document.getElementById(p_tbName).value = p_value;
    }
}