if ((!theForm.licensed[0].checked) || (!theForm.licensed[1].checked)) { alert("Please enter if you are licensed"); return (false); } ... if (isNaN(parseInt(zip)) || (zip.length != 5)) { alert("Please enter a Valid Zipcode"); theForm.zip.focus(); return (false); } }