Custom Submit button not working

this has me puzzled, my form validates perfectly well with a normal submit button but i wish to put a custom button in place however it ain’t working can anyone shed some light?

this is the normal button that works fine:

<input type=“button” name=“Button” value=“Submit” onClick=“emailcheck()”>

this is the one that doesn’t work:

<input type=“image” name=“Button” value=“Submit” src=“sub.gif” width=“100” height=“20” onClick=“emailcheck()”>

instead of using <input type=“image” …

why not use

<img src=“sub.gif” width=“100” height=“20” border=“0” onClick=“emailcheck()”>

I got it…i missed something out, the custom image only works with return placed before the validation.

<img src=“sub.gif” width=“100” height=“20” border=“0” onClick=“return emailcheck()”>