function checkCheckBox(f) { if (f.agree.checked == false) { alert('You must agree to the User Agreement to continue'); return false; } else return true; }