how can i Pass element values 'val[]' from parent window to child layer window element 'sel_value' for each corresponding click?
<p>her this DIV is the new layer window with one form.
showModal('modal') is a simple java script to hide/show new layer window</p>

<pre><code>&lt;div id="modal" style="border:3px solid black; background-color:#9999ff; padding:25px; font-size:150%; text-align:center; display:none;"&gt;
This is a hidden layer(only show after click)
&lt;form name="frm" method=post action=""&gt;
Your name&lt;input type="text" id="sel_value" name="sel_value" size=12 value=test&gt; 
&lt;input type=submit value='Submit' &gt;
&lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>this is the parent window</p>

<pre><code>&lt;input type="text" name="va[]" id="va[]" size=12 value="2"&gt;&lt;a href="#" onClick="Popup.showModal('modal');return false;"&gt;link&lt;/a&gt;
&lt;input type="text" name="va[]" id="va[]" size=12 value="3"&gt;&lt;a href="#" onClick="Popup.showModal('modal');return false;"&gt;link&lt;/a&gt;
&lt;input type="text" name="va[]" id="va[]" size=12 value="4"&gt;&lt;a href="#" onClick="Popup.showModal('modal');return false;"&gt;link&lt;/a&gt;
&lt;input type="text" name="va[]" id="va[]" size=12 value="5"&gt;&lt;a href="#" onClick="Popup.showModal('modal');return false;"&gt;link&lt;/a&gt;
&lt;input type="text" name="va[]" id="va[]" size=12 value="6"&gt;&lt;a href="#" onClick="Popup.showModal('modal');return false;"&gt;link&lt;/a&gt;
</code></pre>

<p>.
.
.</p>
