function goToUrl() { //v3.0
  var i, args=goToUrl.arguments; document.contact = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################
function couleur(obj) {
     obj.style.backgroundColor = "#CCCCFF";
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################
function ControlForm()
{ 
// ****************** controle des boutons radio de la civilité **************************************
var compteur=0;
var nbreBoutons = document.form["genre[]"].length; 
for ( var i=0; i< nbreBoutons; i ++ )
	{    
		if ( document.form["genre[]"][i].checked ) compteur++; 
		}
	if ( compteur<1 ) 
	{
		window.alert("Veuillez choisir une civilité.\nMerci." );
		return false;
	}
// ****************** controle des champs **************************************
  if (document.form.nom.value == "") 
     { alert("Veuillez nous communiquer votre nom.\nMerci.");
       document.form.nom.focus();
	   document.form.nom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.form.prenom.value == "") 
     { alert("Veuillez nous communiquer votre prénom.\nMerci.");
       document.form.prenom.focus();
	   document.form.prenom.style.backgroundColor = "#FF0000";
       return false;
     }	 
  if (document.form.email.value == "") 
     { alert("Veuillez nous communiquer votre adresse Email.\nMerci.");
       document.form.email.focus();
	   document.form.email.style.backgroundColor = "#FF0000";
       return false;
     }
  if ( (document.form.email.value.indexOf('@')< 0) || (document.form.email.value.indexOf('.')< 0) || (document.form.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.form.email.focus();
	 document.form.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.form.email.value != document.form.confirmation.value) 
  	 {alert("Erreur lors de la confirmation de votre Email");
	 document.form.confirmation.focus();
	 document.form.confirmation.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.form.pass.value == "") 
     { alert("Veuillez choisir un mot de passe.\nMerci.");
       document.form.pass.focus();
	   document.form.pass.style.backgroundColor = "#FF0000";
       return false;
     }  
// ****************** controle des cases à cocher **************************************	 
var cpt=0;
var nbre = document.form["lettre[]"].length; 
for ( var i=0; i< nbre; i ++ )
	{    
		if ( document.form["lettre[]"][i].checked ) cpt++; 
		}
	if ( cpt<1 ) 
	{
		window.alert("Veuillez choisir une activité.\nMerci." );
		return false;
	}

return true;
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################
function ControlClient()
{  
  if (document.form2.email.value == "") 
     { alert("Veuillez renseigner votre adresse Email.\nMerci.");
       document.form2.email.focus();
	   document.form2.email.style.backgroundColor = "#FF0000"; 
       return false;
     }
  if ( (document.form2.email.value.indexOf('@')< 0) || (document.form2.email.value.indexOf('.')< 0) || (document.form2.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.form2.email.focus();
	 document.form2.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.form2.pass.value == "") 
     { alert("Veuillez renseigner votre mot de passe.\nMerci.");
       document.form2.pass.focus();
	   document.form2.pass.style.backgroundColor = "#FF0000";
       return false;
     }
return true;
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################

function ControlLostEmail()
{  
  if (document.formLost.email.value == "") 
     { alert("Veuillez nous communiquer votre adresse Email.\nMerci.");
       document.formLost.email.focus();
	   document.formLost.email.style.backgroundColor = "#FF0000";
       return false;
     }
  if ( (document.formLost.email.value.indexOf('@')< 0) || (document.formLost.email.value.indexOf('.')< 0)|| (document.formLost.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.formLost.email.focus();
	 document.formLost.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
return true;
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################

// ****************** controle du formulaire d'inscription des clients **************************************
function ControlInscriptionClient()
{ 
	if (typeof document.inscription["lettre[]"]!= "undefined") {

var cpt=0;
var nbre = document.inscription["lettre[]"].length; 
for ( var i=0; i< nbre; i ++ )
	{    
		if ( document.inscription["lettre[]"][i].checked ) cpt++; 
		}
	if ( cpt<1 ) 
	{
		window.alert("Veuillez choisir une activité.\nMerci." );
		return false;
	}
					}
var compteur=0;
var nbreBoutons = document.inscription["genre[]"].length; 
for ( var i=0; i< nbreBoutons; i ++ )
	{    
		if ( document.inscription["genre[]"][i].checked ) compteur++; 
		}
	if ( compteur<1 ) 
	{
		window.alert("Veuillez choisir une civilité.\nMerci." );
		return false;
	}
// ****************** controle des champs **************************************
  if (document.inscription.nom.value == "") 
     { alert("Veuillez nous communiquer votre nom.\nMerci.");
       document.inscription.nom.focus();
	   document.inscription.nom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.inscription.prenom.value == "") 
     { alert("Veuillez nous communiquer votre prénom.\nMerci.");
       document.inscription.prenom.focus();
	   document.inscription.prenom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.inscription.adresse1.value == "") 
     { alert("Veuillez nous communiquer votre adresse.\nMerci.");
       document.inscription.adresse1.focus();
	   document.inscription.adresse1.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.inscription.codepost.value == "") 
     { alert("Veuillez nous communiquer votre code postal.\nMerci.");
       document.inscription.codepost.focus();
	   document.inscription.codepost.style.backgroundColor = "#FF0000";
       return false;
     }	 
  if (document.inscription.ville.value == "") 
     { alert("Veuillez nous communiquer votre ville.\nMerci.");
       document.inscription.ville.focus();
	   document.inscription.ville.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.inscription.pays.value == "") 
     { alert("Veuillez nous communiquer un pays.\nMerci.");
       document.inscription.pays.focus();
	   document.inscription.pays.style.backgroundColor = "#FF0000";
       return false;
     }  
  if (document.inscription.tel.value == "") 
     { alert("Veuillez nous communiquer un numéro de téléphone.\nMerci.");
       document.inscription.tel.focus();
	   document.inscription.tel.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.inscription.email.value == "") 
     { alert("Veuillez renseigner votre adresse Email.\nMerci.");
       document.inscription.email.focus();
	   document.inscription.email.style.backgroundColor = "#FF0000"; 
       return false;
     }
  if ( (document.inscription.email.value.indexOf('@')< 0) || (document.inscription.email.value.indexOf('.')< 0) || (document.inscription.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.inscription.email.focus();
	 document.inscription.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.inscription.email.value != document.inscription.email2.value) 
  	 {alert("Erreur lors de la confirmation de votre Email");
	 document.inscription.email2.focus();
	 document.inscription.email2.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.inscription.pass.value == "") 
     { alert("Veuillez choisir un mot de passe.\nMerci.");
       document.inscription.pass.focus();
	   document.inscription.pass.style.backgroundColor = "#FF0000"; 
       return false;
     }
return true;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################

// ****************** controle du formulaire d'inscription des participants**************************************
function ControlFormParticipant()
{ 	
var compteur=0;
var nbreBoutons = document.participant["User"].length; 
for ( var i=0; i< nbreBoutons; i ++ )
	{    
		if ( document.participant["User"][i].checked ) compteur++; 
		}
	if ( compteur<1 ) 
	{
		window.alert("Veuillez choisir une civilité.\nMerci." );
		return false;
	}
// ****************** controle des champs **************************************
  if (document.participant.nom.value == "") 
     { alert("Veuillez nous communiquer votre nom.\nMerci.");
       document.participant.nom.focus();
	   document.participant.nom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.prenom.value == "") 
     { alert("Veuillez nous communiquer votre prénom.\nMerci.");
       document.participant.prenom.focus();
	   document.participant.prenom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.adresse1.value == "") 
     { alert("Veuillez nous communiquer votre adresse.\nMerci.");
       document.participant.adresse1.focus();
	   document.participant.adresse1.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.codepost.value == "") 
     { alert("Veuillez nous communiquer votre code postal.\nMerci.");
       document.participant.codepost.focus();
	   document.participant.codepost.style.backgroundColor = "#FF0000";
       return false;
     }	 
  if (document.participant.ville.value == "") 
     { alert("Veuillez nous communiquer votre ville.\nMerci.");
       document.participant.ville.focus();
	   document.participant.ville.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.pays.value == "") 
     { alert("Veuillez nous communiquer un pays.\nMerci.");
       document.participant.pays.focus();
	   document.participant.pays.style.backgroundColor = "#FF0000";
       return false;
     }  
  if (document.participant.email.value == "") 
     { alert("Veuillez nous communiquer l'adresse Email.\nMerci.");
       document.participant.email.focus();
	   document.participant.email.style.backgroundColor = "#FF0000";
       return false;
     } 
  if ( (document.participant.email.value.indexOf('@')< 0) || (document.participant.email.value.indexOf('.')< 0) || (document.participant.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.participant.email.focus();
	 document.participant.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.participant.tel.value == "") 
     { alert("Veuillez nous communiquer un numéro de téléphone.\nMerci.");
       document.participant.tel.focus();
	   document.participant.tel.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.passeport.value == "") 
     { alert("Veuillez nous communiquer un numéro de passeport ou carte d'identité.\nMerci.");
       document.participant.passeport.focus();
	   document.participant.passeport.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.delivre.value == "") 
     { alert("Veuillez nous communiquer le nom de l'organisme de délivrance.\nMerci.");
       document.participant.delivre.focus();
	   document.participant.delivre.style.backgroundColor = "#FF0000";
       return false;
     }
		if (typeof document.participant["compagnie"]== "undefined") {
if (document.participant.annulation[0].checked && document.participant.rapatriment[0].checked)
{
alert("Les trois choix ne peuvent pas être tous cochés...\n Il est plus interressant pour vous de prendre l'option N°3 \nCochez Non pour Annulation et Rapatriement");
return false;
}
if (document.participant.annulation[0].checked && document.participant.multirisque[0].checked)
{
alert("Le choix N° 3 comprend déjà l'option Annulation\n Cochez Non pour Annulation");
return false;
}
if (document.participant.rapatriment[0].checked && document.participant.multirisque[0].checked)
{
alert("Le choix N° 3 comprend déjà l'option Rapatriement...\n Cochez Non pour Rapatriement");
return false;
}
if (document.participant.annulation[1].checked && document.participant.rapatriment[1].checked && document.participant.multirisque[1].checked)
{
alert("Vous devez choisir une option...\n Ou renseigner les éléments de votre assurance");
return false;
}
				}
  if (document.participant.personne.value == "") 
     { alert("Veuillez nous communiquer le nom de la personne à prévenir.\nMerci.");
       document.participant.personne.focus();
	   document.participant.personne.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.telpersonne.value == "") 
     { alert("Veuillez nous communiquer le numéro de téléphone de la personne à prévenir.\nMerci.");
       document.participant.telpersonne.focus();
	   document.participant.telpersonne.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.lien.value == "") 
     { alert("Veuillez nous communiquer le lien de parenté.\nMerci.");
       document.participant.lien.focus();
	   document.participant.lien.style.backgroundColor = "#FF0000";
       return false;
     }		
  if (document.participant.compagnie.value == "") 
     { alert("Veuillez nous communiquer le nom de votre compagnie d'assurance.\nMerci.");
       document.participant.compagnie.focus();
	   document.participant.compagnie.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.contrat.value == "") 
     { alert("Veuillez nous communiquer le n° de contrat.\nMerci.");
       document.participant.contrat.focus();
	   document.participant.contrat.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.participant.telCompagnie.value == "") 
     { alert("Veuillez nous communiquer le n° de téléphone pour les urgences.\nMerci.");
       document.participant.telCompagnie.focus();
	   document.participant.telCompagnie.style.backgroundColor = "#FF0000";
       return false;
     }
return true;
}
//#########################################################################################################################################################
//#########################################################################################################################################################
//#########################################################################################################################################################

function ControlModifFiches()
{  
  if (document.modifFiches.nom.value == "") 
     { alert("Veuillez renseigner votre nom.\nMerci.");
       document.modifFiches.nom.focus();
	   document.modifFiches.nom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.modifFiches.prenom.value == "") 
     { alert("Veuillez renseigner votre prénom.\nMerci.");
       document.modifFiches.prenom.focus();
	   document.modifFiches.prenom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.modifFiches.email.value == "") 
     { alert("Veuillez nous communiquer votre adresse Email.\nMerci.");
       document.modifFiches.email.focus();
	   document.modifFiches.email.style.backgroundColor = "#FF0000";
       return false;
     }
  if ( (document.modifFiches.email.value.indexOf('@')< 0) || (document.modifFiches.email.value.indexOf('.')< 0) || (document.modifFiches.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.modifFiches.email.focus();
	 document.modifFiches.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.modifFiches.pass.value == "") 
     { alert("Veuillez choisir un mot de passe.\nMerci.");
       document.modifFiches.pass.focus();
	   document.modifFiches.pass.style.backgroundColor = "#FF0000";
       return false;
     }
return true;
}
function ControlModifClient()
{ 	
var compteur=0;
var nbreBoutons = document.modifClient["User[]"].length; 
for ( var i=0; i< nbreBoutons; i ++ )
	{    
		if ( document.modifClient["User[]"][i].checked ) compteur++; 
		}
	if ( compteur<1 ) 
	{
		window.alert("Veuillez choisir une civilité.\nMerci." );
		return false;
	}
// ****************** controle des champs **************************************
  if (document.modifClient.nom.value == "") 
     { alert("Veuillez nous communiquer votre nom.\nMerci.");
       document.modifClient.nom.focus();
	   document.modifClientnom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.modifClient.prenom.value == "") 
     { alert("Veuillez nous communiquer votre prénom.\nMerci.");
       document.modifClient.prenom.focus();
	   document.modifClient.prenom.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.modifClient.adresse1.value == "") 
     { alert("Veuillez nous communiquer votre adresse.\nMerci.");
       document.modifClient.adresse1.focus();
	   document.modifClient.adresse1.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.modifClient.codePost.value == "") 
     { alert("Veuillez nous communiquer votre code postal.\nMerci.");
       document.modifClient.codePost.focus();
	   document.modifClient.codePost.style.backgroundColor = "#FF0000";
       return false;
     }	 
  if (document.modifClient.ville.value == "") 
     { alert("Veuillez nous communiquer votre ville.\nMerci.");
       document.modifClient.ville.focus();
	   document.modifClient.ville.style.backgroundColor = "#FF0000";
       return false;
     }
  if (document.modifClient.pays.value == "") 
     { alert("Veuillez nous communiquer un pays.\nMerci.");
       document.modifClient.pays.focus();
	   document.modifClient.pays.style.backgroundColor = "#FF0000";
       return false;
     } 
  if (document.modifClient.tel.value == "") 
     { alert("Veuillez nous communiquer un numéro de téléphone.\nMerci.");
       document.modifClient.tel.focus();
	   document.modifClient.tel.style.backgroundColor = "#FF0000";
       return false;
     } 
  if (document.modifClient.email.value == "") 
     { alert("Veuillez nous communiquer l'adresse Email.\nMerci.");
       document.modifClient.email.focus();
	   document.modifClient.email.style.backgroundColor = "#FF0000";
       return false;
     } 
  if ( (document.modifClient.email.value.indexOf('@')< 0) || (document.modifClient.email.value.indexOf('.')< 0) || (document.modifClient.email.value.indexOf(' ')> 0) )
	{alert("Erreur lors de la saisie de votre adresse Email");
	 document.modifClient.email.focus();
	 document.modifClient.email.style.backgroundColor = "#FF0000";
	 return false;
	 }
  if (document.modifClient.pass.value == "") 
     { alert("Veuillez choisir un mot de passe.\nMerci.");
       document.modifClient.pass.focus();
	   document.modifClient.pass.style.backgroundColor = "#FF0000";
       return false;
     }
return true;
}
