function toggle_p(source) { checkboxes = document.getElementsByName('model_sp12rts_p'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_spani_p'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_gypsum_p'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_hmsl_p06'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_pri_p05'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_ox_p16'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_gap_p4'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_llnl_g3dv3'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_mitp_usa_2011mar'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_mitp08'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_uu_p07'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_mitp_usa_2016may'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_detox_p1'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_detox_p2'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_detox_p3'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_tx2019slab_p'); checkboxes[0].checked = source.checked; } function toggle_s(source) { checkboxes = document.getElementsByName('model_sp12rts_s'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_spani_s'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_gypsum_s'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_hmsl_s06'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_pri_s05'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_savani'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_seisglob1'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_seisglob2'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_semucb_wm1'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_s40rts'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_sglobe_rani'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_tx2011'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_tx2015'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_s20rts'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_s362ani_m'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_semum'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_saw642anb'); checkboxes[0].checked = source.checked; checkboxes = document.getElementsByName('model_tx2019slab_s'); checkboxes[0].checked = source.checked; } function toggle_sink_rate(source) { checkboxes_1 = document.getElementsByName('plate_sinking_rate_um_high'); checkboxes_1[0].disabled = !source.checked; checkboxes_2 = document.getElementsByName('plate_sinking_rate_lm_high'); checkboxes_2[0].disabled = !source.checked; } function toggle_split_function_plot(source) { checkboxes_1 = document.getElementsByName('map_proj_button'); checkboxes_1[0].disabled = !source.checked; checkboxes_2 = document.getElementsByName('colorbar_button'); checkboxes_2[0].disabled = !source.checked; } function option_cs_selector(elem) { if (elem.value == "option_1") { checkboxes_1 = document.getElementsByName('option1_cs'); checkboxes_1[0].disabled = !elem.checked; } else if (elem.value == "option_2") { checkboxes_2 = document.getElementsByName('option2_cs'); checkboxes_2[0].disabled = !elem.checked; } }