login page Javascript for IE