// JavaScript Document

/* POUR MISE EN LIGNE */
function MM_goToURL()
			{ //v3.0
				var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
			  	for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
			}

/* MENU */
window.onload=montre;
function montre(id) 
{
	var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) 
		{if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
		}
	if (d) {d.style.display='block';} 
}

function checklogin(f) {
	
	if (f.TB_Nom_Utilisateur.value.length==0 || f.TB_Nom_Utilisateur.value=='Pseudo'){
		alert("Le champs 'PSEUDO' est obligatoire");
		f.TB_Nom_Utilisateur.focus();
		return false;
	}

	if (f.TB_Mot_de_Passe.value.length==0 || f.TB_Mot_de_Passe.value=='motpasse')	{
		alert("Le champs 'Mot de passe' est obligatoire");
		f.TB_Mot_de_Passe.focus();
		return false;
	}
		return true;
}
function navigation(myNav)
{ 
	document.getElementById(myNav).style.visibility="visible";
}

function cache(myNav)
{
	document.getElementById(myNav).style.visibility="hidden";
}

/* Changement d'Images */
function ImageOver1() { 
document.images["Association"].src="Images/On_Associations.png"
} 
function ImageOver2() { 
document.images["Conseils"].src="Images/On_Conseils.png"
} 

function ImageOver3() { 
document.images["Entreprises"].src="Images/On_Entreprises.png"
} 
function ImageOver4() { 
document.images["Attaches_Presse"].src="Images/On_Attaches_Presse.png"
}

function ImageOut1() { 
document.images["Association"].src="Images/Associations.png"
}
function ImageOut2() { 
document.images["Conseils"].src="Images/Conseils.png"
}
function ImageOut3() { 
document.images["Entreprises"].src="Images/Entreprises.png"
}
function ImageOut4() { 
document.images["Attaches_Presse"].src="Images/Attaches_Presse.png"
}

/* FAVORIS*/

function favoris() 
{ 
	if ( navigator.appName != 'Microsoft Internet Explorer' ) 
		{ 
		window.sidebar.addPanel("Trouver Un Sponsor","http://www.trouverunsponsor.com",""); 
		} 
	else 
		{ 
		window.external.AddFavorite("http://www.trouverunsponsor.com","Trouver Un Sponsor"); 
		} 
} 

/* PAGE DE DEMARRAGE*/

function HomePage(obj)
 		{
 		obj.style.behavior='url(#default#homepage)';
 		obj.setHomePage('http://www.trouverunsponsor.com');
 		}


/* VERIFICATION FORMULAIRES*/

var emailFilter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/ ;
var telephoneFilter  = /([0-9])/ ;
var dateFilter  = /^([0-9]{2})+\/([0-9]{2})\/([0-9]{4})+$/ ;
var societeFilter = /^([a-zA-Z0-9_\.\-\ ])+$/ ;
var PseudoFilter = /^([A-Za-z0-9_]{4,20})+$/ ;
var MotPasseFilter = /^([A-Za-z0-9]{4,})+$/ ;
var VerifMotPasseFilter = ($_POST["TB_Mot_de_Passe"] != $_POST["TB_Confirmation_Mot_de_Passe"])

						/*l'email doit contenir une arobase et un point*/
						/*avant l'@ il peut y avoir des lettres quelconques (en minuscule ou majuscule), n'importe quel chiffre, 
						  et les caractères "-" ou "_"*/
						/*aprés l'@, idem, mais on interdit la présence de "_", et il faut impérativement au moins 2 caractères 
						  entre l'@ et le point*/
						/*aprés le point, faut impérativement au moins 2 ou 4 caractères */

