Code: Select all
function chk_view() {
var theForm = document.myform;
for (i=0; i<theForm.elements.length; i++) {
if ((theForm.elements[i].value==4) && (theForm.elements[i].checked ==1)){
theForm.elements[i].value==1;
theForm.elements[i].checked = true;
}
}
}