/*    Ces fonctions rendent les puces du tableau d'adhésion clickable    */


/*    Puces pour adhésion    */
function cocherAdh(){
	if (! $('#chk_devenirmembre').attr('checked')){
		$('#chk_devenirmembre').attr('checked','on');
		recalculerTotal();
		switcher_img_v2('adhesion[adhesion_base]','td_adhesion');
	}
	else {
		$('#chk_devenirmembre').attr('checked','');
		recalculerTotal();
		switcher_img_v2('adhesion[adhesion_base]','td_adhesion');
	}
}	

/*    Puces pour option1    */
function cocherOpt1(){
	if (! $('#chk_option1').attr('checked')){
		$('#chk_option1').attr('checked','on');
		recalculerTotal();
		switcher_img_v2('adhesion[mod_candidature]','td_candidature');
	}
	else {
		$('#chk_option1').attr('checked','');
		recalculerTotal();
		switcher_img_v2('adhesion[mod_candidature]','td_candidature');
	}
}

/*    Puces pour option2    */
function cocherOpt2(){
	if (! $('#chk_option2').attr('checked')){
		$('#chk_option2').attr('checked','on');
		recalculerTotal();
		switcher_img_v2('adhesion[mod_cadre_export]','td_cadre_export');
	}
	else {
		$('#chk_option2').attr('checked','');
		recalculerTotal();
		switcher_img_v2('adhesion[mod_cadre_export]','td_cadre_export');
	}
}