function checkForm(f) 
{
	if(f.titre.value=="Choisissez :") 
		{
		alert('Le champs « Civilité » est obligatoire') ;
		f.titre.focus() ;
		return false ;
		};
	
	if(f.nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		f.nom.focus() ;
		return false ;
		};
		
	if(f.nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		f.nom.focus() ;
		return false ;
		};
		
	if(f.prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		f.prenom.focus() ;
		return false ;
		};
		
	if(f.prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		f.prenom.focus() ;
		return false ;
		};

	if(f.adresse1.value.length==0) 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		f.adresse1.focus() ;
		return false ;
		};
		
	if(f.adresse1.value=="Adresse") 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		f.adresse1.focus() ;
		return false ;
		};

	if(f.cp.value.length==0) 
		{
		alert('Le champs « CP » est obligatoire') ;
		f.cp.focus() ;
		return false ;
		};
		
	if(f.cp.value=="CP") 
		{
		alert('Le champs « CP » est obligatoire') ;
		f.cp.focus() ;
		return false ;
		};
		
	if(f.cp.value.length>0 && !telephoneFilter.test(f.cp.value)) 
		{
		alert('Le champs « CP » est incorect') ;
		f.cp.focus() ;
		return false ;
		};
	
	if(f.cp.value.length>0 && f.cp.value.length<5 ) 
		{
		alert('Le champs « CP » se compose de 5 chiffres !') ;
		f.cp.focus() ;
		return false ;
		};

	if(f.ville.value.length==0) 
		{
		alert('Le champs « Ville » est obligatoire') ;
		f.ville.focus() ;
		return false ;
		};
		
	if(f.ville.value=="Ville") 
		{
		alert('Le champs « Ville » est obligatoire') ;
		f.ville.focus() ;
		return false ;
		};

	if(f.telephone.value.length==0) 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		f.telephone.focus() ;
		return false ;
		};
		
	if(f.telephone.value=="T&eacute;l&eacute;phone") 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		f.telephone.focus() ;
		return false ;
		};
		
	if(f.telephone.value.length>0 && !telephoneFilter.test(f.telephone.value)) 
		{
		alert('Le champs « Téléphone » est incorect') ;
		f.telephone.focus() ;
		return false ;
		};
	if(f.telephone.value.length>0 && f.telephone.value.length<10) 
		{
		alert('Le champs « Téléphone » se compose de 10 chiffres !') ;
		f.telephone.focus() ;
		return false ;
		};

	if(f.mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		f.mail.focus() ;
		return false ;
		};
		
	if(f.mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		f.mail.focus() ;
		return false ;
		};

	if(f.mail.value.length>0 && !emailFilter.test(f.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		f.mail.focus() ;
		return false ;
		};

	if(f.nomprojet.value.length==0) 
		{
		alert('Le champs « Nom du Projet » est obligatoire') ;
		f.nomprojet.focus() ;
		return false ;
		};
		
	if(f.nomprojet.value=="Nom du Projet") 
		{
		alert('Le champs « Nom du Projet » est obligatoire') ;
		f.nomprojet.focus() ;
		return false ;
		};
		
	if(f.datedebprojet.value.length==0) 
		{
		alert('Le champs « Début jj/mm/aaaa » est obligatoire') ;
		f.datedebprojet.focus() ;
		return false ;
		};
		
	if(f.datedebprojet.value=="D&eacute;but jj/mm/aaaa") 
		{
		alert('Le champs « Début jj/mm/aaaa » est obligatoire') ;
		f.datedebprojet.focus() ;
		return false ;
		};

	if(f.datedebprojet.value.length>0 && !dateFilter.test(f.datedebprojet.value)) 
		{
		alert('Le champs « Début jj/mm/aaaa » est incorect') ;
		f.datedebprojet.focus() ;
		return false ;
		};

	if(f.datefinprojet.value.length==0) 
		{
		alert('Le champs « Fin jj/mm/aaaa » est obligatoire') ;
		f.datefinprojet.focus() ;
		return false ;
		};
		
	if(f.datefinprojet.value=="Fin jj/mm/aaaa") 
		{
		alert('Le champs « Fin jj/mm/aaaa » est obligatoire') ;
		f.datefinprojet.focus() ;
		return false ;
		};
		
	if(f.dptmt.value=="Choisissez :") 
		{
		alert('Le champs « Lieu du Projet » est obligatoire') ;
		f.dptmt.focus() ;
		return false ;
		};
			
	if(f.activite.value=="Choisissez :") 
		{
		alert('Le champs « Catégorie du Projet » est obligatoire') ;
		f.activite.focus() ;
		return false ;
		};
	
	if(f.descriptionprojet.value.length==0) 
		{
		alert('Le champs « Description du Projet » est obligatoire') ;
		f.descriptionprojet.focus() ;
		return false ;
		};
};


