/* Toggles a single FAQ question */
function toggleQuestion(questionID)
{
	var div = $(questionID);
    var secNum = questionID.substr(0, 4);
    
    if(div.style.display == "none" || div.style.display == "")
	{
		div.style.display = "block";		
	}
	else
	{
		div.style.display = "none";
		$("chk" + secNum).checked = false;
	}
}

/* Toggles all FAQ questions in a section */
function toggleAllQuestions(ansList, secNum)
{
    var answerList = ansList.split(',');
    var style = "none";
	if($(secNum).checked)
	{
	    style = "block";
	}
	
    for (var i = 0; i < answerList.length; i++)
    {
        $(answerList[i]).style.display = style;
    }
}
