function insert(el,ins) { if (el.setSelectionRange){ el.value = el.value.substring(0,el.selectionStart) + ins + el.value.substring(el.selectionStart,el.selectionEnd) + el.value.substring(el.selectionEnd,el.value.length); } else if (document.selection && document.selection.createRange) { el.focus(); var range = document.selection.createRange(); range.text = ins + range.text; } } function playsound(url) { if (url!='') { url = escape(url); var res = ''; } else { res = ""; } document.getElementById("soundeffect").innerHTML = res; } function updateFilter() { var val = $('input:radio:checked').val(); if (val==1) $('.thumbDiv').show(1000); if (val==2) { var a = $('.thumbDiv[title=]'); var b = $('.thumbDiv[title]'); a.show(); b.hide(1000); } if (val==3) { var a = $('.thumbDiv[title=]'); var b = $('.thumbDiv[title]'); b.show(); a.hide(1000); } } function kiespostzegel() { var url = '/fs.php?url=/postzegel.php'; var res = showModalDialog(url,'','dialogHeight:700px;dialogWidth:950px;center:on'); if (res!=undefined) { $.getScript('/ajax.php?req=postzegel&val='+res); } } function bijbelvers() { var url = '/fs.php?url=/bijbelvers.php'; width = 500; height = 700; var l = screen.availWidth/2-width/2; var t = screen.availHeight/2-height/2; var res = showModalDialog(url,'_blank', "status:0;help:0;dialogWidth: "+width+"px; dialogHeight: "+height+"px; dialogLeft: "+l+"px; dialogTop: "+t+"px"); if (res!=undefined) { $.getScript('/ajax.php?req=bijbelvers&val='+res); } } function addRcpt() { if ($('#naamontvanger').val()!='' && $('#emailontvanger').val()!='') { $.get('/ajax.php',{req: "addRcpt", name: $('#naamontvanger').val(), eml: $('#emailontvanger').val()}, function(data){ if (data=='true') { $('#naamontvanger,#emailontvanger').val(''); $.getScript('/ajax.php?req=getMailList'); } else { alert(data); } }); } else { alert('Vul eerst de ontvanger gegevens in.'); } } function delRcpt() { if ($('#cbemail').val()!=null) { $.get('/ajax.php',{req: "rmRcpt", val: $('#cbemail').val()},function(data){ if (data=='true') { $.getScript('/ajax.php?req=getMailList'); } }); } else { alert('Kies eerst de ontvanger die je wilt verwijderen uit de lijst.'); } } var currentImg=''; document.write("