function PopWin(url,nom,mode)
{
	popupWin = window.open(url,nom,mode);
	if (window.focus)
		popupWin.focus();
}
function champObligatoire(formulaire,champ)
	{
	var contenu = eval("document."+formulaire+"."+champ+".value");

	if (contenu.length >0)
		{
			return true;
		}
	else
		{
			return false;
		}
	}
function listeObligatoire(formulaire,champ)
	{
	var liste = eval("document."+formulaire+"."+champ);

	if (liste.options.selectedIndex > 0)
		{
			return true;
		}
	else
		{
			return false;
		}
	}
function verifEmail2(formulaire,champ)
	{
	var adresse = eval("document."+formulaire+"."+champ+".value");
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{
			return true;
		}
	else
		{
			return false;
		}
	}
function verifEmail(formulaire,champ)
	{
	var adresse = eval("document."+formulaire+"."+champ+".value");
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		{
			document.formulaire.news.value="news";
			document.formulaire.submit();
		}
	else
		{
			alert('Veuillez entrer une adresse email valdide.');
		}
	}
function voirActu(id)
	{
		document.formulaire.idactu.value=id;
		document.formulaire.action='/actualite/ActualiteDetail.php';
		document.formulaire.submit();
	}

function voirAgenda(id)
	{
		document.formulaire.idagenda.value=id;
		document.formulaire.action='/agenda/Agenda.php';
		document.formulaire.submit();
	}

function voirAgendaCalen(date)
	{
		document.formulaire.date.value=date;
		document.formulaire.action='/agenda/Agenda.php';
		document.formulaire.submit();
	}

function rechercheAnnuaire()
	{
		document.formulaire.action='resultats.php';
		document.formulaire.submit();
	}

function rechercheAnnuaire2()
	{
		document.formulaire.action='annuaire/resultats.php';
		document.formulaire.submit();
	}

function rechercheCalen()
	{
		document.formulaire.submit();
	}

function voirArchive(idnews)
	{
		document.formulaire.idnews.value=idnews;
		document.formulaire.submit();
	}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function nul()
{
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function gotopage(page)
	{
		document.formulaire.page.value=page;
		document.formulaire.submit();
	}

function gotoalpha(mode)
	{
		document.formulaire.mode.value=mode;
		document.formulaire.submit();
	}

function forgotpsw()
	{
	win = window.open('psw.php', 'popup', 'toolbar = no, status = no, location=no, menubar=no, scrollbars=yes,resizable=no, height=200,width=300,left=180,top=280');
	}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function displayLogin(msg)
{
	win = window.open('', 'popup', 'toolbar = no, status = no, location=no, menubar=no, scrollbars=yes,resizable=no, height=200,width=300,left=180,top=280');
	win.document.write("<html>");
	win.document.write("<head>");
	win.document.write("<title>Erreur de login</title>");
	win.document.write("<meta http-equiv='Content-Type' content='text/html' charset='iso-8859-1'>");
	win.document.write("<link rel='stylesheet' href='../feuille_style.css' type='text/css'>");
	win.document.write("</head>");
	win.document.write("<body>");
  win.document.write("<table width=\"100%\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\">");
  win.document.write("<tr>");
  win.document.write("<td valign=\"top\" align=\"left\" class=\"texte11Noir2\"><span align=\"left\">");
  win.document.write(msg);
  win.document.write("</span></td>");
  win.document.write("</tr>");
  win.document.write("</table>");
	win.document.write("<br><center><input type='button' value='Fermer' onclick='window.close()' class='bouton'></center>");
	win.document.write("</body>");
	win.document.write("</html>");
	win.document.close();
	win.focus();
}