When i use document.getElementsByName("select_all"), i see the value as undefined in firebug console. i think since the select_all checkbox is dynamically appearing on the page may be firefox is not recognizing it.
i changed it to document.getElementById() and it is working in bot IE and firefox. thought it might be usefull to someone