window.location = "enter.htm";
window.location = "nojava.htm";
Are you [i]sure[/i] that maybe they aren't [i]actually[/i] checking for Java support? Because that's what it looks like to me.
This method indicates whether the current browser is Java-enabled or not.
The real WTF is why anyone would want to test to see whether or not a box is checked in your preferences.
(Yes, I'm running Firefox. Yes, it returns true on my system when the "Enable Java" checkbox is checked, and false if it's not. No, my browser doesn't have the Java plugin installed.)
Where is the WTF?
You can't just infer that we all know what the page looks like that it redirects you to...