while(text.search(/\[video\](.*?)\[\/video\]/g)>=0){t=text.split('[video]'); if(t[1]) {t2=t[1].split('[/video]');video_c++; if(t2[0]&&video_max>=video_c) { var ss2009=t2[0].replace("watch?v=", "v/");ss400='src="'+ss2009+'&hl=ru&fs=1"';text=text.replace('[video]'+t2[0]+'[/video]','<embed '+ss400+' type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=300 height=250></embed>') } else {text=text.replace('[video]'+t2[0]+'[/video]','');} break; }};
<script> function spoiler(o) { var obj=o.childNodes[1].style; var obj2=o.childNodes[0].childNodes[0]; if(obj.display=='block') { obj.display='none'; obj2.innerHTML='<img src=http://radiofull.ru/Style_god/img/forum/plus.png width=10 height=10>'; } else { obj.display='block'; obj2.innerHTML='<img src=http://radiofull.ru/Style_god/img/forum/minus.png width=10 height=10>'; } } </script>
etags[i]=new Array(/\[spoiler=([^\] ]{2,30})\](.*?)\[\/spoiler\]/g,'<blockquote style="margin-bottom:0px;padding:5px;"><div class="incqbox" style="cursor:pointer;" onclick="spoiler(this.parentNode); return false;"><span><img src="http://radiofull.ru/Style_god/img/forum/plus.png" width="10" height="10"></span><b> $1</b></div><div style="margin-top: 10px; display: none; ">$2</div></blockquote>',1);i++; tags+="<input type='button' class='button2' accesskey='c' value='[+]' style='width: 40px' onclick=ftags('[spoiler]','[/spoiler]') title='Код: [spoiler=заголовок]текст под спойлер[/spoiler]'> ";