function calcul_total(){
    accred_vous=document.form_accred.accred_vous
    num_adherent_sacd=document.form_accred.num_adherent_sacd.value
    num_adherent_sacem=document.form_accred.num_adherent_sacem.value
	
    reservation_ven=document.form_accred.reservation_ven
    reservation_sam=document.form_accred.reservation_sam
	
    dejeuner_dim=document.form_accred.dejeuner_dim
    total_accred=0

    if(document.form_accred.moyen_transport[2].checked){
        document.form_accred.horaire_date_aller.value=""
        document.form_accred.lieu_aller.value=""
        document.form_accred.horaire_date_retour.value=""
        document.form_accred.lieu_retour.value=""
        document.getElementById('infos_train').style.display="none";
    }
    if(document.form_accred.moyen_transport[1].checked ){
        document.getElementById('infos_train').style.display="block";
    }
    if(document.form_accred.moyen_transport[0].checked ){
        document.getElementById('infos_voiture').style.display="block";
         document.getElementById('infos_train').style.display="none";
    }else{
        document.getElementById('infos_voiture').style.display="none";
        document.form_accred.voiture_num.value=""
        document.form_accred.place_num.value=""
    }
	
    //calcul accred
    if(accred_vous[0].checked){
        total_accred+=	180
        document.form_accred.num_adherent_sacem.value=""
        document.form_accred.num_adherent_sacd.value=""
    }
    if(accred_vous[1].checked){
        document.form_accred.num_adherent_sacem.value=""
        total_accred+=	130
    }
    if(accred_vous[2].checked){
        document.form_accred.num_adherent_sacd.value=""
        total_accred+=	130
    }


    document.form_accred.total.value=	total_accred

}

function no_special_char(chaine, permalang) {
    temp = chaine.toLowerCase().replace(/[\340\341\342\343\344\345]/gi,"a");
    temp = temp.replace(/[\350\351\352\353]/gi,"e");
    temp = temp.replace(/[\354\355\356\357]/gi,"i");
    temp = temp.replace(/[\360\362\363\364\365\366\370]/gi,"o");
    temp = temp.replace(/[\371\372\373\374]/gi,"u");
    temp = temp.replace(/[\361]/gi,"n");
    temp = temp.replace(/[\346]/gi,"ae");
    temp = temp.replace(/[\347]/gi,"c");
    temp = temp.replace(/[\W]/gi,"-");
    for(a=0;a<10;a++){
        if(temp.substring((temp.length-1),temp.length)=="-")temp=temp.substring(0,(temp.length-1))
        reg = new RegExp("--", "ig");
        temp = temp.replace(reg, "-");
    }
    document.forms['f_edit'].elements[permalang].value=temp;
}

function viewTip(num){
    //Effect.Appear('container'+num, { duration: 1.0 });
    //document.getElementById('container'+num).style.display="block";

    for(a=5;a<=27;a++){
        document.getElementById('container'+a).style.display="none";
    }


    new Effect.toggle('container'+num,'blind', {
        duration: 0.5
    });
	

}
function killTip(num){
    //Effect.Fade('container'+num, { duration: 0.5 });
    document.getElementById('container'+num).style.display="none"
//new Effect.toggle('container'+num,'blind', { duration: 0.5 });
}