function retour()
{
	window.history.go(-1);
}

function imgOver(img)
{
	img.style.border = "#ff614d solid 1px";
}

function imgOut(img)
{
	img.style.border = "none";
}

function imgOver2(img)
{
	img.style.border = "#74bf3b solid 1px";
}


function imgOut2(img)
{
	img.style.border = "black solid 1px";
}

function OuvrirPop(url,nom,haut,Gauche,largeur,hauteur,options) 
{
	ouvpop=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}

function show_div(id)
{
	for (var i = 1; i <= 4; i++)
	{
		if (i == id)
		{
			document.getElementById('div_' + i).style.display = 'block';
		}	
		else
		{
			document.getElementById('div_' + i).style.display = 'none';
		}
	}
}

function verifContact() 
	{	
		if (document.contact.nom.value == '')
		{
		alert("Veuillez nous indiquer votre Nom SVP");
		return false;
		}
			else
			{
				if (document.contact.email.value == '')
				{
				alert("Votre adresse Email est indispensable si vous souhaitez une réponse");
				return false;
				}
					else
					{
						if (document.contact.commentaire.value == '')
						{
						alert("Vous n'avez redigé aucune demande/question, veuillez remplir le champ Commentaire SVP");
						return false;					
						}
					}
			}
	}		

function VerifForm(formulaire)
{
	adresse = formulaire.mail.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
	{
		formulaire.submit();
		return(true);
	}
	else
	{
		alert('Entrez une adresse e-mail valide!!');
		return(false);
	}
}

function wait()
{
	document.getElementById('wait').style.display = "block";
	document.body.style.cursor=(document.body.style.cursor=="wait") ? "default" : "wait"; 
} 
