Dunque, fai così:
Metti un id alla table (tipo id="MyTable") poi fai la funzione
Poi chiami la funzione conCodice PHP:
function setChecked(val)
{
var table = document.getElementById('MyTable');
var all = table.getElementsByTagName('input');
for(i = 0; i < all.length; i++)
{
if(all[i].type.toUpperCase() == 'RADIO' && all[i].value == val)
all[i].checked = true;
}
}
<input type="button" onclick="setChecked('1')" value = "Seleziona value = 1" />
<input type="button" onclick="setChecked('0')" value = "Seleziona value = 0" />