show TypeError in javascript
<p>I have seen this message. I can I solve it</p>

<blockquote>
  <p>TypeError: opener.document.frm.market1 is undefined</p>
</blockquote>

<pre><code>opener.document.frm.market1.value = value;
</code></pre>

<p>where 'frm' is my form name 'market1' is my field name</p>
