function onfocus_login_email(){ if(document.getElementById('input_login_email').value == 'EMAIL'){ document.getElementById('input_login_email').value = ''; } } function go_login(){ err = ''; if (document.getElementById('input_login_email').value == ''){ err = 'Het is noodzakelijk uw email-adres in te vullen.\n'; } if (document.getElementById('input_login_password_2').value == ''){ err += 'Het is noodzakelijk uw paswoord in te vullen.'; } if (err == ''){ document.getElementById('form_login').submit(); } else { window.alert(err); } } function find_rep(){ if (document.getElementById('postal_code_te').value == ''){ window.alert('Gelieve de eerste twee cijfers van de postcode in te vullen.'); } else { document.getElementById('find_rep_form').submit(); } } function validate_submit_registration(){ the_form = document.getElementById('form_registration'); error_msg = ''; if (the_form.firstname.value == ''){ error_msg += 'Het is noodzakelijk uw voornaam in te vullen.\n'; } if (the_form.name.value == ''){ error_msg += 'Het is noodzakelijk uw familienaam in te vullen.\n'; } if (the_form.duty.value == ''){ error_msg += 'Het is noodzakelijk uw functie in te vullen.\n'; } if (the_form.company.value == ''){ error_msg += 'Het is noodzakelijk de naam van uw bedrijf in te vullen.\n'; } var company_type_id_found = false; /*for ( var i = 1; (i <= 12) && !company_type_id_found; i++){ company_type_id_found = document.getElementById('company_type_radio_' + i).checked; } if (!company_type_id_found ){ error_msg += 'Gelieve aan te duiden voor welk type bedrijf u werkt.\n'; }*/ if (the_form.company_type_id.value==12 && the_form.company_type_other.value == ''){ error_msg += 'Gelieve het type bedrijf te omschrijven in het vak "andere".\n'; } // if (the_form.enterprise_number.value == ''){ // error_msg += 'Gelieve uw ondernemersnummer in te vullen.\n'; // } if (the_form.street_and_number.value == ''){ error_msg += 'Het is noodzakelijk uw straat en huisnummer in te vullen.\n'; } if (the_form.postal_code.value == ''){ error_msg += 'Het is noodzakelijk uw postcode in te vullen.\n'; } if (the_form.city.value == ''){ error_msg += 'Het is noodzakelijk uw gemeente in te vullen.\n'; } if (the_form.country.value == ''){ error_msg += 'Het is noodzakelijk uw land in te vullen.\n'; } if (the_form.email.value == ''){ error_msg += 'Het is noodzakelijk uw email-adres in te vullen.\n'; } if (the_form.password.value == ''){ error_msg += 'Het is noodzakelijk uw paswoord in te vullen.\n'; } else { if (the_form.password.value.length < 6){ error_msg += 'Voor een goede beveiliging van uw gegevens: gelieve uw paswoord met minimaal 6 karakters in te geven.\n'; } } if (error_msg == ''){ document.getElementById('registration_content').style.display = 'none'; document.getElementById('patience_please').style.display = 'inline'; the_form.submit(); } else { alert(error_msg); } } function vis_cat(cat_id){ document.getElementById('plus_' + cat_id).style.display = 'none'; document.getElementById('min_' + cat_id).style.display = 'inline'; document.getElementById('subcat_' + cat_id).style.display = 'block'; } function invis_cat(cat_id){ document.getElementById('plus_' + cat_id).style.display = 'inline'; document.getElementById('min_' + cat_id).style.display = 'none'; document.getElementById('subcat_' + cat_id).style.display = 'none'; } function a_cat_id_is_checked(){ document.getElementById('a_cat_id_checked_hi').value = 1; } function content_form_save(){ error_msg = ''; if (document.getElementById('nl_url_te').value == ''){ error_msg += 'Het is noodzakelijk een URI voor de pagina in het Nederlands in te vullen.\n'; } if (document.getElementById('a_cat_id_checked_hi').value == 0){ error_msg += 'Het is noodzakelijk een plaats in het menu te selecteren.\n'; } if (error_msg == ''){ //updateRTEs(); document.getElementById('content_form').submit(); } else { alert(error_msg); } } function onKeyDown_uri(){ if(event.keyCode == 111) { alert('Het is niet mogelijk het teken "/" te gebruiken in de URI. \nDit wordt gebruikt om mappen van elkaar te scheiden.'); event.returnValue = false; } }