function checkFormETP(g) 
{
	if(g.societe.value.length==0) 
		{
		alert('Le champs « Nom Organisme » est obligatoire') ;
		g.societe.focus() ;
		return false ;
		};
		
	if(g.societe.value=="Nom Organisme") 
		{
		alert('Le champs « Nom Organisme » est obligatoire') ;
		g.societe.focus() ;
		return false ;
		};
		
	if(g.statut.value=="Choisissez :") 
		{
		alert('Le champs « Statut » est obligatoire') ;
		g.statut.focus() ;
		return false ;
		};
	
	if(g.activite.value=="Choisissez :") 
		{
		alert('Le champs « Activité » est obligatoire') ;
		g.activite.focus() ;
		return false ;
		};
	
	if(g.titre.value=="Choisissez :") 
		{
		alert('Le champs « Civilité » est obligatoire') ;
		g.titre.focus() ;
		return false ;
		};
		
	if(g.nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		g.nom.focus() ;
		return false ;
		};
		
	if(g.nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		g.nom.focus() ;
		return false ;
		};
		
	if(g.prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		g.prenom.focus() ;
		return false ;
		};
		
	if(g.prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		g.prenom.focus() ;
		return false ;
		};
		
	if(g.fonction.value=="Choisissez :") 
		{
		alert('Le champs « Fonction » est obligatoire') ;
		g.fonction.focus() ;
		return false ;
		};
	
	if(g.adresse1.value.length==0) 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		g.adresse1.focus() ;
		return false ;
		};
		
	if(g.adresse1.value=="Adresse") 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		g.adresse1.focus() ;
		return false ;
		};

	if(g.cp.value.length==0) 
		{
		alert('Le champs « CP » est obligatoire') ;
		g.cp.focus() ;
		return false ;
		};
		
	if(g.cp.value=="CP") 
		{
		alert('Le champs « CP » est obligatoire') ;
		g.cp.focus() ;
		return false ;
		};
		
	if(g.cp.value.length>0 && !telephoneFilter.test(g.cp.value)) 
		{
		alert('Le champs « CP » est incorect') ;
		g.cp.focus() ;
		return false ;
		};
	
	if(g.cp.value.length>0 && g.cp.value.length<5 ) 
		{
		alert('Le champs « CP » se compose de 5 chiffres !') ;
		g.cp.focus() ;
		return false ;
		};

	if(g.ville.value.length==0) 
		{
		alert('Le champs « Ville » est obligatoire') ;
		g.ville.focus() ;
		return false ;
		};
		
	if(g.ville.value=="Ville") 
		{
		alert('Le champs « Ville » est obligatoire') ;
		g.ville.focus() ;
		return false ;
		};

	if(g.telephone.value.length==0) 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		g.telephone.focus() ;
		return false ;
		};
		
	if(g.telephone.value=="T&eacute;l&eacute;phone") 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		g.telephone.focus() ;
		return false ;
		};
		
	if(g.telephone.value.length>0 && !telephoneFilter.test(g.telephone.value)) 
		{
		alert('Le champs « Téléphone » est incorect') ;
		g.telephone.focus() ;
		return false ;
		};
	
	if(g.telephone.value.length>0 && g.telephone.value.length<10) 
		{
		alert('Le champs « Téléphone » se compose de 10 chiffres !') ;
		g.telephone.focus() ;
		return false ;
		};

	if(g.mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		g.mail.focus() ;
		return false ;
		};
		
	if(g.mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		g.mail.focus() ;
		return false ;
		};

	if(g.mail.value.length>0 && !emailFilter.test(g.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		g.mail.focus() ;
		return false ;
		};

	if(g.sponsoring.value=="Choisissez :") 
		{
		alert('Le champs « Sponsoring/Mécénat en 2006 ou 2007 » est obligatoire') ;
		g.statut.focus() ;
		return false ;
		};

/*if (g.newsletter.checked==true || g.newsletterpartner.checked==true) 
		{ 
		g.control.value='1';
		return true;
		} 
		else {
			g.control.value='0';
			alert('Vous devez selectionner au moins une case dans le champs « Sponsoring/Mécénat en 2006 ou 2007 »');
			};*/
			
	if(g.exemples.value.length==0) 
		{
		alert('Le champs « Exemples de sponsoring ou de mécénat effectué en 2006 ou 2007 » est obligatoire') ;
		g.exemples.focus() ;
		return false ;
		};	
};


