The line of code in question:
<input type="submit" name="Submit" value="Answer"onclick="MM_showHideLayers('Layer1','','hide','Layer2','','show');alert('Press OK to Continue')"; >
There's a select, named "answer", in the form on layer1. I can access its value by answer.value in the onclick. $answer is used in layer2, but the onclick is processed before the actual submit and answer is not available until after the onclick is proccessed.
The Onsubmit, likewise.
Any ideas?