function setcheck(id,ddd)//id表示控件ID号,ddd表示值
{
var radiolist = id;
for(var i=0;i<document.getElementById(radiolist).rows.length;i++)
{
for(var x=0;x<document.getElementById(radiolist).rows[i].cells.length;x++)
{
if(document.getElementById(radiolist).rows[i].cells[x].firstChild!="undefine")
{
if(document.getElementById(radiolist).rows[i].cells[x].firstChild.value==ddd)
{
document.getElementById(radiolist).rows[i].cells[x].firstChild.checked=true;
}
}
}
}
}