//fonction de vérification de l'email et des champs page contact.
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.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
		{
			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;
	}
}

// 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+'"></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)
{
	window.open(page,'info','top=200,left=200,width=650,height=450,resizable=no,scrollbars=yes,fullscreen=no');
}

function ouvre_plan()
{
	window.open("plan.php",'info','top=200,left=200,width=600,height=700,resizable=no,scrollbars=no,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/photo_01_pt.jpg';
	SiClickGoTo[0] = "";
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = 'gifs/photo_02_pt.jpg';
	SiClickGoTo[1] = "";
	imgPath[1] = i1.src;
	i2 = new Image;
	i2.src = 'gifs/photo_03_pt.jpg';
	SiClickGoTo[2] = "";
	imgPath[2] = i2.src;
	i3 = new Image;
	i3.src = 'gifs/photo_04_pt.jpg';
	SiClickGoTo[3] = "";
	imgPath[3] = i3.src;
	i4 = new Image;
	i4.src = 'gifs/photo_05_pt.jpg';
	SiClickGoTo[4] = "";
	imgPath[4] = i4.src;
	i5 = new Image;
	i5.src = 'gifs/photo_06_pt.jpg';
	SiClickGoTo[5] = "";
	imgPath[5] = i5.src;
	i6 = new Image;
	i6.src = 'gifs/photo_07_pt.jpg';
	SiClickGoTo[6] = "";
	imgPath[6] = i6.src;
	i7 = new Image;
	i7.src = 'gifs/photo_08_pt.jpg';
	SiClickGoTo[7] = "";
	imgPath[7] = i7.src;
	i8 = new Image;
	i8.src = 'gifs/photo_09_pt.jpg';
	SiClickGoTo[8] = "";
	imgPath[8] = i8.src;
	i9 = new Image;
	i9.src = 'gifs/photo_10_pt.jpg';
	SiClickGoTo[9] = "";
	imgPath[9] = i9.src;
	i10 = new Image;
	i10.src = 'gifs/photo_11_pt.jpg';
	SiClickGoTo[10] = "";
	imgPath[10] = i10.src;
	i11 = new Image;
	i11.src = 'gifs/photo_13_pt.jpg';
	SiClickGoTo[11] = "";
	imgPath[11] = i11.src;
	i12 = new Image;
	i12.src = 'gifs/photo_14_pt.jpg';
	SiClickGoTo[12] = "";
	imgPath[12] = i12.src;
	i13 = new Image;
	i13.src = 'gifs/photo_15_pt.jpg';
	SiClickGoTo[13] = "";
	imgPath[13] = i13.src;
	i14 = new Image;
	i14.src = 'gifs/photo_16_pt.jpg';
	SiClickGoTo[14] = "";
	imgPath[14] = i14.src;
	i15 = new Image;
	i15.src = 'gifs/photo_17_pt.jpg';
	SiClickGoTo[15] = "";
	imgPath[15] = i15.src;
	i16 = new Image;
	i16.src = 'gifs/photo_18_pt.jpg';
	SiClickGoTo[16] = "";
	imgPath[16] = i16.src;
	i17 = new Image;
	i17.src = 'gifs/photo_19_pt.jpg';
	SiClickGoTo[17] = "";
	imgPath[17] = i17.src;
	i18 = new Image;
	i18.src = 'gifs/photo_20_pt.jpg';
	SiClickGoTo[18] = "";
	imgPath[18] = i18.src;
	i19 = new Image;
	i19.src = 'gifs/photo_21_pt.jpg';
	SiClickGoTo[19] = "";
	imgPath[19] = i19.src;
	i20 = new Image;
	i20.src = 'gifs/photo_22_pt.jpg';
	SiClickGoTo[20] = "";
	imgPath[20] = i20.src;
	i21 = new Image;
	i21.src = 'gifs/photo_23_pt.jpg';
	SiClickGoTo[21] = "";
	imgPath[21] = i21.src;
	i22 = new Image;
	i22.src = 'gifs/photo_24_pt.jpg';
	SiClickGoTo[22] = "";
	imgPath[22] = i22.src;
	i23 = new Image;
	i23.src = 'gifs/photo_25_pt.jpg';
	SiClickGoTo[23] = "";
	imgPath[23] = i23.src;
	i24 = new Image;
	i24.src = 'gifs/photo_26_pt.jpg';
	SiClickGoTo[24] = "";
	imgPath[24] = i24.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/anim/1.jpg" BORDER=0 ALT=Menu NAME=defil style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1)">');
		defilimg()
		}
	else
		{
		document.write('<IMG SRC="gifs/anim/1.jpg" BORDER=0>')
		}
	}
function ImgDest()
	{
	document.location.href = SiClickGoTo[a-1];
	}
function defilimg()
	{
	if (a == 25)
		{
		a = 0;
		}
	if (document.images)
		{
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		document.defil.alt = SiClickGoTo[a];
		tempo3 = setTimeout("defilimg()",3000);
		a++;
		}
	}