#signup input ~ label.wrap {
white-space: pre-wrap;
}
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 ? frm.email.value : “”;
var smsNumber = frm.MOBILENUMBERID ? frm.MOBILENUMBERID.value : “”;
var errorString = ”;
if (frm.email && (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’;
}
if (showAlert) {
var els = frm.getElementsByTagName(‘input’);
for (var i = 0; i < els.length; i++) {
if (els[i].className == 'text' || els[i].className == 'date' || els[i].className == 'number') {
if (els[i].value == '') errorString = 'Please complete all required fields.';
} else if (els[i].className == 'radio') {
var toCheck = document.getElementsByName(els[i].name);
var radioChecked = false;
for (var j = 0; j 0) {
isError = true;
if (showAlert) alert(errorString);
}
return !isError;
}