function checkFormACTU(b) 
{
	if(b.societe.value.length==0) 
		{
		alert('Le champs « Nom Organisme » est obligatoire') ;
		b.societe.focus() ;
		return false ;
		};
		
	if(b.societe.value=="Nom Organisme") 
		{
		alert('Le champs « Nom Organisme » est obligatoire') ;
		b.societe.focus() ;
		return false ;
		};
		
	if(b.statut.value=="Choisissez :") 
		{
		alert('Le champs « Statut » est obligatoire') ;
		b.statut.focus() ;
		return false ;
		};
	
	if(b.activite.value=="Choisissez :") 
		{
		alert('Le champs « Activité » est obligatoire') ;
		b.activite.focus() ;
		return false ;
		};
	
	if(b.titre.value=="Choisissez :") 
		{
		alert('Le champs « Civilité » est obligatoire') ;
		b.titre.focus() ;
		return false ;
		};
		
	if(b.nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		b.nom.focus() ;
		return false ;
		};
		
	if(b.nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		b.nom.focus() ;
		return false ;
		};
		
	if(b.prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		b.prenom.focus() ;
		return false ;
		};
		
	if(b.prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		b.prenom.focus() ;
		return false ;
		};
		
	if(b.fonction.value=="Choisissez :") 
		{
		alert('Le champs « Fonction » est obligatoire') ;
		b.fonction.focus() ;
		return false ;
		};
	
	if(b.adresse1.value.length==0) 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		b.adresse1.focus() ;
		return false ;
		};
		
	if(b.adresse1.value=="Adresse") 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		b.adresse1.focus() ;
		return false ;
		};

	if(b.cp.value.length==0) 
		{
		alert('Le champs « CP » est obligatoire') ;
		b.cp.focus() ;
		return false ;
		};
		
	if(b.cp.value=="CP") 
		{
		alert('Le champs « CP » est obligatoire') ;
		b.cp.focus() ;
		return false ;
		};
		
	if(b.cp.value.length>0 && !telephoneFilter.test(b.cp.value)) 
		{
		alert('Le champs « CP » est incorect') ;
		b.cp.focus() ;
		return false ;
		};
	
	if(b.cp.value.length>0 && b.cp.value.length<5 ) 
		{
		alert('Le champs « CP » se compose de 5 chiffres !') ;
		b.cp.focus() ;
		return false ;
		};

	if(b.ville.value.length==0) 
		{
		alert('Le champs « Ville » est obligatoire') ;
		b.ville.focus() ;
		return false ;
		};
		
	if(b.ville.value=="Ville") 
		{
		alert('Le champs « Ville » est obligatoire') ;
		b.ville.focus() ;
		return false ;
		};

	if(b.telephone.value.length==0) 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		b.telephone.focus() ;
		return false ;
		};
		
	if(b.telephone.value=="T&eacute;l&eacute;phone") 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		b.telephone.focus() ;
		return false ;
		};
		
	if(b.telephone.value.length>0 && !telephoneFilter.test(b.telephone.value)) 
		{
		alert('Le champs « Téléphone » est incorect') ;
		b.telephone.focus() ;
		return false ;
		};
	
	if(b.telephone.value.length>0 && b.telephone.value.length<10) 
		{
		alert('Le champs « Téléphone » se compose de 10 chiffres !') ;
		b.telephone.focus() ;
		return false ;
		};

	if(b.mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		b.mail.focus() ;
		return false ;
		};
		
	if(b.mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		b.mail.focus() ;
		return false ;
		};

	if(b.mail.value.length>0 && !emailFilter.test(b.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		b.mail.focus() ;
		return false ;
		};

	if(b.titre_actu.value=="Titre") 
		{
		alert('Le champs « Titre actualités » est obligatoire') ;
		b.statut.focus() ;
		return false ;
		};
	
	if(b.actualites.value.length==0) 
		{
		alert('Le champs « Actualités » est obligatoire') ;
		b.exemples.focus() ;
		return false ;
		};	
};

