// Folio Sideshow Scriptfunction showPic (whichpic) { if (document.getElementById) { document.getElementById('zoom').src = whichpic.href;  return false; } else {  return true; }}function VerifForm(formulaire) {	nom = formulaire.nom.value	prenom = formulaire.prenom.value	adresse = formulaire.adresse.value	cp = formulaire.cp.value	ville = formulaire.ville.value	telephone = formulaire.telephone.value	adressemail = formulaire.adressemail.value;		var place = adressemail.indexOf("@",1);	var point = adressemail.indexOf(".",place+1);	if ((place > -1)&&(adressemail.length >2)&&(point > 1)&&(nom !== "")&&(prenom !== "")&&(adresse !== "")&&(cp !== "")&&(ville !== "")&&(telephone !== ""))		{		formulaire.submit();		return(true);		}	else		{		alert('Merci de renseigner tous les champs obligatoires et de saisir une adresse e-mail valide.');		return(false);		}	}function SelectVisible(v,elem) {  var agt = navigator.userAgent.toLowerCase();  var isMac = (agt.indexOf('mac') != -1);  var isOpera = (agt.indexOf('opera') != -1);  var IEver = parseInt(agt.substring(agt.indexOf('msie ') + 5));  var isIE = ((agt.indexOf('msie')!=-1 && !isOpera && (agt.indexOf('webtv')==-1)) && !isMac);  var isIE5win = (isIE && IEver >= 5);  var isIE5mac = ((agt.indexOf('msie') != -1) && isMac);  var isSafari = (agt.indexOf('safari') != -1);   if (isIE||isIE5win)      for (var i=0;i<elem.length;i++) elem[i].style.visibility=v;}function book_test(formulaire) {var message=''var todaydate=new Date()var today=new Date(todaydate.getFullYear(),todaydate.getMonth(), todaydate.getDate())//test de la datechoixdate=new Date(formulaire.fyear.options[formulaire.fyear.selectedIndex].value, formulaire.fmonth.options[formulaire.fmonth.selectedIndex].value-1, formulaire.fday.options[formulaire.fday.selectedIndex].value)if (today<=choixdate) { } else {message='Date invalide : merci de modifier la date saisie.'}// affichage du message d'erreurif (message!='') alert(message);else{ formulaire.submit();}}// you may use/modify this code, but please give credit as a courtesy// script by Arash Ramin (http://www.digitalroom.net)function setCurrentDate() {  // changes the date selector menus to the current date  var currentDate = new Date();   var mois = currentDate.getMonth()+1;   var annee = currentDate.getFullYear();   if( mois < 10)   mois ='0'+ mois;   var i;   var anneemois = annee + "" +  mois ;   for( i = 0; i < document.PW.fmonth.length; i++)   {	   if(document.PW.fmonth.options[i].value == anneemois)	   {			document.PW.fmonth.options[i].selected = true;			break;		}   }  setDays();  document.PW.fday.selectedIndex = currentDate.getDate() - 1;}function setDays() {  var Monthlong = document.PW.fmonth.options[document.PW.fmonth.selectedIndex].value;  var m=Monthlong.substring(4,6)  var y=eval(Monthlong.substring(0,4))  // find number of days in current month  days = 31;  if ( (m == "04") || (m == "06") || (m == "09") || (m == "11") ) {    days = 30;  }  else if (m == "02") {    // check for leapyear - Any year divisible by 4, except those divisible by 100 (but NOT 400)    if ( (Math.floor(y/4) == (y/4)) && ((Math.floor(y/100) != (y/100)) || (Math.floor(y/400) == (y/400))) )      days = 29    else      days = 28  }  // if (days in new month > current days) then we must add the extra days  if (days > document.PW.fday.length) {    for (i = document.PW.fday.length; i < days; i++) {      document.PW.fday.length = days;      document.PW.fday.options[i].text = i + 1;      document.PW.fday.options[i].value = i + 1;    }  }    // if (days in new month < current days) then we must delete the extra days  if (days < document.PW.fday.length) {    document.PW.fday.length = days;    if (document.PW.fday.selectedIndex == -1)       document.PW.fday.selectedIndex = days - 1;  }}
