Help for this page
function redirect() { if (document.fred.ID[0].checked) { ... } return false; }
<form name="fred" onSubmit="redirect()">