enabling a disabled submital image with javascript
<p>I use the below to disable my submit image when it is clicked to prevent double clicking:</p>

<pre><code>&lt;input class="real" name="freshness" value="" type="text" size="5" maxlength="6"/&gt;&lt;a href="javascript:void(0)" onClick="submitComment('+[id]+'); this.onclick=null; return false;"&gt;&lt;img class="submitcommentimg" id="submitcommentimg&lt;?php echo $id; ?&gt;" src="/images/check.png" alt="Comment!" border="0"&gt;&lt;/a&gt;

&lt;a href="javascript:void(0)" onClick="submitComment('+[id]+'); this.onclick=null; return false;"&gt;
</code></pre>

<p>How would I re-enable this when my form returns a validation error?</p>
