コンボボックスより選択された値をhidden項目に設定し、
その状態で自画面(TestAction)のPHP部分に引き渡したす
為に、次のコードを書いたのですが、エラーが発生してしまいます。

いずれも、*.submit();の実行時にエラーが発生してしまうのですが
どうすればよいでしょか?

function TestSelect(iSelect)
{
  document.getElementById("id_value_set").value = iSelect;


  //■方法@
  document.name_select_page.submit();

  //■方法A
  obj = document.forms["name_select_page"];
  obj.action="TestAction.php"
  obj.submit();

}
<form name="name_select_page" action="TestAction.php" method="POST">
  <input id="id_value_set" type="hidden" value=""/>
  <select onchange="TestSelect(this.options[this.selectedIndex].value)">
    <option selected >1</option>
    <option>2</option>
    <option>3</option>
  </select>
</form>