<script type="text/javascript">
/*GDPR Compliance -- un-checks the pre-checked boxes when Country select is changed */
$(document).ready(function() {
$('select[name="Country"]').val("US"); /* defaults Country to United States */
} );
$('input[name=BOOL0]').attr('checked', true); /* pre-checks EJUSA opt-in box */
$('input[name=conservatives_concerned_about_the_death_penalty_email_list]').attr('checked', true); /* pre-checks CCATDP opt-in box */
document.addEventListener('DOMContentLoaded', function () {
$("input[name='groups_KEY57843_checkbox']").attr('checked',true); /* pre-checks EJUSA group box */
$("input[id='add_to_groups_KEY57843_checkbox']").attr('checked',true); /* pre-checks CCATDP group box */
$("input[name='groups_KEY118731_checkbox']").attr('checked',true); /* pre-checks CCATDP group box */
$("input[id='add_to_groups_KEY118731_checkbox']").attr('checked',true); /* pre-checks CCATDP group box */
});
function unCheckEJUSAGroup() { /*function for un-checking boxes */
$("input[name='groups_KEY57843_checkbox']").attr('checked',false);
$('input[name=BOOL0]').attr('checked', false);
$("input[name='groups_KEY118731_checkbox']").attr('checked',false);
$('input[name=conservatives_concerned_about_the_death_penalty_email_list]').attr('checked', false);
$("input[id='add_to_groups_KEY118731_checkbox']").attr('checked',false);
$("input[id='add_to_groups_KEY57843_checkbox']").attr('checked',false);
}
document.getElementsByName('Country')[0].setAttribute('onchange','unCheckEJUSAGroup();'); /*if the Country selection is changed, run the unCheckEJUSAGroup function, which unchecks group box*/
</script>