
function closeAllAnswers()
{
	for(i=1;i < 40; i++)
	{
		var x = document.getElementById("ans" + i);
		if(!x) break;
		x.style.display="none";
	} 

}
function disAnswer(strQuestion){
	//close all other questions
	for(i=1;i < 40; i++)
	{
		var x = document.getElementById("ans" + i);
		if(!x) break;
		x.style.display="none";
	} 
	var a=document.getElementById(strQuestion);
	if(!a)return true;
	
	if(a.style.display=="none")
	{
		a.style.display="block"
	 } 
		else 
	 {
	 a.style.display="none"
	}
  return true;
}

function swapFontColor(strDiv)
{
	var e = document.getElementById(strDiv);
	e.style.color = "#b41212";
		
}
function swapFontColorOff(strDiv)
{
	var e = document.getElementById(strDiv);
	e.style.color = 'white';
		
}