>>617
どこからDOMを操作しようとしてるかは見えないけど、
getElementsByTagNameを使うならname属性がいるんじゃない?

<input name="xxx" type=submit value=" Yes ">