javascript getElementById() for loop (empty textbox validation)
<p>i have the following <a href="http://jsfiddle.net/pmv7W/" rel="nofollow">code</a> that validate against empty textboxes. If there are empty ones, the form will not be able to submit successfully.</p>

<p>However,I cannot seem to get the alert to popup after clicking submit looping through the elements to find if there are any empty boxes to fill in.</p>

<p>any advice/correction on the looping?</p>
