function moteur(){ //moteur var CacheTexte_RECHERCHE = new Object(); var texte_RECHERCHE = new Object(); if ($('bt_RECHERCHE')) $('bt_RECHERCHE').replace('' + $('bt_RECHERCHE').innerHTML + ''); //focus Event.observe($('RECHERCHE_keywords'),'focus',function(){ if ($F('RECHERCHE_keywords')=='ex : appartement nice, renault mégane occasion...'){ $('RECHERCHE_keywords').value=''; } });//fin Event.observe($('bt_RECHERCHE'),'click',function(){$('RECHERCHE').submit();}); } //----------------------------------------------------------------------------------------- function nbrPage(e){ var mc=Event.element(e); url=mc.value; window.location.href=url; } function deletePanier(){ $('LISTE').submit(); } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function init(){ recup=new recup_var(); if ($('choixNbrPageUp')){ Event.observe($('choixNbrPageUp'),'change',nbrPage); Event.observe($('choixNbrPageDown'),'change',nbrPage); } if ($('colapse_filtre')){ Event.observe($('colapse_filtre'),'click',function() { colapse();}); } //-------------------------------------- pop_up =new popup(); if ($('deleteUp')){ Event.observe($('deleteUp'),'click',function(){deletePanier();}); Event.observe($('deleteDown'),'click',function(){deletePanier();}); } //-------------------------------------- if ($('MODIF_actionUp')){ if ($('bt_MODIF_Up')) $('bt_MODIF_Up').replace('' + $('bt_MODIF_Up').innerHTML + ''); if ($('bt_MODIF_Down')) $('bt_MODIF_Down').replace('' + $('bt_MODIF_Down').innerHTML + ''); // Event.observe($('bt_MODIF_Up'),'click',function() { if ($('MODIF_actionUp').selectedIndex >0){ $('MODIF_actionDown').selectedIndex=-1; $('LISTE').submit(); } }); Event.observe($('bt_MODIF_Down'),'click',function() { if ($('MODIF_actionDown').selectedIndex >0){ $('MODIF_actionUp').selectedIndex=-1; $('LISTE').submit(); } }); } // detail_annonce(); // bulle(); init_(); //init_googleMap(); function_global(); } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////