2.style.display = p3.style.display = p4.style.display = p5.style.display = "none";
    document.getElementById(`panel${id}`).style.display = "block";
}

function togglesidepane()
{
    if(document.getElementById('contents').classList.contains('contents_open'))
    {
        document.getElementById('contents').classList.remove('contents_open');
        document.getElementById('sidepane').style.display = "none";
    }else{
        document.getElementById('contents').classList.add('contents_open');
