how can i submit with this code?

i made it 2 images because i tried getting the forms matching on all browsers but well the only solution i found was to make images... so now i need to know how i can submit the form with the login button(a/div/image, i'm confused xD)

and i got the reset button under control, its just a simple javascript...
Code:
<a href=""><div class="buttonimgs id1"><p style="margin-top:3px;">Login</p></div></a>
<a href=""><div class="buttonimgs id2"><p style="margin-top:3px;">Reset</p></div></a>
ps: the div class is where the image comes from...