title: Can't access form element in IE because it 'is undefined'. Works ok in FF and Chrome
body: <p>It's strange because I only get 1 error in IE: 'sTime is undefined'.  sTime is the ID of one of the many input elements in my form.  Everything works fine in Chrome and FF.  Here's a link to the code:</p>
  
  <p><a href="http://la.truxmap.com/sched.html" rel="nofollow noreferrer">http://la.truxmap.com/sched.html</a></p>
  
  <p>and the form html:</p>
  
  <pre><code>&lt;form id="addNewTruck" class='updateschedule' action="javascript:sub(sTime.value, eTime.value, lat.value, lng.value, street.value);"&gt; 
  
      &lt;b style="color:green;"&gt;Opening at: &lt;/b&gt; 
          &lt;input id="sTime" name="sTime" title="Opening time" value="Click to set opening time" class="datetimepicker"/&gt; 
  
      &lt;b style="color:red;"&gt;Closing at: &lt;/b&gt; 
          &lt;input id="eTime" name= "eTime" title="Closing time" value="Click to set closing time" class="datetimepicker"/&gt; 
  
      &lt;b style="color:blue;"&gt;Address: &lt;/b&gt; 
          &lt;input type='text' name='street' id='street' class='text street' autocomplete='off'/&gt; 
          &lt;input id='submit' class='submit' style="cursor: pointer; cursor: hand;" type="submit" value='Add new stop'/&gt; 
      &lt;div id='suggests' class='auto_complete' style='display:none'&gt;&lt;/div&gt; 
          &lt;input type='hidden' name='lat' id='lat'/&gt; 
          &lt;input type='hidden' name='lng' id='lng'/&gt; 
          &lt;input type='hidden' value='CA' name='state' id='state' class='text state' /&gt; 
  </code></pre>
  
  <p>  </p>
  
  <p>Thanks for your help!</p>