
//validation formulaire
function validation() 
{ 
 
        if(document.formulaire.posNom.value == "") 
		{ 
        alert ('Veuillez entrer un Nom'); 
        document.formulaire.posNom.focus(); 
        return false; 
    	} 
		var posEmail = document.formulaire.posEmail.value; 
        if (posEmail.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
        { 
            alert ('Entrez une adresse Email valide'); 
            document.formulaire.posEmail.focus(); 
            return false; 
        }
		if(document.formulaire.posMessage.value == "") 
		{ 
        alert ('Veuillez entrer un message'); 
        document.formulaire.posMessage.focus(); 
        return false; 
    	}
else {
	document.formulaire.envoyer.disabled=true;
	document.formulaire.envoyer.value='Patientez...';
	return true;}
}








//script pour la date

navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
	navok = true;
else
	navok = false;

today = new Date;
jour = today.getDay();
numero = today.getDate();
if (numero<10)
	numero = "0"+numero;
mois = today.getMonth();
if (navok)
	annee = today.getFullYear();
else
	annee = today.getYear();
TabJour = new Array("<font face='trebuchet MS' color='black' size='1 px'>Dimanche","<font face='trebuchet MS' color='black' size='1 px'>Lundi","<font face='trebuchet MS' color='black' size='1 px'>Mardi","<font face='trebuchet MS' color='black' size='1 px'>Mercredi","<font face='trebuchet MS' color='black' size='1 px'>Jeudi","<font face='trebuchet MS' color='black' size='1 px'>Vendredi","<font face='trebuchet MS' color='black' size='1 px'>Samedi");
TabMois = new Array("janvier","février","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","décembre");
messageDate = TabJour[jour] + " " + numero + " " + TabMois[mois] + " " + annee;




//loader
 
 /*
 FAIRE PATIENTER VOS VISITEURS 2
 SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
 http://www.editeurjavascript.com
 
 PLACEZ CE SCRIPT JUSTE APRES LA BALISE <BODY>
 */
 
 /* PARAMETRAGE */
 news_larg=400;
 news_haut=50;
 news_box_color='white';
 news_cache_color='#2A8056';
 news_ligne_color='#000000';
 news_box_font="Verdana";
 news_box_fontcolor = "#2A8056";
 news_box_fontsize = 11;
 news_html = "Veuillez patienter<BR>";
 
 /* FONCTIONS */
 
 function news_step_one()
 	{
  	if(news_mode == 1)
  		{
  		news_hligne_long += 1;
  		news_vligne_long += 1;
 		if(news_hligne_long > (news_larg+100))
 			news_mode = 2;
  		}
  	else
  		{
  		news_hligne_long -= 1;
  		news_vligne_long -= 1;
 		if(news_hligne_long < news_larg)
 			news_mode = 1;
  		}
 	var tempX = Math.round((news_sreen_X-news_hligne_long)/2);
 	var tempY = Math.round((news_sreen_Y-news_vligne_long)/2);
 	document.getElementById("ligne1").from=news_lign_X+","+tempY
 	document.getElementById("ligne1").to=news_lign_X+","+(tempY+news_vligne_long)
 	document.getElementById("ligne2").from=(news_lign_X+news_larg)+","+tempY
 	document.getElementById("ligne2").to=(news_lign_X+news_larg)+","+(tempY+news_vligne_long)
 	document.getElementById("ligne3").from=tempX+","+news_lign_Y
 	document.getElementById("ligne3").to=(tempX+news_hligne_long)+","+news_lign_Y
 	document.getElementById("ligne4").from=tempX+","+(news_lign_Y+news_haut)
 	document.getElementById("ligne4").to=(tempX+news_hligne_long)+","+(news_lign_Y+news_haut)
 	if(!news_load)
 		setTimeout("news_step_one()",1)
 	else 
 		{
 		document.getElementById("news_cache").innerHTML = '';
 		document.getElementById("news_cache").style.visibility = 'hidden';
 		}
 	}
 
 function news_stop()
 	{
 	news_load=true
 	}
 
 
 /* ACTIONS */
 
 news_html_haut = '<TABLE WIDTH='+(news_larg-2)+' HEIGHT='+(news_haut-2)+'><TR><TD STYLE="font-family:'+news_box_font+';color:'+news_box_fontcolor+';font-size:'+news_box_fontsize+'px" ALIGN=center>';
 news_html_bas = "</TD></TR></TABLE>";
 
 news_hligne_long = news_larg+20;
 news_vligne_long = news_haut+20;
 news_alpha = 50;
 news_mode = 1;
 news_load = false;
 
 news_sreen_X=document.body.clientWidth;
 news_sreen_Y=document.body.clientHeight;
 
 news_lign_X = Math.round((news_sreen_X-news_larg)/2);
 news_lign_Y = Math.round((news_sreen_Y-news_haut)/2);
 
 if(document.getElementById && document.all)
 	{
 	document.write('<DIV ID=news_cache STYLE="position:absolute;top:0;left:0;width:'+news_sreen_X+';height:'+news_sreen_Y+';z-index:5;background:'+news_cache_color+'">');
 	document.write('<DIV ID=news_box STYLE="position:absolute;top:'+news_lign_Y+';left:'+news_lign_X+';width:'+news_larg+';height:'+news_haut+';background:'+news_box_color+';z-index:30">');
 	document.write(news_html_haut+news_html+news_html_bas)
 	document.write('</DIV></DIV>');
 	code="<v:line id=ligne1 style='LEFT:0;POSITION:absolute;TOP:0;z-index:50' strokeweight='1pt' strokecolor='"+news_ligne_color+"'></v:line>";
 	code+="<v:line id=ligne2 style='LEFT:0;POSITION:absolute;TOP:0;z-index:50' strokeweight='1pt' strokecolor='"+news_ligne_color+"'></v:line>";
 	code+="<v:line id=ligne3 style='LEFT:0;POSITION:absolute;TOP:0;z-index:50' strokeweight='1pt' strokecolor='"+news_ligne_color+"'></v:line>";
 	code+="<v:line id=ligne4 style='LEFT:0;POSITION:absolute;TOP:0;z-index:50' strokeweight='1pt' strokecolor='"+news_ligne_color+"'></v:line>";
 	document.getElementById("news_cache").insertAdjacentHTML("afterBegin",code)
 
 	news_step_one();
 	window.onload = news_stop;
 	}


