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." // This script may be used and modified, but the copyright notice must remain intact. function doorSet(sunroofField) { // If they picked the sunroof, force the two door model if (sunroofField.checked) { for (i=0; i<document.carForm.DoorCt.length; i++) { if (document.carForm.DoorCt[i].value == "twoDoor") { document.carForm.DoorCt[i].checked = true } } } } // End hiding script --> </SCRIPT>