/*
** File: 		qanda.js
** Author: 		Christopher Owen (webmaster at atnf.csiro.au)
** Description:
** 				Provides a simple interactive question and answer feature 
*/

function buildToggle(id) {
	document.writeln('<a href="javascript:void(showAnswer(\'' + id + '\'));">Answer</a>');
}

function showAnswer(id) {
	document.getElementById(id).style.display = "block";
}

document.writeln('<style type="text/css"> .answer {display: none} </style>');

