i fixed it. just uninstall IE7 and revert back to IE6.
seriously, IE7 have some serious problems. a few websites which i used to be able to enter were totally unaccessible with IE7. for example, i remembered there was this blog which i often viewed daily. it is protected by some pretty simple javascript password script. when i used IE7, the whole page just doesn't load at all. i asked my other friend to try, and still the same problem. so it was an IE7 problem since it worked on IE6.
and i did remember seeing the "endif" thing too. actually, you will see some weird stuffs around some websites when you use IE7.