datetimepicker getElementById vs name ie8 issues
<p>I have a javascript datetimepicker that works well with everything except IE7 or above.  The issue seems to be with <code>getElementById</code>.  Here is how current code looks:</p>

<pre><code>&lt;tr&gt;
 &lt;td style="width: 143px"&gt;Call Date:
 &lt;/td&gt;
&lt;td style="width: 472px"&gt;
&lt;input type="Text" name=cdate size=40 style="color: black;background-color:#FFFF66; width: 270px;"&gt;
&lt;a href="javascript:NewCal('cdate','ddmmyyyy')"&gt;&lt;img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>In IE7 or above this will not work. I get "Javascript error object missing".  If I change <code>name=cdate</code> to <code>id=cdate</code> it works but but when I submit the form to my php insert:</p>

<pre><code>&lt;?
$cdate=$_POST['cdate'];
</code></pre>

<p>The submission fails. So how can I correct this or how can I make the <code>id= element</code> be by <code>name= element</code> ....hope this makes sense.</p>

<p>Thanks</p>
