function onbeforesubmit() { return true; }
var error; var form_lanuage = 'en'; function is_1_valid(input) { if(input == "") { error += "First Name: missing data!\n"; return false; }
return true; } function is_2_valid(input) { if(input == "") { error += "Last Name: missing data!\n"; return false; }
return true; } function is_3_valid(input) { if(input == "") { error += "Email: missing data!\n"; return false; }
return true; } function is_7953_valid(count) { if(count == 0) { error += "community_email_marketing_consent_state: missing data!\n"; return false; }
return true; } function is_8512_valid(count) { if(count == 0) { error += "content_email_marketing_consent_state: missing data!\n"; return false; }
return true; } function is_8513_valid(count) { if(count == 0) { error += "exclusive_email_marketing_consent_state: missing data!\n"; return false; }
return true; } function is_8514_valid(count) { if(count == 0) { error += "education_email_marketing_consent_state: missing data!\n"; return false; }
return true; } function is_6585_valid(input) { if(input == "") { error += "sms_marketing_consent_state: missing data!\n"; return false; }
return true; } function is_6581_valid(input) { if(input == "") { error += "email_marketing_consent_state: missing data!\n"; return false; }
return true; }
function CheckInputs() { var check_ok = true; error = "Wrong input!\n"; check_ok = (is_1_valid(document.ProfileForm.inp_1.value) && check_ok); check_ok = (is_2_valid(document.ProfileForm.inp_2.value) && check_ok); check_ok = (is_3_valid(document.ProfileForm.inp_3.value) && check_ok); check_ok = (is_7953_valid(NumChecked(document.ProfileForm, "inp_7953[]")) && check_ok); check_ok = (is_8512_valid(NumChecked(document.ProfileForm, "inp_8512[]")) && check_ok); check_ok = (is_8513_valid(NumChecked(document.ProfileForm, "inp_8513[]")) && check_ok); check_ok = (is_8514_valid(NumChecked(document.ProfileForm, "inp_8514[]")) && check_ok); check_ok = (is_6585_valid(document.ProfileForm.inp_6585.value) && check_ok); check_ok = (is_6581_valid(document.ProfileForm.inp_6581.value) && check_ok); if(check_ok == false) alert(error); return check_ok; }
if($alertbox != "") { echo "\r\n“; } ?>