-
function Confirm() {..
var count = 0;var objFrm = document.getElementById("..");// var objFrm = document.forms[0];
for (var i = 0; i < objFrm.NAME.length; i++) {if (objFrm.NAME[i].checked == true) {count++;}}
if (count <= 0) {alert("..");document.getElementById("ID1").focus();return false;}
return true;}..
<input id="ID1" name="NAME" type="radio" value="VALUE1" /><input id="ID2" name="NAME" type="radio" value="VALUE2" />..<input id="ID2" name="NAME" type="radio" value="VALUEn" />