var Timer=null;
var Pas = 5;
function moveLayer(Sens) {
   var Objet=document.getElementById("contenu");
       if(parseInt(Objet.style.left) + (Pas*Sens)>0)  {
      clearTimeout(Timer);
   }
   else if(parseInt(Objet.style.left) + (Pas*Sens)<-(Objet.offsetWidth-document.getElementById("support").offsetWidth)) {

      clearTimeout(Timer);
   }
    else {
    
        Objet.style.left = (parseInt(Objet.style.left) + (Pas*Sens)) + "px";
        
   }
   Timer = setTimeout("moveLayer(" + Sens + ");", 30);
}

function WindowOpenCentrer(theURL,winName,features,width,height)
{

	var top=(screen.height-height)/2;
	var left=(screen.width-width)/2;
	window.open(theURL,winName,"top="+top+",left="+left+",width="+width+",height="+height+","+features);
}
function WindowOpen(theURL,winName,features,width,height,place)
{

	var top=0;
	if (place == "gauche") {left=0;}
	if (place == "droite") {left=screen.width-width;}
	window.open(theURL,winName,"top="+top+",left="+left+",width="+width+",height="+height+","+features);
}

function verification()
{
 if(document.formulaire.mail.value == "") { 
   alert("Merci d'indiquer votre adresse e-mail");
   document.formulaire.mail.focus();
   return false;
  }
   else
 if(document.formulaire.mail.value.indexOf('@') == -1) {
   alert("Merci d'indiquer une adresse email correcte");
   document.formulaire.mail.focus();
   return false;
  }
return true
}


