if(toolbar) { edButtons[edButtons.length] = new edButton('ed_tex' ,'tex' ,'[tex]' ,'[/tex]' ,'x' ); var theButton = document.createElement('input'); theButton.type = 'button'; theButton.value = ''; theButton.onclick = ; theButton.className = 'ed_button'; theButton.title = ""; theButton.id = ""; theButton.accessKey='x'; toolbar.appendChild(theButton); }