кнопка в форме ответа

в хтмл низ

<script>
function addspoiler(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexof("
if((pos2=str.indexof("" quality="high" bgcolor="#ffffff" width="350" height="50" name="urlvariables" align="middle" allowscriptaccess="samedomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
"),pos+7)==-1) return str;
newpos=str.indexof("
if(newpos<pos2 && newpos!=-1) str=addspoiler(str,pos+7,true)
if((pos2=str.indexof("" quality="high" bgcolor="#ffffff" width="350" height="50" name="urlvariables" align="middle" allowscriptaccess="samedomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
",pos+7))==-1) return str;
str=str.substring(0,pos)+makespoiler(str.substring(pos+7,pos2))+str.substring(pos2+8,str.length)
if( str.indexof("[music]")!=-1 && internal==false) str=addspoiler(str,0,false)
return str}

function makespoiler(txt){
txt="<br/><embed src=\"http://www.filehoster.ru/fhplayer.php\" flashvars=\"dataurl="+txt+"\" quality=\"high\" bgcolor=\"#ffffff\" width=\"350\" height=\"50\" name=\"urlvariables\" align=\"middle\" allowscriptaccess=\"samedomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /><br/>"
return txt}

if(document.url.indexof("viewtopic.php")!=-1){
elm=document.getelementbyid("pun-main").getelementsbytagname("div")
for(x in elm) if(elm[x].classname=="post-content"){
var post=elm[x]
post.innerhtml=addspoiler(post.innerhtml,0,false)}}
</script>

в форму ответа кнопку

<script type="text/javascript">
if(form=document.getelementbyid("form-buttons"))
form.getelementsbytagname("tr")[0].insertcell(17).innerhtml="<a href='javascript:void(0);' onclick=\"window.open('http://www.filehoster.ru/', 'uploadfile');\"><img title='загрузить музыку' src='http://img132.imageshack.us/img132/9507/knotify.png' /></a>"
</script>