if (form.DoorCt[doorOption].value == "fourDoor" && form.sunroof.checked) { alert("The sunroof is only available on the two door model") return false }