<input type="button" value="hi" onClick="document.formname.submit();" />
function check_values(){ if (document.formname.sometextbox.value == "") { alert("How About A Value in sometextbox buddy!?") return; } else { document.formname.submit(); }}