function switchDIV(divid){
            var divstyle = document.getElementById(divid).style; //declare the div style into variable
            divstyle.display = divstyle.display? "":"block"; //change display style between default value and “block” (visible);
}
function showhide(linkid, divid) {
            linktext = new String(document.getElementById(linkid).innerText); //place link text into variable to compare
            hidevar = "[hide]"; //hide text variable
            showvar = "[show]"; //show text variable
            switchDIV(divid); //switch div style of the referenced div in the javascript hyperlink
            if (linktext == showvar) {
                        document.getElementById(linkid).innerText = hidevar; //compare link text variable
            } else if (linktext == hidevar) {
                        document.getElementById(linkid).innerText = showvar;
            }
}