<!--

//////////////////////////////////////////////////////////////////////
//	CHAMPS CACHES A AJOUTER DANS LE FORMULAIRE MESSAGE :
//		obligatoires : listes des champs obligatoires séparés par ! (ex, !nom!email!telephone!)
// 	ATTENTION : NE PEUT PA ETES UTILISE POUR LES CASES A COCHER
//////////////////////////////////////////////////////////////////////


function VerifForm(form){
	message = 1;
	obligatoires = form.obligatoires.value;
	champs = obligatoires.split('!');
	nbre_champs = champs.length;
	for(i=0;i<nbre_champs;i++){
		champ = champs[i];
		choix = 0;
		if(champ){
			if(eval('form.' + champ + '.value')){
				choix = 1;
			}
			if(choix == 0 && eval('form.' + champ + '.length')){
				nbre_choix = eval('form.' + champ + '.length');
				for(j=0;j<nbre_choix;j++){			
					if(eval('form.' + champ + '[' + j + '].checked')){	
						choix = 1;
						j = nbre_choix;
					}
				}
			}
			if(!choix){
				message = 0;
				i = nbre_champs;
			}
		}
	}
	if(message == 0){
		var code_langue = form.code_langue.value;
		if(!code_langue || code_langue == 'fr'){	 
			alert('Le formulaire est rempli de façon incomplète.');
		}
		else if(code_langue == "de"){
			alert('Die mit Sternchen gekennzeichneten Felder müssen ausgefüllt werden.');
		}
		else {
			alert('The form isn\'t complete.');
		}
			
		return false;
	}
	else {
		return true;
	}
}

//-->
