create a JavaScript like this example
<script>
function fillOutForm() {
//Form tag
formObj = document.forms.myForm;
//this ticks one radio button group (name foo)
//note the index [1] means the second radio btn. is ticked
formObj .foo[1].checked = true;
//another group (bar)
formObj .bar[4].checked = true;
}
</script>
<form action="" name="myForm" id="myForm">
Group foo:
<input type="radio" name="foo" value="1">
<input type="radio" name="foo" value="2">
<input type="radio" name="foo" value="3">
<input type="radio" name="foo" value="4">
Group bar:
<input type="radio" name="bar" value="1">
<input type="radio" name="bar" value="2">
<input type="radio" name="bar" value="3">
<input type="radio" name="bar" value="4">
<input type="radio" name="bar" value="5">
<input type="button" value="Fill" onClick="JavaScript: fillOutForm();">
</form>