Do I need to use "document.getElementById"
<p>I still haven't the got this code to work correctly in ie9. It works ok in Firefox though. Do I have to use "document.getElementById" for it to work in ie9? If so, where would it fit in?</p>

<pre><code>function dbasetype(){

var dbasedata = document.forms[0]._dbase_name.value;
        dbasedata = dbasedata.toUpperCase();
        dbasedata = dbasedata.replace(/\s/g, "");

var _area = document.forms[0]._area;        
var _dbase_name = document.forms[0]._dbase_name;

if  (dbasedata.indexOf("UK_CONTACTS")==-1) {
        _area.value = _dbase_name.value;            
     }  else { setarea(); } 
     }
</code></pre>

<p><strong>EDIT</strong>
The above code updates a field (that controls the access for individuals) in a database when the save button is clicked. It works ok in Firefox as I said previously but when this runs in ie9 the field that is supposed to be updated and is replaced with a blank and then the user loses access to the contact record.</p>
