﻿var lastShownAnswer = ""; function showAnswer(a) { if (document.getElementById) { if (lastShownAnswer != "" && lastShownAnswer != a) { document.getElementById(lastShownAnswer).style.display = "none" } if (lastShownAnswer != a) { document.getElementById(a).style.display = "inline"; lastShownAnswer = a } } else { if (document.layers) { if (lastShownAnswer != "" && lastShownAnswer != a) { document.lastShownAnswer.style.display = "none" } if (lastShownAnswer != a) { document.answer.style.display = "inline"; lastShownAnswer = a } } else { if (lastShownAnswer != "" && lastShownAnswer != a) { document.all.lastShownAnswer.style.display = "none" } if (lastShownAnswer != a) { document.all.answer.style.display = "inline"; lastShownAnswer = a } } } };