﻿function ValidateAssumptions() { var d = document.forms[0]; var c = -1; for (var a = 0; a < d.length; a++) { if (d.elements[a].type == "checkbox") { c = a; break } } var b = true; if (c != -1) { if (d.elements[c].checked) { b = true } else { alert("Check the box to indicate you accept the assumptions we make in providing your quote"); b = false } } return b };