function validateForm(contact_form) { alert('document.forms.contact_form.terms.value'); if(document.forms.contact_form.terms.value!="1") { alert("You must accept the Terms of Service."); return false; } return true; }