You can try something like:
<script language="JavaScript">
<!--
function validEntry(){
if (document.my_form.my_field.value == ''){
alert('You've got to enter something!');
document.my_form.my_field.focus();
}else{
document.my_form.submit();
}
}
//-->
</script>
<body>
<form name="my_form" action="my_script.php" method="POST">
<input type="text" name="my_field">
<img scr="/path/to/imgbutton.jpg" onClick="javascript: validEntry();">
</form>
</body>
Now there might be some errors in there, cause I did this on the fly, but it should be pretty close. Be sure make it work on both Netscape and IE.
Take a couple of JavaScript tutorials that are around the web to help you get your feet wet with this skill. Plus you can get good ideas from looking at other pages source code.
Good Luck,
t