// JavaScript Document

function show()
{
if (table.style.display=="none")
{
table.style.display="";
}
else
{
table.style.display="none";
}
}


function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape(favTitle));
  }
}

function verifMail(a) {
testm = false ;

for (var j=1 ; j<(a.length) ; j++) {
if (a.charAt(j)=='@') { 
if (j<(a.length-4)){ 
for (var k=j ; k<(a.length-2) ; k++) { 
if (a.charAt(k)=='.') testm = true; 
} 
} 
} 
} 
if (testm==false) alert('Votre adresse e-mail est incorrecte.'); 

return testm ; 

}

function validation(formulaire)
	{
	if (formulaire.cherche.value == "")
		{ alert ("Vous devez entrer un mot à rechercher !");
		formulaire.cherche.focus();
		return (false);
		}
	if (formulaire.cherche.value.length < 3)
		{ alert ("Vous devez entrer un mot de 3 lettres minimum !");
		formulaire.cherche.focus();
		return (false);
		}
}

function validvote()
	{
		document.envoivote.submit();
	}
