variable not collecting data from field
<p>The code below works ok until the line "document.forms[0]._area.value = dbasedata;" it will only copy the data if the data in that field has been changed AFTER loading the form. If it is changed to anything (even back to the original value) it will work. Anyone know why?</p>

<pre><code>function dbasetype() {
  var dbasedata = document.forms[0]._dbase_name.value;
  dbasedata2 = dbasedata.toUpperCase().replace(/\s/g, "");


  if(dbasedata2.indexOf("UK_CONTACTS")&lt;0) {
    document.forms[0]._area.value = dbasedata;           
  }  else { setarea(); } 
}
</code></pre>

<p><strong>EDIT</strong> I think it may have something to do with it being a dropdown field?</p>
