//Hold state of wether the checkbox is expanded for the drop down box var expanded = false; var expanded1 = false; var expanded2 = false; var expanded3 = false; var expanded4 = false; var expanded5 = false; var expanded6 = false; var expanded7 = false; //Show checkbox display for expanded drop down box number 1 function showCheckboxes() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes"); //Not expanded the show to boxes if (!expanded) { checkboxes.style.display = "block"; expanded = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded = false; } } //Show checkbox display for expanded drop down box number 2 function showCheckboxes1() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes1"); //Not expanded the show to boxes if (!expanded1) { checkboxes.style.display = "block"; expanded1 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded1 = false; } } //Show checkbox display for expanded drop down box number 3 function showCheckboxes2() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes2"); //Not expanded the show to boxes if (!expanded2) { checkboxes.style.display = "block"; expanded2 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded2 = false; } } //Show checkbox display for expanded drop down box number 4 function showCheckboxes3() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes3"); //Not expanded the show to boxes if (!expanded3) { checkboxes.style.display = "block"; expanded3 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded3 = false; } } //Show checkbox display for expanded drop down box number 5 function showCheckboxes4() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes4"); //Not expanded the show to boxes if (!expanded4) { checkboxes.style.display = "block"; expanded4 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded4 = false; } } //Show checkbox display for expanded drop down box number 6 function showCheckboxes5() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes5"); //Not expanded the show to boxes if (!expanded5) { checkboxes.style.display = "block"; expanded5 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded5 = false; } } //Show checkbox display for expanded drop down box number 7 function showCheckboxes6() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes6"); //Not expanded the show to boxes if (!expanded6) { checkboxes.style.display = "block"; expanded6 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded6 = false; } } //Show checkbox display for expanded drop down box number 8 function showCheckboxes7() { //When called get id for checkbox status var checkboxes = document.getElementById("checkboxes7"); //Not expanded the show to boxes if (!expanded7) { checkboxes.style.display = "block"; expanded7 = true; } else { //Not expanded then hide the boxes checkboxes.style.display = "none"; expanded7 = false; } }