function resizeTextarea(a,b){var c=findClosest("contentTextarea",a);if(c.offsetHeight+b>0)c.style.height=c.offsetHeight+b+"px"}function 
insertSyntax(a,b,c,d){a=findClosest("contentTextarea",a);start=a.selectionStart;end=a.selectionEnd;a.focus();if(start!=end)d=a.value.substring(start,end);a.value=a.value.substring(0,start)+b+d+c+a.value.substring(end);a.selectionStart=(a.value.substring(0,start)+b).length;a.selectionEnd=a.selectionStart+d.length} 
function findClosest(a,b){do{var c=getElementsByClassName(a,b);b=b.parentNode}while(c.length==0);return c[0]}function processKeyDown(a){}function registerOnKeyDown(){var 
a=getElementsByClassName("contentTextarea");for(idx in a)a[idx].onkeydown=processKeyDown}if(typeof wons=="undefined")wons=[];wons.push("registerOnKeyDown()");window.onload=function(){for(var 
a=0;a<wons.length;a++)eval(wons[a])}; function getElementsByClassName(a,b){b||(b=document.getElementsByTagName("body")[0]);for(var c=[],d=new 
RegExp("\\b"+a+"\\b"),f=b.getElementsByTagName("*"),e=0,g=f.length;e<g;e++)d.test(f[e].className)&&c.push(f[e]);return c};
