Summary:
Rather than modifying the init.js file, simply add the following code just before the closing <body> tag in your master page:
<script>
function ProcessImn(){}
</script>
Detailed description:
On a Public Facing SharePoint MOSS site, some users may be prompted by IE7 to install an the "Name ActiveX Control".
This issue is addressed by Microsoft KB Article 931509, as well as several blogs (Michael Gannotti, and John Stover).
As it currently stands, the KB article is actually somewhat misleading. In particular, it has you comment out a couple function names but leave the function body intact. Obviously, this is a flawed approach – the function body will still run, reference calls to the now-missing functions will throw errors, etc. Michael and John both take the simpler approach of just commenting out a single function call. Makes more sense, and doesn’t break anything else.
However, there’s a gotcha with both approaches in that they involve directly modifying init.js, within the "layouts" directory on the server, or a copy of it. As pointed out in the KB article, referencing an alternate init.js file isn’t always reliable, as there may be multiple references to this file or it may be referenced within the black-box of html produced by an inherited page object. And so the fallback is to directly modify the init.js file on the server – which, of course, affects all sites in the farm and is also subject to being overwritten by service packs. Either way, you must make changes to each server in the farm. And in some situations, you may not have access to the physical server files.
That's ok, an easier solution exists! Simply override the JavaScript method! All you have to do is include the code above at the end of your master page. Since this function doesn’t get called until the page loads (trace through the init.js function calls file an you’ll wind up at the _spBodyOnLoadWrapper() function), you can safely place this at the end of the master page to ensure you override any other references to init.js, but before the method is called. All without having to change any server-side files!