function d_res(ptmst)
{
  with(document.vardispo)
  {
    window.location=racine.value+'reserver.php?resid='+resid.value+'&tmst='+ptmst+'&idlst='+idlst.value;
  }
}

function sur(ptarif,pdate,ppromo)
{
  if(document.vardispo.sousdom.value != 'RESTAURANT')
  {
    document.getElementById('tarif').value=ptarif;
    document.getElementById('datetraitee').value=pdate;
    if(ppromo == '1')
    {
      document.getElementById('promo').style.visibility='visible';
    }
    else
    {
      document.getElementById('promo').style.visibility='hidden';
    }
  }
}

