//PRELOAD FUNCTIONS FOR FRENCH HEADER INCLUDES

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function Vide(objet, contenu)
{
if (objet.value==contenu) objet.value="";
}

 
// ****** Script de controle des boutons radios ********

function radio_button_checker()
{
	
// set var form name
// ancien nom = form
// var nomduformulaire = form;
// set var radio_choice to false
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < form.LCEN.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (form.LCEN[counter].checked)
radio_choice = true; 
}

if (!radio_choice)
{
// If there were no selections made display an alert box 
alert("Veuillez nous confirmer votre souhait de recevoir nos informations par email")
return (false);
}
return (true);
}
// ******** Fin de script des boutons radios *********

// ******** Fonction SPAM Checker *******

function SpVerif () 
	{
	if (document.form.verif.value != "")
		{
		alert("Votre formulaire ne peut être envoyé pour cause de SPAM, merci de ne pas remplir le champ de sécurité");
		return (false);
		}
	}
// ******** FIN SPAM Checker ********