Well, let's look what frm1 contains.

Add the following to your script:

Code:
console.log(frm1);

// as before
document.getElementById("myradio1").checked = frm1[0]
document.getElementById("myradio2").checked = frm1[1]
Run the script, look at the console output and post it back here.