document.form1.button1.click=(next)
documnet.getElementsByName('form1')[0].getElementsByName('button1')[0].onclick = next;