window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=40; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function voirtout() {
	for (var i = 1; i<=40; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='block';}
	}
	return false;
}

window.onload=montreimage;
function montreimage(id) {
var e = document.getElementById(id);
	for (var i = 1; i<=13; i++) {
		if (document.getElementById('simage'+i)) {document.getElementById('simage'+i).style.display='none';}
	}
if (e) {e.style.display='block';}
}

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



{
carte_on=new Image();
carte_on.src="images/paiement-carteon.gif";
carte_off=new Image();
carte_off.src="images/paiement-carte.gif";
cheque_on=new Image();
cheque_on.src="images/paiement-chequeon.gif";
cheque_off=new Image();
cheque_off.src="images/paiement-cheque.gif";
}

function rollIn(imgName)
{
	document[imgName].src=eval(imgName + "on.src");
}
function rollOut(imgName)
{
	document[imgName].src=eval(imgName + "off.src");
}

function Popup(theURL,winName,thewidth,theheight,features) {
  var top=(screen.height-theheight)/2;
  var left=(screen.width-thewidth)/2;
  window.open(theURL,winName,"top="+top+",left="+left+",width="+thewidth+",height="+theheight+","+features);
}

function ChangeUrl(ins) {
location.href = self.parent.location.href;
}


function checkdata()
{
     var uppervalue;
     if (document.ins.nom.value.length == 0) {
         alert ("Information manquante : entrez votre nom");
         return false;
     }
     if (document.ins.prenom.value.length == 0) {
         alert ("Information manquante : entrez votre prénom");
         return false;
     }

     if (document.ins.email.value.length == 0) {
         alert ("Information manquante : entrez votre E-mail");
         return false;
     }

     if (document.ins.email.value.indexOf("@")==-1) {
         alert("Votre adresse E-mail est invalide");
         return false;
     }

     if (document.ins.adresse.value.length == 0) {
         alert ("Information manquante : entrez votre adresse");
         return false;
     }
     if (document.ins.codepostal.value.length == 0) {
         alert ("Information manquante : entrez votre code postal");
         return false;
     }
     if (document.ins.ville.value.length == 0) {
         alert ("Information manquante : entrez votre ville");
         return false;
     }
     if (document.ins.pays.value.length == 0) {
         alert ("Information manquante : entrez votre pays");
         return false;
     }
  } 


function replaceAll(str, search, repl) {
while (str.indexOf(search) != -1)
str = str.replace(search, repl);
return str;
}

function AccentToNoAccent(str) {
var norm = new Array('À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï', 'Ð','Ñ','Ò','Ó','Ô','Õ','Ö','Ø','Ù','Ú','Û','Ü','Ý','Þ','ß', 'à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ð','ñ', 'ò','ó','ô','õ','ö','ø','ù','ú','û','ü','ý','ý','þ','ÿ');
var spec = new Array('A','A','A','A','A','A','A','C','E','E','E','E','I','I','I','I', 'D','N','O','O','O','0','O','O','U','U','U','U','Y','b','s', 'a','a','a','a','a','a','a','c','e','e','e','e','i','i','i','i','d','n', 'o','o','o','o','o','o','u','u','u','u','y','y','b','y');
for (var i = 0; i < spec.length; i++)
str = replaceAll(str, norm[i], spec[i]);
return str;
} 