I get no error under IE 6. Must be some "new feature" of IE7? Any way, personnaly I find the document.forms['aspnetForm'] notation only useful when the form name is in a variable. with constants, document.forms.aspnetForm looks cleaner, and document.aspnetForm should work as well