function createRequestObject(){var a;var b=navigator.appName;if(b=="Microsoft Internet Explorer"){a=new ActiveXObject("Microsoft.XMLHTTP")}else{a=new XMLHttpRequest()}return a}var http=createRequestObject();function quote(a){http.open('get','/js/quoteajax.php?reid='+a);http.onreadystatechange=handleResponse;http.send(null)}function handleResponse(){if(http.readyState==4){document.Re.re_text.focus();var a=http.responseText;document.Re.re_text.value+=a}}function insertAtCursor(a,b){if(document.selection){a.focus();sel=document.selection.createRange();sel.text=b}else if(a.selectionStart||a.selectionStart=='0'){a.focus();var c=a.selectionStart;var d=a.selectionEnd;a.value=a.value.substring(0,c)+b+a.value.substring(d,a.value.length)}else{a.focus();a.value+=b}}function urlinsert(){var a=prompt('Vul hier de URL in','http://');if(a!=null){var b=prompt('Vul hier de omschrijving in','klik hier');if(b!=null){insertAtCursor(document.Re.re_text,'[url='+a+']'+b+'[/url]')}}}function imginsert(){var a=prompt('Vul hier de URL in (let op, afbeeldingen werken niet overal)','http://');if(a!=null){insertAtCursor(document.Re.re_text,'[img]'+a+'[/img]')}}function resize(a,b){if(!a){var a=window.event.srcElement}if(!b){var b=299}width=a.width;height=a.height;if(width>b){a.width=b;a.height=Math.ceil(b*(height/width))}}