function toggleTab(div_element){
        if (document.getElementById(div_element).style.display == "block")
        {
                document.getElementById(div_element).style.display = "none";
        }
        else
        {
                                alterAll('none');
                document.getElementById(div_element).style.display = "block";
        }
}

function alterAll(style){
        var n;
        for(var i=0; i<document.all.tags("div").length; i++){
                n = document.all.tags("div")[i].id;
                if (String(n).substring(0,10) == "detail_tab"){
                        if (style == 'block'){
                                document.all.tags("div")[i].style.display = "block";
                        }
                        else
                        {
                                document.all.tags("div")[i].style.display = "none";
                        }
                }
        }
}