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 isError = false;
if (errorString.length > 0) {
isError = true;
if (showAlert) alert(errorString);
}
return !isError;
}