Javascript not working in IE7