<td ><input id="rate2" name="n_rate" value="1" align="center" type="radio" onclick="rate_choice(0)" /><td> function test1(id_value) { if(0==id_value) { alert("ture"); } }