I think what TerryG is trying to do is to initialise the radio buttons to checked/unchecked depending on the database value.
TerryG:
My suggestion does relate to the javascript. You are referring to the recordset data in the javascript function, but you haven't actually passed it in as a parameter. You'd need to do something like calling this function within a recordset loop for each item.
i.e. when you retrieve the recordset values, loop through each one using recordsetname.movenext and call that function, but pass the recordset value (<%=oRS("RadioButtonValue")%> as a parameter.
As an example:
Call it within the recordset loop like this:
setRadios(<%=oRS("RadioButtonValue")%>)
and the script would be:
<SCRIPT LANGUAGE="JavaScript">
function setRadios(RadioButtonValue)
{
if (RadioButtonValue == "yes")
{
document.myForm.R1[0].checked
}
}
</SCRIPT>
This is just a rough example, but you can hopefully get the idea. You'll need to mess around with it to perhaps pass it the radio button element number R1[count] instead of R1[0] perhaps?
Hope this helps a little.
K