"document.add_doc.all[fromcity].value" is working in IE 8 but not working in google chrome and firefox, how do i correct it?
<pre><code>if(eval("document.add_doc.tocountry"+i+".value") == "") 
            {
                alert("Please choose the To Country "+i);
                eval("document.add_doc.fromcountry"+i+".focus()");
                return false;
            }
            if((document.add_doc.all[fromcity].value == "OTH") &amp;&amp; (document.add_doc.all[enter code hereofcity].value == ""))

                alert("Please Specify The From City in Row No. "+i)
                add_doc.all[ofcity].focus();
                return false;
            }
</code></pre>

<p>// When i debug the following script then it gives error on document.add_doc.all[fromcity] ,it is working finr in IE but not in chrome.  add_doc is form name</p>
