<form id="form1" name="form1" method="post" action="">
  <p>
    <input type="radio" name="radiobutton" value="1" />
    <input name="t1" type="text" id="t1" onfocus="this.parentElement.firstChild.checked=true"/>
  </p>
  <p>
    <input type="radio" name="radiobutton" value="2" />
    <input name="t2" type="text" id="t2" onfocus="this.parentElement.firstChild.checked=true"/>
  </p>
  <p>
    <input type="radio" name="radiobutton" value="3" />
    <input name="t3" type="text" id="t3" onfocus="this.parentElement.firstChild.checked=true"/>
  </p>
</form>