function controle()
{
	if(document.affichage.oui.checked)
        { document.getElementById("doui").style.visibility = 'visible'; }
    else
        { document.getElementById("doui").style.visibility = 'hidden';  }

}
//Configuration des infos entrée par le client *******************************************************************--------------
function verifForm(LogClient) {

	// Verification du Login
	if (LogClient.LoginClient.value=="") {
		alert ("Vous devez saisir votre login !");
		LogClient.LoginClient.focus();
		return false;	}

	// Verification du pass
	if (LogClient.PasseClient.value=="") {
		alert ("Vous devez saisir votre password !");
		LogClient.PasseClient.focus();
		return false;	}

}

//Vérification du Ticket *******************************************************************--------------
function verifFormTicket(TicketCode) {

	// Verification du Login
	if (TicketCode.Code.value=="") {
		alert ("Vous devez saisir votre code de Réduction !");
		TicketCode.Code.focus();
		return false;	}

	// Verification du pass
	if (TicketCode.Code.value.length !=5) {
		alert ("Votre code est erroné !");
		TicketCode.Code.focus();
		return false;	}

}


// *********************************************************************************************************************
// INSCRIPTION D'UN CLIENT LORS d4UN ACHAT *****************************************************************************
// *********************************************************************************************************************

function verifForm9(InsClient) {

	// Verification du Login
	if (InsClient.civilite.value=="") {
		alert ("Vous devez choisir votre civilité !");
		InsClient.civilite.focus();
		return false;	}

	// Verification du nom du client
	if (InsClient.nomClient.value=="") {
		alert ("Vous devez saisir votre nom !");
		InsClient.nomClient.focus();
		return false;	}

	// Verification du prénom du client
	if (InsClient.prenomClient.value=="") {
		alert ("Vous devez saisir votre prénom !");
		InsClient.prenomClient.focus();
		return false;	}


	// Verification de l'adresse du client
	if (InsClient.adresseClient.value=="") {
		alert ("Vous devez saisir votre adresse !");
		InsClient.adresseClient.focus();
		return false;	}

	// Verification du code Postal du client
	if (InsClient.CodePoClient.value=="") {
		alert ("Vous devez saisir votre Code Postal !");
		InsClient.CodePoClient.focus();
		return false;	}

	// Verification de la ville du client
	if (InsClient.CommuneClient.value=="") {
		alert ("Vous devez saisir votre ville de résidence !");
		InsClient.CommuneClient.focus();
		return false;	}


	// Vérification de lemail et de sa validité
		if (InsClient.MailClient.value=="") {
			alert ("Veuillez saisir votre E-mail !");
			InsClient.MailClient.focus();
			return false;	}
		else {
		mail = /^[a-zA-Z0-0_9][a-zA-Z0-9\.\-_]+@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
		VerifFormeEmail=mail.test(document.InsClient.MailClient.value)
			if(!VerifFormeEmail) {
				alert ("Vous devez entrer un email valide !!!");
				InsClient.MailClient.focus();
				return false;	}
				}

	// Verification du Téléphone du client
	if (InsClient.phoneClient.value=="") {
		alert ("Vous devez saisir votre numéro de téléphone !");
		InsClient.phoneClient.focus();
		return false;	}
	// Verification du portable du client
	if (InsClient.gsmClient.value=="") {
		alert ("Vous devez saisir votre numéro de portable !");
		InsClient.gsmClient.focus();
		return false;	}
/*
	if (InsClient.FaxClient.value=="") {
		alert ("Vous devez saisir votre numéro de fax !");
		InsClient.FaxClient.focus();
		return false;	}
*/

		// Verification de l'acceptation du contrat
	if (InsClient.acceptation.checked==false) {
		alert ("Vous devez accepter les conditions de ventes pour effectuer votre commande !");
		InsClient.acceptation.focus();
		return false;	}



}

function verifFormLiv9(InsClient)
{
	if(InsClient.SameAdress[1].checked){

     	 if(InsClient.nomClientLivr.value==""){
   		alert ("Vous devez saisir votre nom !");
		InsClient.nomClientLivr.focus();
		return false;
    	}
     if(InsClient.prenomClientLivr.value==""){
   		alert ("Vous devez saisir votre prénom !");
		InsClient.prenomClientLivr.focus();
		return false;
   	 }

   	if(InsClient.adresseClientLivr.value==""){
   		alert ("Vous devez saisir votre adresse !");
		InsClient.adresseClientLivr.focus();
		return false;
   	}

   	if(InsClient.CodePoClientLivr.value==""){
   		alert ("Vous devez saisir votre Code Postal !");
		InsClient.CodePoClientLivr.focus();
		return false;
   	}

   	if(InsClient.CommuneClientLivr.value==""){
   		alert ("Vous devez saisir votre ville de résidence !");
		InsClient.CommuneClientLivr.focus();
		return false;
   	 }
   	}

}
function confirmEffCadd()
{
	var accord=confirm("Vous êtes sur le point de valider votre commande. Continuer ?")
		if (accord)
			return true;
		else
			return false;
}
