// JavaScript Document
function verrouillage(verrouillage){
	// valeur de verouillage
	document.form.verrouillage.value=verrouillage;
}
function edition_state(edition_state){
	// valeur de verouillage
	document.form.edition_state.value=edition_state;
}
function famille_valid(){
	// validation dans le champs invisible
	// pour les bouton checked juste modifier "checked" 
	temp='';
	for(i=0;i<document.form.famille_sel.length;i++){
  	    	if (document.form.famille_sel[i].checked==true){
			if (temp=='') {
			} else {
				temp=temp+',';
			}
			temp=temp+document.form.famille_sel[i].value;
	 	}
	}
	document.form.famille.value=temp;
}
function instrument_valid1(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel1.length;i++)
		{
  		    if(document.form.instrument_sel1[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel1[i].value;
	  }
	}
	document.form.instrument1.value=temp;
}
function instrument_valid2(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel2.length;i++)
		{
  		    if(document.form.instrument_sel2[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel2[i].value;
	  }
	}
	document.form.instrument2.value=temp;
}
function instrument_valid3(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel3.length;i++)
		{
  		    if(document.form.instrument_sel3[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel3[i].value;
	  }
	}
	document.form.instrument3.value=temp;
}
function instrument_valid4(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel4.length;i++)
		{
  		    if(document.form.instrument_sel4[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel4[i].value;
	  }
	}
	document.form.instrument4.value=temp;
}
function instrument_valid5(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel5.length;i++)
		{
  		    if(document.form.instrument_sel5[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel5[i].value;
	  }
	}
	document.form.instrument5.value=temp;
}
function instrument_valid6(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel6.length;i++)
		{
  		    if(document.form.instrument_sel6[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel6[i].value;
	  }
	}
	document.form.instrument6.value=temp;
}
function instrument_valid7(){
	// validation dans le instrument_sel invisible
	temp='';
	for(i=0;i<document.form.instrument_sel7.length;i++)
		{
  		    if(document.form.instrument_sel7[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.instrument_sel7[i].value;
	  }
	}
	document.form.instrument7.value=temp;
}
function service_valid(){
	// validation dans le service_sel invisible
	temp='';
	for(i=0;i<document.form.service_sel.length;i++)
		{
  		    if(document.form.service_sel[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.service_sel[i].value;
	  }
	}
	document.form.service.value=temp;
}
function asso_pro_valid(){
	// validation dans le asso_pro_sel invisible
	temp='';
	for(i=0;i<document.form.asso_pro_sel.length;i++)
		{
  		    if(document.form.asso_pro_sel[i].checked==true)
				{
	    		if (temp=='') {}
				else {temp=temp+',';
				}
			temp=temp+document.form.asso_pro_sel[i].value;
	  }
	}
	document.form.asso_pro.value=temp;
}

function effacement() {
	// boite de dialogue de confirmation d'effacement ATTENTION NECESSITE EffectsSlide.js
	parent.freezeScreen();
	if (confirm("Voulez-vous changer le statut\nde la fiche sélectionnée ?")==true) {
		// valid? par OK
		document.form3.submit();
	} else { 
		// annul?
	}
	parent.unlockScreen();
}

function debug6(index_un,ins) {
	// boite de dialogue de confirmation d'effacement
	if (confirm("Attention débugage instrument sur 5 lignes ?")==true) {
		// valid? par OK
		window.location="debug6.php?index_un="+index_un+"&ins="+ins;
	} else { 
		// annul?
	}
}
