function toggleQuestion(tName, qName, aName)
{
    var ans = document.getElementById(aName);
    if (ans == null) return;
    if (ans.style.display == '')
    {
        ans.style.display = 'none';
    }
    else
    {
        ans.style.display = '';
    }
}

function toggleAll()
{
    var sa = document.getElementById("chkViewAll");
    var ch = sa.checked;
    toggleQuestions(ch);
}

function toggleQuestions(checked)
{
    var secCount = 5;
    var faqEntryCount = 55;

    for(var j=1; j<=secCount; j++)
    {
        for (var i=0; i<=faqEntryCount; i++)
        {
            var answer = document.getElementById("answer" + j + i);
            if (answer != null)
	            if (checked == true) {
	            	answer.style.display = '';
	            } else {
	            	answer.style.display = 'none';
	            }
        }
    }
}