function checkFormFOUR(h) 
{
	if(h.titre.value=="Choisissez :") 
		{
		alert('Le champs « Civilité » est obligatoire') ;
		h.titre.focus() ;
		return false ;
		};
	
	if(h.nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		h.nom.focus() ;
		return false ;
		};
		
	if(h.nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		h.nom.focus() ;
		return false ;
		};
		
	if(h.prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		h.prenom.focus() ;
		return false ;
		};
		
	if(h.prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		h.prenom.focus() ;
		return false ;
		};

	if(h.categorie.value=="Choisissez :") 
		{
		alert('Le champs « Catégorie » est obligatoire') ;
		h.categorie.focus() ;
		return false ;
		};

	if(h.adresse1.value.length==0) 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		h.adresse1.focus() ;
		return false ;
		};
		
	if(h.adresse1.value=="Adresse") 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		h.adresse1.focus() ;
		return false ;
		};

	if(h.cp.value.length==0) 
		{
		alert('Le champs « CP » est obligatoire') ;
		h.cp.focus() ;
		return false ;
		};
		
	if(h.cp.value=="CP") 
		{
		alert('Le champs « CP » est obligatoire') ;
		h.cp.focus() ;
		return false ;
		};
		
	if(h.cp.value.length>0 && !telephoneFilter.test(h.cp.value)) 
		{
		alert('Le champs « CP » est incorect') ;
		h.cp.focus() ;
		return false ;
		};
	
	if(h.cp.value.length>0 && h.cp.value.length<5 ) 
		{
		alert('Le champs « CP » se compose de 5 chiffres !') ;
		h.cp.focus() ;
		return false ;
		};

	if(h.ville.value.length==0) 
		{
		alert('Le champs « Ville » est obligatoire') ;
		h.ville.focus() ;
		return false ;
		};
		
	if(h.ville.value=="Ville") 
		{
		alert('Le champs « Ville » est obligatoire') ;
		h.ville.focus() ;
		return false ;
		};

	if(h.telephone.value.length==0) 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		h.telephone.focus() ;
		return false ;
		};
		
	if(h.telephone.value=="T&eacute;l&eacute;phone") 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		h.telephone.focus() ;
		return false ;
		};
		
	if(h.telephone.value.length>0 && !telephoneFilter.test(h.telephone.value)) 
		{
		alert('Le champs « Téléphone » est incorect') ;
		h.telephone.focus() ;
		return false ;
		};
	if(h.telephone.value.length>0 && h.telephone.value.length<10) 
		{
		alert('Le champs « Téléphone » se compose de 10 chiffres !') ;
		h.telephone.focus() ;
		return false ;
		};

	if(h.mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		h.mail.focus() ;
		return false ;
		};
		
	if(h.mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		h.mail.focus() ;
		return false ;
		};

	if(h.mail.value.length>0 && !emailFilter.test(h.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		h.mail.focus() ;
		return false ;
		};

		
	if(h.dptmt.value=="Choisissez :") 
		{
		alert('Le champs « Département » est obligatoire') ;
		h.dptmt.focus() ;
		return false ;
		};
	
	if(h.activite.value=="Choisissez :") 
		{
		alert('Le champs « Spécialisation » est obligatoire') ;
		h.activite.focus() ;
		return false ;
		};
	
	
	if(h.reference.value.length==0) 
		{
		alert('Le champs « Références » est obligatoire') ;
		h.reference.focus() ;
		return false ;
		};
};


