function filterAnnonces(id) {
  checked = document.getElementById(id).checked;
  doRequest('wuAjax.php?phpFile=plugins/annonces_actions.php&location=3&filter='+id+'&checked='+checked, 'annonces_liste');
}
function detailLinebox(div, id) {    
  if (isIE()) {
    var height = document.getElementById('index').offsetHeight;
    var width = document.body.offsetWidth + document.body.scrollLeft;
    document.getElementById(div).style.left = document.body.scrollLeft + (document.body.offsetWidth - 400) / 2;
    document.getElementById(div).style.top = document.body.scrollTop + 50;
    document.getElementById('masque').style.filter = 'alpha(opacity=50)';
  } else {
    var height = document.height;
    var width = document.width;
    document.getElementById(div).style.left = window.pageXOffset + (window.innerWidth - 400) / 2;
    document.getElementById(div).style.top = window.pageYOffset + 50;
    document.getElementById('masque').style.opacity = '0.5';
  }
  document.getElementById('masque').style.width = width+'px';
  document.getElementById('masque').style.height = height+'px';
  document.getElementById('masque').style.backgroundColor = '#20549E';
  document.getElementById('masque').style.zIndex = '3000';
  document.getElementById('masque').style.left = 0;
  document.getElementById('masque').style.top = 0
  document.getElementById(div).style.zIndex = '5000';
  document.getElementById(div).style.display = 'block'; 
  doRequest('wuAjax.php?phpFile=plugins/annonces_detail.php&location=3&objID='+id+'&div='+div, div);  
}
function closeLinebox(div) {
  document.getElementById(div).style.display = 'none';
  document.getElementById('masque').style.width = 0;
  document.getElementById('masque').style.height = 0;
}
