﻿
function showItem(id)
{if(document.getElementById(id).style.display=='block')
{document.getElementById(id).style.display='none';}
else
{document.getElementById(id).style.display='block';}}
function showAllContent(groupName)
{var i=1;var showItem=document.getElementById(groupName+i);while(showItem!=null)
{showItem.style.display='';i++;showItem=document.getElementById(groupName+i);}}
function hideAllContent(groupName)
{var i=1;var showItem=document.getElementById(groupName+i);while(showItem!=null)
{showItem.style.display='none';i++;showItem=document.getElementById(groupName+i);}}

	function toggleQuestion(title,qID,aID)
     {
      var answID = document.getElementById(aID);
      answID.style.display = (answID.style.display == "none") ? "inline" : "none";
     }
    
    function toggleAll()
    {
	var theAnswers = document.getElementsByTagName("tr");
	for (var x=0; x <theAnswers.length; ++x) {  theAnswers[x].style.display="inline"; }
	}