function checkFormContact(c) 
{
	if(c.titre.value=="Choisissez :") 
		{
		alert('Le champs « Civilité » est obligatoire') ;
		c.titre.focus() ;
		return false ;
		};
	
	if(c.nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		c.nom.focus() ;
		return false ;
		};
		
	if(c.nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		c.nom.focus() ;
		return false ;
		};
		
	if(c.prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		c.prenom.focus() ;
		return false ;
		};
		
	if(c.prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		c.prenom.focus() ;
		return false ;
		};

	if(c.mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		c.mail.focus() ;
		return false ;
		};
		
	if(c.mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		c.mail.focus() ;
		return false ;
		};

	if(c.mail.value.length>0 && !emailFilter.test(c.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		c.mail.focus() ;
		return false ;
		};

	if(c.message.value.length==0) 
		{
		alert('Le champs « Votre Message » est obligatoire') ;
		c.message.focus() ;
		return false ;
		};

};

function checkFormClient(d) 
{
	if(d.TB_Nom_Utilisateur.value.length==0) 
		{
		alert('Le champs « Choisissez un Pseudo » est obligatoire') ;
		d.TB_Nom_Utilisateur.focus() ;
		return false ;
		};
		
	if(d.TB_Nom_Utilisateur.value=="Choisissez un Pseudo") 
		{
		alert('Le champs « Choisissez un Pseudo » est obligatoire') ;
		d.TB_Nom_Utilisateur.focus() ;
		return false ;
		};
		
	if(d.TB_Nom_Utilisateur.value.length>0 && !PseudoFilter.test(d.TB_Nom_Utilisateur.value)) 
		{
		alert('Votre pseudo doit comporter entre 4 et 20 caractères') ;
		d.datedebprojet.focus() ;
		return false ;
		};
     
	 if(d.TB_Mot_de_Passe.value.length==0) 
		{
		alert('Vous devez choisir un mot de passe') ;
		d.TB_Mot_de_Passe.focus() ;
		return false ;
		};
		
	if(d.TB_Mot_de_Passe.value=="Mot de Passe") 
		{
		alert('Vous devez choisir un mot de passe') ;
		d.TB_Mot_de_Passe.focus() ;
		return false ;
		};
		
	if(d.TB_Mot_de_Passe.value.length>0 && !PseudoFilter.test(d.TB_Mot_de_Passe.value)) 
		{
		alert('Votre mot de passe doit comporter au moins 4 caractères') ;
		d.TB_Mot_de_Passe.focus() ;
		return false ;
		};
 
 	 if(d.TB_Confirmation_Mot_de_Passe.value.length==0) 
		{
		alert('Votre mot de passe n a pas été correctement confirmé') ;
		d.TB_Confirmation_Mot_de_Passe.focus() ;
		return false ;
		};
		
	if(d.TB_Confirmation_Mot_de_Passe.value=="Confirmer Mot de Passe") 
		{
		alert('Votre mot de passe n a pas été correctement confirmé') ;
		d.TB_Confirmation_Mot_de_Passe.focus() ;
		return false ;
		};
		
	/*if(d.TB_Confirmation_Mot_de_Passe.value.length>0 && !PseudoFilter.test(d.TB_Confirmation_Mot_de_Passe.value)) 
		{
		alert('Votre mot de passe n a pas été correctement confirmé') ;
		d.TB_Confirmation_Mot_de_Passe.focus() ;
		return false ;
		};*/
 	
	if(d.TB_nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		d.TB_nom.focus() ;
		return false ;
		};
		
	if(d.TB_nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		d.TB_nom.focus() ;
		return false ;
		};
		
	if(d.TB_prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		d.TB_prenom.focus() ;
		return false ;
		};
		
	if(d.TB_prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		d.TB_prenom.focus() ;
		return false ;
		};
		
	if(d.TB_adresse1.value.length==0) 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		d.TB_adresse1.focus() ;
		return false ;
		};
		
	if(d.TB_adresse1.value=="Adresse") 
		{
		alert('Le champs « Adresse » est obligatoire') ;
		d.TB_adresse1.focus() ;
		return false ;
		};

	if(d.TB_cp.value.length==0) 
		{
		alert('Le champs « CP » est obligatoire') ;
		d.TB_cp.focus() ;
		return false ;
		};
		
	if(d.TB_cp.value=="CP") 
		{
		alert('Le champs « CP » est obligatoire') ;
		d.TB_cp.focus() ;
		return false ;
		};
		
	if(d.TB_cp.value.length>0 && !telephoneFilter.test(d.TB_cp.value)) 
		{
		alert('Le champs « CP » est incorect') ;
		d.TB_cp.focus() ;
		return false ;
		};
	
	if(d.TB_cp.value.length>0 && d.TB_cp.value.length<5 ) 
		{
		alert('Le champs « CP » se compose de 5 chiffres !') ;
		d.TB_cp.focus() ;
		return false ;
		};

	if(d.TB_ville.value.length==0) 
		{
		alert('Le champs « Ville » est obligatoire') ;
		d.TB_ville.focus() ;
		return false ;
		};
		
	if(d.TB_ville.value=="Ville") 
		{
		alert('Le champs « Ville » est obligatoire') ;
		d.TB_ville.focus() ;
		return false ;
		};

	if(d.TB_mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		d.TB_mail.focus() ;
		return false ;
		};
		
	if(d.TB_mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		d.mail.focus() ;
		return false ;
		};

	if(d.TB_mail.value.length>0 && !emailFilter.test(d.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		d.mail.focus() ;
		return false ;
		};
		
	if(d.TB_cgv.value=="") 
		{
		alert('Vous devez accepter les conditions générales de vente') ;
		d.cgv.focus() ;
		return false ;
		};
};


function checkFormTemoignage(s) 
{
	if(s.titre.value=="Choisissez :") 
		{
		alert('Le champs « Civilité » est obligatoire') ;
		s.titre.focus() ;
		return false ;
		};
	
	if(s.nom.value.length==0) 
		{
		alert('Le champs « Nom » est obligatoire') ;
		s.nom.focus() ;
		return false ;
		};
		
	if(s.nom.value=="Nom") 
		{
		alert('Le champs « Nom » est obligatoire') ;
		s.nom.focus() ;
		return false ;
		};
		
	if(s.prenom.value.length==0) 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		s.prenom.focus() ;
		return false ;
		};
		
	if(s.prenom.value=="Prénom") 
		{
		alert('Le champs « Prénom » est obligatoire') ;
		s.prenom.focus() ;
		return false ;
		};
	
	if(s.telephone.value.length==0) 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		s.telephone.focus() ;
		return false ;
		};
		
	if(s.telephone.value=="T&eacute;l&eacute;phone") 
		{
		alert('Le champs « Téléphone » est obligatoire') ;
		s.telephone.focus() ;
		return false ;
		};
		
	if(s.telephone.value.length>0 && !telephoneFilter.test(s.telephone.value)) 
		{
		alert('Le champs « Téléphone » est incorect') ;
		s.telephone.focus() ;
		return false ;
		};
	if(s.telephone.value.length>0 && s.telephone.value.length<10) 
		{
		alert('Le champs « Téléphone » se compose de 10 chiffres !') ;
		s.telephone.focus() ;
		return false ;
		};

	if(s.mail.value.length==0) 
		{
		alert('Le champs « Mail » est obligatoire') ;
		s.mail.focus() ;
		return false ;
		};
		
	if(s.mail.value=="Mail") 
		{
		alert('Le champs « Mail » est obligatoire') ;
		s.mail.focus() ;
		return false ;
		};

	if(s.mail.value.length>0 && !emailFilter.test(s.mail.value)) 
		{
		alert('Le champs « Mail » est incorect') ;
		s.mail.focus() ;
		return false ;
		};

	if(s.nomprojet.value.length==0) 
		{
		alert('Le champs « Nom du Projet » est obligatoire') ;
		s.nomprojet.focus() ;
		return false ;
		};
		
	if(s.nomprojet.value=="Nom du Projet") 
		{
		alert('Le champs « Nom du Projet » est obligatoire') ;
		s.nomprojet.focus() ;
		return false ;
		};
	
	if(s.descriptionprojet.value.length==0) 
		{
		alert('Le champs « Description du Projet » est obligatoire') ;
		s.descriptionprojet.focus() ;
		return false ;
		};
		
	if(s.biais.value=="Choisissez :") 
		{
		alert('Le champs « Par quel biais de notre site (...) » est obligatoire') ;
		s.biais.focus() ;
		return false ;
		};
	
	if(s.genre.value=="Choisissez :") 
		{
		alert('Le champs « Quel genre de partenariat (...) » est obligatoire') ;
		s.genre.focus() ;
		return false ;
		};
	
	if(s.avantages_asso.value.length==0) 
		{
		alert('Le champs « Précisez les avantages dont vous avez bénéficiés » est obligatoire') ;
		s.avantages_asso.focus() ;
		return false ;
		};
	if(s.avantages_partner.value.length==0) 
		{
		alert('Le champs « Précisez les avantages que vous avez accordés » est obligatoire') ;
		s.avantages_partner.focus() ;
		return false ;
		};
	
};


