function o(x,m)
{
    if(light==x)return;
    document.images[light+1].src="img/"+lightm+"_off.gif";
    light=x;
    lightm=m;
}

function h(t)
{
    if(typeof last == "undefined")
        last=document.anchors[0];
        
    last.className='n';
    t.className='nh';
    t.blur();
    last=t;
}
function g(t)
{
    if(typeof last == "undefined")
        last=document.anchors[0];
        
    last.className='v';
    t.className='vg';
    t.blur();
    last=t;
}

function n(t)
{
    if(typeof last == "undefined")
        last=document.anchors[0];
        
    last.className='n';
    t.className='nh';
    t.blur();
    last=t;
}

function l(n,m)
{
    document.images[n+1].src="img/"+m+"_on.gif";
}

function d(n,m)
{
    if(light==n)return;
    document.images[n+1].src="img/"+m+"_off.gif";
}

function LigneCouleur(ligne, color) {
  ligne.bgColor = color;
}

function changeCouleur(ligne) {
  ligne.bgColor = '#C0C0C0';
}

function remetCouleur(ligne)  {
//  ligne.fgColor = '#853131';
  ligne.bgColor = '#ffffb9';

}
function ChangeAspect(ligne) {
//  ligne.fgColor = '#ffffff';
  ligne.bgColor = '#FFC000';
}

function RemetAspect(ligne)  {
  ligne.bgColor = '#ffffb9';
}

function SelectCouleur(ligne) {
  if(typeof last == "undefined")
     last=1;
  last.bgColor  = '#ffffb9';
  ligne.bgColor = '#C0C0C0';
  ligne.focus();
  last = ligne;

}
function patientez(formulaire) {

  formulaire.elements['submit'].disabled = true;
  formulaire.elements['submit'].value = 'Patientez...';
  return true;
}
function wait(formulaire) {
  document.forms['formulaire'].elements['patience'].style.display = 'Block';
//  document.forms['formulaire'].elements['patience'].value = 'Patientez...';
  return true;
}

function xx(formulaire) {
  formulaire.elements['recharge'].value = 'Oui';
  return true;
}

function recharge() {

}

function ValiderChamp() {
      datdeb=document.forms['agenda'].elements['wevdatdeb'];
      datfin=document.forms['agenda'].elements['wevdatfin'];
      deb=document.forms['agenda'].elements['wevtranchedeb'];
      fin=document.forms['agenda'].elements['wevtranchefin'];

      if ((datfin.value == datdeb.value) && (fin.value < deb.value))
      {
       alert("L'heure de fin de RDV ne peux être plus petite que celle du début");
       return false;}
       else {
       return true;
      }
}



