function toggle(spanid, block) {
if (document.getElementById(spanid)) {
show = "none"
if (block == true && document.getElementById(spanid).style.display != "block")
show = "block"
if (block == false && document.getElementById(spanid).style.display != "")
show = ""
document.getElementById(spanid).style.display = show
}
}

function toggleAll(bExpand, bSecOnly) {
if (bExpand == true && bSecOnly == true)
toggleAll(false, false)

divList = document.getElementsByTagName("div");
for (i = 0; i < divList.length; i++)
if (divList[i].id) {
if ((!bSecOnly && divList[i].id.substr(0, ("question").length) == "question") ||
(divList[i].id.substr(0, ("topic").length) == "topic"))
if (bExpand) {
if (divList[i].id.substr(0, ("question").length) == "question")
show = "block"
else
show = ""
divList[i].style.display = show
}
else
divList[i].style.display = "none"
}
}