function check_me() { //event.preventDefault(); var hello = document.myForm.username
Although this is the accepted answer, toto_tico's answer below is better :)
Try making the onclick js use 'return' to ensure the desired return value gets used...