    /* Vidage champs du bloc moteur commun */           
        
    var erased = false;
                var defaultValue = '';
                
                function clear_input(element)
                {
                  element.value = '';
                  erased = true;
                }
                
                
                Event.observe(window, 'load', function() {
                  defaultValue = $('hotel_ou_ville1').value;
                  $('errorMessage').observe('click', function () {
                    $('errorMessage').hide();
                  });
                  $('bookingEngine').observe('submit', function()
                  {
                     if (defaultValue == $F('hotel_ou_ville1'))
                    {
                      clear_input($('hotel_ou_ville1'));
                    }
                  });
                  $('hotel_ou_ville1').observe('focus', function()
                  {
                    if(!erased)
                    {
                      clear_input($('hotel_ou_ville1'));
                    }
                  });
                });
   
            

        
        
        /* DETP, conditions specifiques */
        	Event.observe(window, 'load', function() {
                     function doSwitchConditions(event) {
                        doHideConditions();
                        var condition  =  $(this.value);
                        condition.setStyle({display:'block'});
                    }
                    
                    function doHideConditions(){
                         conditions.each(function(elm){
                            elm.setStyle({display:'none'});
                        });
                    }
                    
                if($("select_conditions")){
                    var btn_conditions = $("select_conditions");
                    var conditions = $$('.condition');
               
                    doHideConditions();
                    conditions.first().setStyle({display:'block'});

                    btn_conditions.observe('change', doSwitchConditions);
           
                }
			});