// JavaScript Document
function form_inscrip(thisForm) {
    if(thisForm.nom_membre.value=='') {
         alert('Nom obligatoire');
         thisForm.nom_membre.focus();
		 return false;
    }
    if(thisForm.prenom_membre.value=='') {
         alert('Prénom obligatoire');
         thisForm.prenom_membre.focus();
         return false;
    }
    if(thisForm.societe_membre.value=='') {
         alert('Société obligatoire');
         thisForm.societe_membre.focus();
         return false;
    }
    if(thisForm.mail_membre.value=='') {
         alert('Mail obligatoire');
         thisForm.mail_membre.focus();
         return false;
    }
    if(thisForm.mdp1.value=='') {
         alert('Mot de passe obligatoire');
         thisForm.mdp1.focus();
         return false;
    }
    if(thisForm.mdp2.value=='') {
         alert('confirmez le mot de passe');
         thisForm.mdp2.focus();
         return false;
    }
	if(thisForm.mdp1.value!=thisForm.mdp2.value) {
	 alert('Les deux mots de passe ne sont pas identiques');
	 thisForm.mdp1.focus();
	 return false;
    }
	if(thisForm.langue.value=='') {
	 alert('Choisissez une langue');
	 thisForm.langue.focus();
	 return false;
    }
	else {
		thisForm.submit();
	}
}
//

//Validation du formulaire de login
function form_log(thisForm) {
    if(thisForm.username.value=='') {
         alert('Identifiant obligatoire');
         thisForm.username.focus();
		 return false;
    }
    if(thisForm.password.value=='') {
         alert('Mot de passe obligatoire');
         thisForm.password.focus();
         return false;
    }
	else {
		thisForm.submit();
	}
}

//validation formulaire de contact
function contactform(thisForm) {
    if(thisForm.name.value=='') {
         alert('Veuillez indiquer vos nom et prénom');
         thisForm.name.focus();
		 return false;
    }
    if(thisForm.eaddress.value=='') {
         alert('Mail obligatoire');
         thisForm.eaddress.focus();
         return false;
    }
    if(thisForm.telephone.value=='') {
         alert('Veuillez indiquer un numéro de téléphone');
         thisForm.telephone.focus();
         return false;
    }
	if(thisForm.message.value=='') {
	 alert('Redigez votre message');
	 thisForm.message.focus();
	 return false;
    }
	else {
		thisForm.submit();
	}
}
//


//Fin du fichier
