<!--

// ShowHide() works with IE 4.0+ and Netscape 7.0
function ShowHide(divId) {
	var id = document.getElementById(divId);
	if (id.style.display == "none") {
		eval("id.style.display = 'block'");
	}
	else {
		eval("id.style.display = 'none'");
	}
}



function ShowHideAll() {
	if (document.all.showHide.innerText == "Select to show all answers") {
		for (var i = 0; i < document.all.tags("div").length; i++) {
			var divId = document.all.tags("div")[i].id;
			if (!divId.indexOf("answer")) {
				eval("document.all." + divId + ".style.display = 'block'");
				eval("document.all.showHide.innerText = 'Clear to hide all answers'");
			}
		}
	}
	else if (document.all.showHide.innerText == "Clear to hide all answers") {
		for (var i = 0; i < document.all.tags("div").length; i++) {
			var divId = document.all.tags("div")[i].id;
			if (!divId.indexOf("answer")) {
				eval("document.all." + divId + ".style.display = 'none'");
				eval("document.all.showHide.innerText = 'Select to show all answers'");
			}
		}
	}
}


function selectAll() {
	var selectText = '<p><input type="checkbox" onclick="ShowHideAll();">&nbsp;';
	selectText += '<span id="showHide">Select to show all answers</span></p>';

	document.write(selectText);
}

//-->
