function showErrRus(art){
 var messVillRus_l=messVillRus.replace('###','<b>'+art+'</b>');
 ifDomStyleOn('divErrVilleRus',1);
if(document.getElementById('divErrVilleRus'))document.getElementById('divErrVilleRus').innerHTML=messVillRus_l;
setTimeout("ifDomStyleOn('divErrVilleRus')",10000);
}
//
function showTot(text){
if(text[1]){if(document.getElementById('addResTotAds'))document.getElementById('addResTotAds').innerHTML+=text[0];}     
}
//
function countOn(tx0){makeDefPromo();
if(tx0){        
var trv=tx0[1];  
if(divQR){
divQR.style.display="block";
divQR.innerHTML='<fieldset class="labelChamps">'+totresout+' : '+trv+' '+pInfoOut(trv)+'</fieldset>';
}   
}
}
//
function foundOn(tx0,cn)      
{         ifDomStyleOn('gestionres3');     
var tx=new Array();
var wtxt='';  
var wtxt_t='';   
var txr='';
if(trouve==1){
tx=unescape(tx0[0]).split('<4444>');
var ixa=tx[1];
du=du2;                                           
if(cetInt){clearInterval(cetInt); cetInt=null; }
showAnnonce(ixa);
}else if(trouve>1 || cn){ if(cetInt){clearInterval(cetInt); cetInt=null; }      
//
tx=unescape(tx0[0]).split('<333>');   
var le2=tx.length;    
// begun
begunok();                
var dp=(page_c-start_search)*maxParPage+start_search;
var fp=dp+le2-1;                               
wtxt_t=totresout+' : '+trouve+' : '+pInfoOut()+': <b>'+detailRequest+'</b> ( '+dp+' - '+fp+' ) ';
// list  
 var nLot=dp;                                    
if(divQR){
divQR.style.display="block";
divQR.innerHTML=wtxt_t;
}
//
var clBlok='blok';
for(var i=0;i<le2;i++){ clBlok='blok';                //    
txr=tx[i].split('<4444>');
var vu=parseInt(txr[2]) ;
if(vu>0)vu=prosmotr+' : '+vu;else vu='';
if(markBlok[txr[1]])clBlok=markBlok[txr[1]];   
wtxt+="<div class='"+clBlok+"' id='block_"+txr[1]+"'><table cellspacing=0 cellpadding=0><tr><td><a class='tblok' onclick=\"showAnnonce('"+txr[1]+"',"+du+")\" href='#' title=\""+clickerSur+"\">"+plusInfo+"</a></td><td style='padding:0 20px 0 20px;'>"+vu+"</td><td style='padding:0 20px 0 20px;'></td></tr></table>"+"<i class='nLine'>"+nLot+".</i> "+txr[0]+"</div>";    //    
nLot++;
}   
//     
inverter();
if(document.getElementById('listannonces') && wtxt)document.getElementById('listannonces').innerHTML=wtxt;
// if unique
}else if(divQR){
divQR.style.display="block";
divQR.innerHTML=totresout+' : '+trouve;
inverter(1);
}
}
//
function inverter(t){   ifDomStyleOn('gestionres3'); 
   if(t){  
   ifDomStyleOn('pageFirst',1);
   ifDomStyleOn('gestionres');
   ifDomStyleOn('barre_bas');
   ifDomStyleOn('annonce'); 
   ifDomStyleOn('listannonces');
if(!ifDomStyleOn('promoannonce',1))initializeMaps(1);    
    }else{ mapOff();
    ifDomStyleOn('pageFirst',1);  
    //ifDomStyleOn('gestionres3',1);
    ifDomStyleOn('annonce'); 
   ifDomStyleOn('listannonces',1);
   ifDomStyleOn('promoannonce');
    }
}
//
function makeAnnonce(text){    clearTimeout(tret); 
var tid=ididixa-1;
go=tid;
 ifDomStyleOn('z_top');
  ifDomStyleOn('annonce',1);
   ifDomStyleOn('pageFirst');
    ifDomStyleOn('gestionres');
     ifDomStyleOn('barre_bas');
if(document.getElementById('gestionres3')){
document.getElementById('gestionres3').innerHTML=messRab();//;   xt
document.getElementById('gestionres3').style.display='block';
}      
if(document.getElementById('annonce'))document.getElementById('annonce').innerHTML+=text;    
divGrAnnonce[tid]=document.getElementById('shan_'+id_ixa_page[tid]);
if(divGrAnnonce[tid]){
rollAnnoncesVu(tid); 
}
}
//
function rollAnnoncesVu(gohg){
go=gohg;
for(var i=0;i<ididixa;i++){
if(i!=go)ifDomStyleOn('shan_'+id_ixa_page[i]);
 else ifDomStyleOn('shan_'+id_ixa_page[i],1); 
}
}
