Hello,
I think, that this IF statement is not correct for things you wants.
if ($answers[$i]==$Checked)
$result.= " Checked>$answers[$i]<br>";
else
$result.=">$answers[$i]<br>\n";
May be it should looks like this:
if ($answers[$i]==$Checked[$i])
but may be I do not understand correctly what is content of which array (name, values, answers, checked ).
Zdenek