//fonction de vérification de l'email et des champs page contact.
function verif(email) 
{
	var arobase = email.indexOf("@")
	var point = email.lastIndexOf(".")
	if (document.contact.sender_name.value=="" || document.contact.sender_surname.value=="" || document.contact.message.value=="")
		{
			alert("Veuillez remplir tous les champs marqués d'une étoile");
			return false;
		}
	else 
	{ 
		if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
		{ 
		alert("Cet Email est erroné !");
		return false; 
		}
		else
		{
			return true;
		}
	}
}
//fonction de vérification de la mailing liste.
function verifmailing(email) {
	var arobase = email.indexOf("@");
	var point = email.lastIndexOf(".");
	if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
	{
		alert('Email Incorrect !');
		return false;
	}
	else
	{
		return true;
	}
}

function verif(email) 
{
 var arobase = email.indexOf("@")
 var point = email.lastIndexOf(".")
 if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
 { 
	alert("Cet Email est erroné !");
	return false 
 }
 else 
 { 
	if (document.reservation.nom.value=="" || 
		document.reservation.prenom.value=="" || 
		document.reservation.message.value=="" ||
		document.reservation.adresse.value=="" ||
		document.reservation.cp.value=="" ||
		document.reservation.ville.value=="" ||
		document.reservation.email.value=="" ||
		document.reservation.nbr_pers.value=="" ||
		document.reservation.menu.value=="" ||
		document.reservation.textarea.value=="" ||
		document.reservation.date.value=="")
	{
		alert("Veuillez remplir tous les champs marqués d'une étoile");
		return false;
	}
	else
	{
		return true 
	}
 }
}

// fonction pour agrandir les photos
function affichemaxi(chemin,popup_height,popup_width,titre)
{
	if (!titre) titre="Agrandissement photo";
	var html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><IMG SRC="'+chemin+'") onclick="window.close()" style="cursor:pointer"></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,height='+popup_height+',width='+popup_width );
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
}

// Fonction qui ouvre une popup
function ouvre_popup(page,taille)
{
	window.open(page,'info','top=200,left=200,' + taille + ',resizable=no,scrollbars=yes,fullscreen=no');
}

function addFav()
{
	if (document.all)
	{
		window.external.AddFavorite(location.href, document.title);
	}
	else
	{
		alert('Vous pouvez faire CTRL + D pour ajouter cette page dans vos signets, ou favoris.')
	}
}

<!-- fonction pour verif moteur de recherche
function verif_moteur()
{
	if (document.moteurrecherche.moteur_recherche.value=="")
	{
		alert("Veuillez préciser votre recherche");
		return false;
	}
	else
	{
		return true;
	}
}

<!-- Fonction de vérification formulaire
function verif_devis(email)
{
	var arobase = email.indexOf("@")
	var point = email.lastIndexOf(".")
	if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
	{ 
		alert("Cet Email est erroné !");
		return false; 
	}
	else 
	{ 
		if (document.devis.nom.value=="" || document.devis.prenom.value=="" || document.devis.adresse.value=="" || document.devis.ville.value=="" || document.devis.code_postal.value=="")
		{
			alert("Veuillez remplir tous les champs marqués d'une étoile");
			return false;
		}
		else
		{
			return true;
		}
	}
}
<!-- DEBUT DU SCRIPT -->
/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
imgPath = new Array;
SiClickGoTo = new Array;
if (document.images)
	{
	i0 = new Image;
	i0.src = 'gifs/diaporama/3.jpg';
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = 'gifs/diaporama/6.jpg';
	SiClickGoTo[1] = "";
	imgPath[1] = i1.src;
	i2 = new Image;
	i2.src = 'gifs/diaporama/19.jpg';
	imgPath[2] = i2.src;
	i3 = new Image;
	i3.src = 'gifs/diaporama/8.jpg';
	imgPath[3] = i3.src;
	i4 = new Image;
	i4.src = 'gifs/diaporama/2.jpg';
	imgPath[4] = i4.src;
	i5 = new Image;
	i5.src = 'gifs/diaporama/5.jpg';
	imgPath[5] = i5.src;
	i6 = new Image;
	i6.src = 'gifs/diaporama/7.jpg';
	imgPath[6] = i6.src;
	i7 = new Image;
	i7.src = 'gifs/diaporama/4.jpg';
	imgPath[7] = i7.src;
	i8 = new Image;
	i8.src = 'gifs/diaporama/1.jpg';
	imgPath[8] = i8.src;
	i9 = new Image;
	i9.src = 'gifs/diaporama/10.jpg';
	imgPath[9] = i9.src;
	i10 = new Image;
	i10.src = 'gifs/diaporama/11.jpg';
	imgPath[10] = i10.src;
	i11 = new Image;
	i11.src = 'gifs/diaporama/12.jpg';
	imgPath[11] = i11.src;
	i12 = new Image;
	i12.src = 'gifs/diaporama/13.jpg';
	imgPath[12] = i12.src;
	i13 = new Image;
	i13.src = 'gifs/diaporama/14.jpg';
	imgPath[13] = i13.src;
	i14 = new Image;
	i14.src = 'gifs/diaporama/15.jpg';
	imgPath[14] = i14.src;
	i15 = new Image;
	i15.src = 'gifs/diaporama/16.jpg';
	imgPath[15] = i15.src;
	i16 = new Image;
	i16.src = 'gifs/diaporama/17.jpg';
	imgPath[16] = i16.src;
	i17 = new Image;
	i17.src = 'gifs/diaporama/18.jpg';
	imgPath[17] = i17.src;
	i18 = new Image;
	i18.src = 'gifs/diaporama/9.jpg';
	imgPath[18] = i18.src;
	i19 = new Image;
	i19.src = 'gifs/diaporama/20.jpg';
	imgPath[19] = i19.src;
	i20 = new Image;
	i20.src = 'gifs/diaporama/21.jpg';
	imgPath[20] = i20.src;
	i21 = new Image;
	i21.src = 'gifs/diaporama/22.jpg';
	imgPath[21] = i21.src;
	i22 = new Image;
	i22.src = 'gifs/diaporama/23.jpg';
	imgPath[22] = i22.src;
	i23 = new Image;
	i23.src = 'gifs/diaporama/24.jpg';
	imgPath[23] = i23.src;
	i24 = new Image;
	i24.src = 'gifs/diaporama/25.jpg';
	imgPath[24] = i24.src;
	i25 = new Image;
	i25.src = 'gifs/diaporama/26.jpg';
	imgPath[25] = i25.src;
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function StartAnim()
	{
	if (document.images)
		{
		document.write('<IMG SRC="gifs/diaporama/1.jpg" CLASS="contour" BORDER=0 ALT="Restaurant afro-antillais Toucouleur" NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1)">');
		defilimg()
		}
	else
		{
		document.write('<IMG SRC="gifs/diaporama/1.jpg" BORDER=0>')
		}
	}
function ImgDest()
	{
	document.location.href = SiClickGoTo[a-1];
	}
function defilimg()
	{
	if (a == 26)
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg()",5000);
		a++;
		}
	}
<!-- FIN DU SCRIPT -->