function doSubmit1(actionName) {
var obj = document.getElementsByName("cycle_unit");
var flags = false;
for(var i=0; i<obj.length; i ++){
if(obj[i].checked==true){
flags = true;
}
}
if (flags == false)
{
alert("对不起,请选择")
return false;
}
<tr class="td_even">
<td>
粒度
</td>
<td align="left" id = "cu">
<input type="radio" name="cycle_unit" value="month" ${requestScope.cycle_unit=="month" ? "checked":""} size="18">
月
<input type="radio" name="cycle_unit" value="day" ${requestScope.cycle_unit=="day" ? "checked":""} size="18" >
天
</td>
</tr>