// ********************************************
// **        Show/Hide ID version 1.1        **
// **            by Aidan Thomson            **
// **  		  27.02.2005 / 20.07.2006        **
// ********************************************

function showDIV(num) {
	divID = "answer" + num;
	el = document.getElementById(divID);
	if (el.style.display=="block") {
		el.style.display="none";
	} else {
		hideDIV(num);
		el.style.display="block";
	}
}

function hideDIV(num) {
	i=1;

	for (i;i<=numQ;i++) {
		if (i != num) {
//			console.log("numQ is %i", numQ);
			hideID = "answer" + i;
			document.getElementById(hideID).style.display="none";
		}
	}
}

