

    function swap(bx) {
        //document.getElementById(bx).style.display='block';

        if (document.getElementById(bx).style.display == 'none') {
                        document.getElementById(bx).style.display = 'block';
                     //   document.getElementById('tr_'+bx).bgColor = '#FF0000';
        } else {
                        document.getElementById(bx).style.display = 'none';
                     //   document.getElementById('tr_'+bx).bgColor = '#00ff00';
        }
}


 function swap_te(bx) {
        //document.getElementById(bx).style.display='block';

        if (document.getElementById(bx).style.display == 'none') {
                        document.getElementById(bx).style.display = 'block';
        } else {
                        document.getElementById(bx).style.display = 'none';
        }
}



 function view_details(img,title,content,id) {
         document.getElementById('header_content').innerHTML="<table><tr><td width=250><h4>"+img+"<br><br><b>"+title+"</b><br>"+content+"<br><br><a href='image_effacer.php?id="+id+"'>effacer</h4></td><td><img src="+img+" border=1 height=250></td></tr></table>";
}

 function goto_link(lien) {
                            window.location.replace(lien);
}



var newwindow = ''
function popitup(url,htmlname) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,htmlname,'width=450,height=500,resizable=1');}
}

function tidy() {
if (newwindow.location && !newwindow.closed) {
   newwindow.close(); }
}