Try this;
again:
I have changed cookie to acookie and the (o n c l i c k)to Click in my code as Javaranch does not allow cookie and (o n c l i c k) to be posted
and in the HTML I change this:
<form name="survey" action="answer.html" onSubmit="return(writeCookie())">
and for each question i add Click="setValue(this.value)"
ex:
<INPUT TYPE=radio NAME="button0" VALUE="yes" Click ="setValue(this.value)">
<INPUT TYPE=radio NAME="button1" VALUE="no" Click ="setValue(this.value)">
dont forget change all the acookie to cookie and the Click (o n c l i c k)... et voila.