<script>
function ageMonths(x) {
var d = Date.parse(x);
var n = Date.now();
var ms = n-d;
var m = ms/1000/60/60/24/365.25*12;
return m;
document.getElementById("tfa_1892").checked = true;
}
</script>
yikes - figured it out right after I posted this question. simple javascript error. I had the return statement before setting the radio button so it was not executing. working just fine now with this code:
<script>
function ageMonths(x) {
var d = Date.parse(x);
var n = Date.now();
var ms = n-d;
var m = ms/1000/60/60/24/365.25*12;
document.getElementById("tfa_1892").checked = true;
return m;
}
</script>