/*FONCTIONS POUR FICHIER ETP*/
//PLF-http://www.jejavascript.net/
var plecran
function pleinecran() {
ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
if (ie4)
plecran=window.open("Etp2.php", "plecran", "fullscreen=yes");
else
plecran=window.open("Etp2.php", "plecran", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, resizable=no");
}

/*FONCTIONS POUR FICHIER ETP2*/

var DisableKeys = Array(
112,113,114,115,116,117,118,119,120,121,122,123,// Touches F1 à F12
154,17,44,111,99//imprim ecran
);
var DisableCtrlKeys = Array(
80,112,// p
65,//a
67,//c
68,// d
86,//v
85//u code source
);

function bloqueTouche(e) 
{
	var ie = window.event;
		if (ie)
			{
			e = window.event;
			}
		if(e.ctrlKey) //Touche Ctrl enfoncée
			{ 
			for (i=0;i<DisableCtrlKeys.length;i++) 
				{
				if(e.keyCode == DisableCtrlKeys[i]) 
					{
					if (ie) 
						{
						e.keyCode=0;
						e.returnValue = false;
						}
					return false;
					}
				}
			}
			for (i=0;i<DisableKeys.length;i++) 
			{
			if (e.keyCode == DisableKeys[i]) 
				{
				if (ie) 
					{
					e.keyCode=0;
					e.returnValue = false;
					}
				return false;
				}
			}
}


/*FONCTION POUR INTERIRE IMPRIM ECRAN, MAIS MESSAGE D'ALERTE
function clp_clear() {
   var content=window.clipboardData.getData("Text");
   if (content==null) {
      window.clipboardData.clearData();}
   setTimeout("clp_clear();",1000);}
  
DANS BODY : onload='clp_clear()'








/************************************************************************************************************************************************/

/* 
function platformDetect()
{
  if(navigator.appVersion.indexOf("Win") != -1)
  {
    alert("Windows");
  }
  else if(navigator.appVersion.indexOf("Mac") != -1)
  {
    alert("Macintosh");
  }
  else alert("Other");
}
*/

/*
function plein-ecran()
{
  window.moveTo(0,0);
  window.resizeTo(screen.availWidth,screen.availHeight);
}
*/

/* Click Droit Interdit 
function disableRightClick(e)
{
  var message = "Click Droit Proscrit";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    alert(message);
    return false;
  }
}
disableRightClick();
*/

/* 
couleur d'un hyperlien d'un objet document
document.linkColor="white"; 
document.linkColor="#FFFFFF";
*/

/* 
couleur d'un hyperlien déjà visité d'un objet document
document.vlinkColor="white"; 
document.vlinkColor="#FFFFFF";
*/

/*
function MM_jumpMenu(targ,selObj,restore)
			{ //v3.0
				eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			  	if (restore) selObj.selectedIndex=0;
			}
*/


/* Fonctions Pour Cacher le Menu 2

function hideMenu() 
{
	chrone_attente=1;
	myinterval = setTimeout(offMenu,1000);
}

function offMenu() 
{
	if (global_id!="") 
		{	document.getElementById('smenu'+global_id).style.display = "none";
			global_id="";
			stopChrone();
		}
}

function stopChrone() 
{
	window.clearTimeout(myinterval);
	chrone_attente=0;
}
*/