	// *********************************************************************************************
	//		Fonction de vérication email
	// *********************************************************************************************
	function VerificationEmail(elm){
		if (elm.indexOf("@") != "-1" && elm.indexOf(".") != "-1" && elm != ""){
			return true;
		}
		else{
			return false;
		}
	}
	
	
	// *********************************************************************************************
	//		Ajout aux favoris - marque page (compatible IE, FF)
	// *********************************************************************************************
	function add_favoris() {
		var nom_site = document.title;
		var url_site = document.URL ;

		if ( navigator.appName != "Microsoft Internet Explorer" ) {
			window.sidebar.addPanel(nom_site,url_site,"");
		} else {
			window.external.AddFavorite(url_site,nom_site);
		}
	} 

	// *********************************************************************************************
	//		Ouvre une fenetre pop-up affichant le Mini CV d'une personne
	// *********************************************************************************************
	function minicv(ind, mot){
		window.open("/diplome/mini_cv.php?id="+ind+"&mot="+mot,"","width=460,height=600,top=50,left=50,scrollbars=yes");
	}

	function mini_cv(ind, mot){
		window.open("../diplome/mini_cv.php?id="+ind+"&mot="+mot,"","width=460,height=600,top=50,left=50,scrollbars=yes");
	}


	function offre(ind, mot){
		window.open("../diplome/fiche_offre.php?id="+ind+"&mot="+mot,"","width=460,height=600,top=50,left=50,scrollbars=yes");
	}

	// *********************************************************************************************
	//		Ouvre une fenetre pop-up centrer sur l'ecran
	// *********************************************************************************************
	function WinOpCenter(url, titre, longueur, hauteur){
		// Calcul la taille de l'ecran
		w = screen.width;
		h = screen.height;

		// Calcul le centrage de la fenetre
		nivoleft = (w - longueur)/2;
		nivotop = (h - hauteur)/2;

		// Ouverture de la fenetre
		window.open(url,titre,"width="+longueur+", height="+hauteur+", top="+nivotop+", left="+nivoleft+", scrollbars=yes");
	}


	
	// *********************************************************************************************
	//		Fonction qui permet d'afficher ou non un Ã©lÃ©ment cahcher par CSS
	//
	//		<a href="#" onClick="AffOuPas(4);return false;"><b>G</b>estion des entreprises</a>
	//			<table border="0" cellpadding="0" cellspacing="0" class="tablo2" id="AffT24">
	//
	// *********************************************************************************************
	function AffOuPas(id){
		if (document.getElementById('AffT2'+id).style.display=='block'){
			document.getElementById('AffT2'+id).style.display  = 'none';			//	Efface Tableau 2
		}
		else{
			document.getElementById('AffT2'+id).style.display  = 'block';		//	Affiche Tableau 2
			//document.getElementById('AffT2'+id).style.width  = '100%';			//	Style Tableau 2
		}
	}
