как сделать содержимое таблицы wil автоматически отображаемым в всплывающей форме

Я пытаюсь сделать таблицу в своей сети. Содержимое таблицы имеет значение, которое я использую для параметра в следующем действии и автоматически отображается в форме. здесь мой skenario

содержимое таблицы как кнопки для моего всплывающего окна, как это

<div> <table width="1023" height="248" border="1"> <tr> <th colspan="2" scope="col">A1</th> <th colspan="2" scope="col">A2</th> <th colspan="2" scope="col">A3</th> </tr> <tr> <td><div align="center"><input type="button" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this, width : '270px' });" value="A1.4" /></td> <td><div align="center"><input type="button" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this, width : '270px' });" value="A1.8" /></td> <td><div align="center"><input type="button" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this, width : '270px' });" value="A2.4" /></td> <td><div align="center"><input type="button" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this, width : '270px' });" value="A2.8" /></td> <td><div align="center"><input type="button" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this, width : '270px' });" value="A3.4" /></td> <td><div align="center"><input type="button" onclick="popup_window_show('#sample', { pos : 'tag-right-down', parent : this, width : '270px' });" value="A3.8" /></td> </tr> </div> 

это мой popup_window_show

  <div class="popup_window_css" id="sample"> <div class="popup_window_css_head"><img src="images/close.gif" alt="" width="9" height="9" />Aksi</div> <div class="popup_window_css_body"><div style="border: 1px solid #808080; padding: 6px; background: #FFFFFF;"> <form method="post" action=""> <table width="200"> <tr> <td colspan='2' align='center'> WHK </td> <tr> <td> Posisi :</td> <td> <input type='text' name="p" /></td> </tr> <tr> <td> Product ID :</td> <td> <input type='text' name="id" /></td> </tr> <tr> <td> Product Name :</td> <td> <input type='text' name="nama" /></td> </tr> <tr> <td> Production Date :</td> <td> <input type='text' name="tgl" /></td> </tr> <tr> <td colspan='2' align='right'> <input type='submit' value= 'Save'> <input type='reset' value='Reset' /> <input type='button' value='view' onclick=\"window.location.href='#';\"/> </td> </tr> </table> </div> </div> 

моя проблема с фокусом, как сделать содержимое таблицы будет отображаться автоматически во всплывающей форме в Posisi coloumn. например: когда пользователь clik A1.4, поэтому в «posisi» coloumn автоматически имеет значение A1.4 и отображается

И затем, когда пользователь нажимает кнопку просмотра, «веб» направляет пользователя на новую страницу, на которой отображается база данных, содержимое таблицы в качестве параметра. может быть это http://jsfiddle.net/andricoga/k4BB3/#base может помочь понять мою проблему

мой английский все еще слабый, я надеюсь, вы понимаете, что я имею в виду, и дайте решение для меня tq

да, я нахожу это

 <script> function setvalue(values) { document.getElementById('posisi').value = values; } </script> <div> <table width="1023" height="248" border="1"> <tr> <td> <input type="button" onclick="setvalue(this.value);" value="A1.8" /> </td> </tr> </table> </div> <div class="popup_window_css" id="sample"> <table class="popup_window_css"> <tr class="popup_window_css"> <td class="popup_window_css"> <div class="popup_window_css_head"> <img src="images/close.gif" alt="" width="9" height="9" />Aksi</div> <div class="popup_window_css_body"> <div style="border: 1px solid #808080; padding: 6px; background: #FFFFFF;"> <form method="post" action=""> <table> <tr> <td>Werehouse</td> <tr> <td>Posisi</td> <td> <input type='text' name="p" id="posisi" /> </td> </tr> <tr> <td>Product ID</td> <td> <input type='text' name="id" /> </td> </tr> <tr> <td>Product Name</td> <td> <input type='text' name="nama" /> </td> </tr> <tr> <td>Production Date</td> <td> <input type='text' name="tgl" /> </td> </tr> <tr> <td colspan='2' align='right'> <input type='submit' value='Save'> <input type='reset' value='Reset' /> <input type='button' value='view' onclick=\ "window.location.href='#';\"/> </td> </tr> </table> </div> </div> 

вы можете cek здесь http://jsfiddle.net/JLExZ/