function toggleQuestion(tName, qName, aName)
{
    var ans = document.getElementById(aName);
    if (ans.style.display == '') { ans.style.display = 'none'; }
    else { ans.style.display = ''; }
}

function doSomethingWithClasses(theClass) {
	//Populate the array with all the page tags
	var allPageTags=document.getElementsByTagName("*");
	//Cycle through the tags using a for loop
	for (i=0; i<allPageTags.length; i++) {
		//Pick out the tags with our class name
		if (allPageTags[i].className==theClass) {
			//Manipulate this in whatever way you want
			allPageTags[i].style.display='none';
		}
	}
}

function initAnswers() {
	doSomethingWithClasses('answer');
}