function Getcheckedvalue (radioobj) ... {
if (!radioobj)
Return "";
var radiolength = radioobj.length;
if (radiolength = = undefined)
if (radioobj.checked)
return radioobj.value;
Else
Return "";
for (var i = 0; i < radiolength; i++) ... {
if (radioobj[i].checked) ... {
return radioobj[i].value;
}
}
Return "";
}
function Check ()
... {
for (i = 0; i < document.submitform.all.length i++) ... {
if (Document.submitform.all (i). TagName = = "INPUT") ... {
var oitem = Document.submitform.all.item (i);
var sname = Oitem.name;
if (oitem.type.toLowerCase () = = "Radio") ... {
if (Getcheckedvalue (Document.getelementsbyname (oitem.name)) = = "") ... {
Oitem.focus ();
Window.scrollby (0,-30);
Alert ("Please fill in all the questions carefully.") ");
return (false);
}
}
}
}
Document.submitform.submit ();
}
Getcheckedvalue gets the value of the radio box, which is shown in http://www.somacon.com/p143.php
Check function to determine if all of the radio boxes are not selected, if any are displayed.