function ShowPM(){document.getElementById("aPopUpStatus").innerHTML="Er is een nieuw ongelezen prive bericht !";new Effect.Appear(document.getElementById("aPopUp"),{duration:.5,from:0,to:1})}function showCheckEmail(a){if(a=="True"){document.getElementById("aPopUpStatus").innerHTML="Het ingevoerde email-adres is al in gebruik!";new Effect.Appear(document.getElementById("aPopUp"),{duration:.5,from:0,to:.9})}}function checkemail(a){currentelement=document.getElementById(a);cp.call("../includes/cls/cpaint.asp","func.checkemail",showCheckEmail,currentelement.value)}function showCheckUsername(a){if(a=="True"){document.getElementById("aPopUpStatus").innerHTML="De ingevoerde gebruikersnaam bestaat al<br /><br />Of er zijn ongeldige tekens gebruikt!";new Effect.Appear(document.getElementById("aPopUp"),{duration:.5,from:0,to:.9})}}function checkusername(a){currentelement=document.getElementById(a);cp.call("../includes/cls/cpaint.asp","func.checkusername",showCheckUsername,currentelement.value)}function showhidereactie(a){alert(a)}function hidereactie(a){cp.call("../includes/cls/cpaint.asp","admin.hidecomment",showhidereactie,a)}function readCookie(a){var b=a+"=";var c=document.cookie.split(";");for(var d=0;d<c.length;d++){var e=c[d];while(e.charAt(0)==" ")e=e.substring(1,e.length);if(e.indexOf(b)==0)return e.substring(b.length,e.length)}return null}function createCookie(a,b,c){if(c){var d=new Date;d.setTime(d.getTime()+c*24*60*60*1e3);var e="; expires="+d.toGMTString()}else e="";document.cookie=a+"="+b+e+"; path=/"}function insertext(a,b){document.getElementById(b).value+=a}function addPTag(a,b){bits=getSelection(a);if(bits){if(!matchPTags(bits[2])){alert("\t\tInvalid Selection\nSelection contains unmatched opening or closing tags.");return}a.value=bits[1]+"["+b+"]"+bits[2]+"[/"+b+"]"+bits[3]}else{a.value=a.value+"["+b+"]"+" "+"[/"+b+"]"}}function matchPTags(a){a=" "+a+" ";ot=a.split(/\[[B|U|I].*?\]/i);ct=a.split(/\[\/[B|U|I].*?\]/i);return ot.length==ct.length}function getSelection(a){var b=[a.value,"","",""];if(document.selection){var c="#$%^%$#";var d=document.selection.createRange();if(d.parentElement()!=a)return null;b[2]=d.text;d.text=c;fb=a.value.split(c);d.moveStart("character",-c.length);d.text=b[2];b[1]=fb[0];b[3]=fb[1]}else{if(a.selectionStart==a.selectionEnd)return null;b=(new RegExp("([-ÿ]{"+a.selectionStart+"})([-ÿ]{"+(a.selectionEnd-a.selectionStart)+"})([-ÿ]*)")).exec(a.value)}return b}var currentelement;var MagIk=true;var cp=new cpaint;cp.set_transfer_mode("post");cp.set_response_type("text");cp.set_persistent_connection(false);cp.set_async(true);cp.set_proxy_url("");cp.set_debug(0)
