diff --git a/html/js/accounting_item.js b/html/js/accounting_item.js
index 9c261a847..d8f18af0a 100644
--- a/html/js/accounting_item.js
+++ b/html/js/accounting_item.js
@@ -45,7 +45,7 @@ function search_accounting(obj)
sx=document.body.scrollTop+60;
}
- var div_style="top:"+sx+"px";
+ var div_style="top:"+sx+"px"+';z-index:'+get_next_layer();
removeDiv('search_account');
add_div({id:'search_account',cssclass:'inner_box',html:loading(),style:div_style,drag:false});
@@ -234,7 +234,7 @@ function errorPoste()
function display_all_card(p_dossier,p_accounting)
{
waiting_box();
- var div_dest=add_div({id:'info_card_accounting',cssclass:"inner_box",style:fixed_position(100,250)+";width:auto"});
+ var div_dest=add_div({id:'info_card_accounting',cssclass:"inner_box",style:fixed_position(100,250)+";width:auto;z-index:"+get_next_layer()});
var action=new Ajax.Request ( 'ajax_misc.php',
{
method:'get',
diff --git a/html/js/managetable.js b/html/js/managetable.js
index 8026f1e21..9407b20a7 100644
--- a/html/js/managetable.js
+++ b/html/js/managetable.js
@@ -381,6 +381,7 @@ var ManageTable = function (p_table_name)
var pos = calcy(50);
here.mt_style["top"]=pos+"px";
+ here.mt_style["z-index"]=get_next_layer();
$(obj.id).setStyle(here.mt_style);
remove_waiting_box();
$(obj.id).update(x['html']);