Back to Scripts page
Click in the box below, select all and copy to grab the script
<SCRIPT LANGUAGE="JavaScript"> <!-- Hide script from older browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. function submitIt(form) { doorOption = -1 for (i=0; i<form.DoorCt.length; i++) { if (form.DoorCt[i].checked) doorOption = i } if (doorOption == -1) { alert("You must choose 2 or 4 door") return false } return true } // End hiding script --> </SCRIPT>