function Gender(waarde){ if (waarde == "man"){ document.getElementById('g').value = waarde; document.getElementById('gman').style.background="url('/landing/i/radioon.png') no-repeat"; document.getElementById('gvrouw').style.background = "url(/landing/i/radiooff.png) no-repeat"; } else if (waarde == "vrouw"){ document.getElementById('g').value = waarde; document.getElementById('gvrouw').style.background = "url(/landing/i/radioon.png) no-repeat"; document.getElementById('gman').style.background = "url(/landing/i/radiooff.png) no-repeat"; } } function check_form() { var error = ''; emailpattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; if(emailpattern.test(document.forms['nieuwsbrief_form'].nbe.value) == false) { error = '- E-mailadres\n'; } if(document.forms['nieuwsbrief_form'].voornaam.value.length < 2) { error = error+'- Voornaam\n'; } if(document.forms['nieuwsbrief_form'].achternaam.value.length < 3) { error = error+'- Achternaam\n'; } if(document.forms['nieuwsbrief_form'].g.value.length < 1 ) { error = error+'- Geslacht\n'; } if(document.forms['nieuwsbrief_form'].nba.checked == false) { error = error+'- Akkoord algemene voorwaarden\n'; } if(error.length) { alert('De volgende velden zijn niet volledig of juist ingevuld:\n'+error); return false; } else { $.post("call/nieuwsbriefpost.php", { voornaam: document.getElementById('voornaam').value, achternaam: document.getElementById('achternaam').value, email: document.getElementById('email').value, geslacht: document.getElementById('g').value, partners: document.getElementById('partners').value, nieuws: document.getElementById('nba').value }, function(data) {$('#content').empty().append(data);}); } } function toggleLayer(item,id,fadeout) { $('html, body').animate({scrollTop:0}, 'fast'); if (item == "algvoorwaarden"){ $('#inner').toggle(); $('#overlayOuter').toggle(); $.post('call/algemene_voorwaarden.html', function(data) { $('#inner').empty().append(data); }); } else if (item == "privacy"){ $('#inner').toggle(); $('#overlayOuter').toggle(); $.post('call/privacy_verklaring.html', function(data) { $('#inner').empty().append(data); }); } else if (item == "privacyitem" && id != ""){ $('#inner').toggle(); $('#overlayOuter').toggle(); $.post('call/privacy_item.php?id='+id, function(data) { $('#inner').empty().append(data); }); } else if (item == "privacypolicy" && id != ""){ $('#inner').toggle(); $('#overlayOuter').toggle(); $.post('call/privacy_policy.html', function(data) { $('#inner').empty().append(data); }); } else if (item == "disclaimer" && id != ""){ $('#inner').toggle(); $('#overlayOuter').toggle(); $.post('call/disclaimer.html', function(data) { $('#inner').empty().append(data); }); } else if (item == "prijsvragen"){ $.post('call/prijsvraaglijst.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "gratis"){ $.post('call/gratis.php',function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "enquetes"){ $.post('call/enquetes.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "kortingscodes"){ $.post('call/kortingscodes.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "prijsvraagalert"){ $.post('call/prijsvraagalert.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "tipsentrucs"){ $.post('call/tipsentrucs.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "jeprivacy"){ $.post('call/jeprivacy.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "nieuwsbrief"){ $.post('call/nieuwsbrief.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == "links"){ $.post('call/links.php', function(data) { $('#content').fadeOut('slow', function() { $('#content').empty().append(data); }); $("#content").slideDown("slow"); }); } else if (item == null){ $('#inner').toggle(); $('#overlayOuter').toggle(); } } function zoeken(){ $.post('call/search.php?kew='+document.getElementById('zoekterm').value, function(data) { $('#content').empty().append(data); }); }