You mention both "java" and "javascript"
Could you please explain what you mean by "check for java- enabled" ?
Why are you checking if java is enabled on the browser if your using javascript to validate the form? Are we confusing the usage of "java" and "javascript" or are you actually using client-side "javascript" in conjunction with some "java" applet you're loading either on the page or on the server?
Basically... is there any JAVA on your web site? If so, what does it have to do with your javascript? If no, are you merely trying to detect if javascript is enabled, and based on the check, direct the user to a different page?