
  function color(id)
  {
   document.getElementById('un').style.backgroundColor='#FFCC66';
   document.getElementById('deux').style.backgroundColor='#FFCC66';
   document.getElementById('trois').style.backgroundColor='#FFCC66';
   document.getElementById('quatre').style.backgroundColor='#FFCC66';
   document.getElementById('cinq').style.backgroundColor='#FFCC66';
   document.getElementById('six').style.backgroundColor='#FFCC66';
   document.getElementById('sept').style.backgroundColor='#FFCC66';
   document.getElementById('huit').style.backgroundColor='#FFCC66';
   document.getElementById('neuf').style.backgroundColor='#FFCC66';
   document.getElementById('plus').style.backgroundColor='#FFCC66';
   
   document.getElementById('un').style.color='#000000';
   document.getElementById('deux').style.color='#000000';
   document.getElementById('trois').style.color='#000000';
   document.getElementById('quatre').style.color='#000000';
   document.getElementById('cinq').style.color='#000000';
   document.getElementById('six').style.color='#000000';
   document.getElementById('sept').style.color='#000000';
   document.getElementById('huit').style.color='#000000';
   document.getElementById('neuf').style.color='#000000';
   document.getElementById('plus').style.color='#000000';
   
   document.getElementById(id).style.backgroundColor='#c41130';
   document.getElementById(id).style.color='#ffffff';
  }
  
  function check_nb(nb)
  {
   if(nb != 'plus') {
    document.getElementById('nb').value= nb;
    document.getElementById('nb_personne').style.visibility='hidden';
   }
   else {
    document.getElementById('nb_personne').style.visibility='visible';
   } 
  } 
  
  function check_mail(champ)
  {
   var regexp = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]{2,}\.[a-z]{2,4}$/;
 
   if (!regexp.test(champ.value))
    return (1);
   return (0);
  }
  function check_formulaire(f)
  {
   if (check_mail(f.mail) == 1)
    {
     alert("L'adresse email n'est pas correcte.");
     return (false);
    }
  }
   
   
   
  function loadCalendar() {
       

  
        var calHandler = {
            onSelect : function(date) {
                alert('Date sélectionnée');
                // Suite des traitements...
            }
        }
       
        // Surcharge les valeurs par défaut de l'objet. Toutes les valeurs sont optionnelles.
        var params = {
              //displayYearInitial : 1971,
              //displayMonthInitial : 9,
              // rangeYearLower : 2003,
              // rangeYearUpper : 2007,
              // startDay : 0,
              // showWeeks : false,
              // selCurMonthOnly : true,
              // displayFooter : false,
              // displayPanel : false,
             
              // Le positionnement en mode popup se fait automatiquement. Néanmoins, possibilité de forcer la position via les deux propriétés suivantes :
              // popupLeftPos : 0,
              // popupTopPos : 0,
             
              // les 2 propriétés ci-dessous vont de pair avec l'affichage du footer.
              // displayTodayLink : true,
              // displayCloseLink : false,
              // userHandler:calHandler
        }
       
        //bas_cal = new calendar('epoch_basic', 'flat' , 'basic_container', params);

		dp_cal1  = new calendar('epoch_popup', 'popup', document.getElementById('date_1'), params);
	    dp_cal2  = new calendar('epoch_popup', 'popup', document.getElementById('date_2'), params);

	   
    }
   
    addEvent(window, 'load', loadCalendar, false);
 
