Sign up below to get your top tips.
var urlInput = document.getElementById("ci_consenturl"); if (urlInput != null && urlInput != 'undefined') { urlInput.value = encodeURI(window.location.href); } function checkbox_Clicked(element) { document.getElementById(element.id + "_unchecked").value = !element.checked; } function validate_signup(frm, showAlert) { var emailAddress = frm.email.value; var errorString = ''; if (emailAddress == '' || emailAddress.indexOf('@') == -1) { errorString = 'Please enter your email address'; } var checkBoxValue = frm.ci_userConsentCheckBox.checked; if (checkBoxValue == false && showAlert) { errorString = 'You must accept the terms'; } var isError = false; if (errorString.length > 0) { isError = true; if (showAlert) alert(errorString); } return !isError; }
