﻿// -------------------------------------------------------------------------------------
// Original:   \12\TEMPLATE\LAYOUTS\1033\INIT.JS, Line: 2599
// Reason:     Produces JS error when trying to load Name.dll on IE7/8
// Ref:        http://www.katriendg.com/aboutdotnet/2007-9-moss-issue-activex-ie7-931509.aspx
// Modified:   2010-04-27
// By:         
// -------------------------------------------------------------------------------------
function ProcessDefaultOnLoad(onLoadFunctionNames) {
    ProcessPNGImages();
    UpdateAccessibilityUI();
    // -------------------------------------------------------------------------------------
    // Disable the running of Name.dll, which causes JS error
    // -------------------------------------------------------------------------------------
    //ProcessImn();
    for (var i = 0; i < onLoadFunctionNames.length; i++) {
        var expr = "if(typeof(" + onLoadFunctionNames[i] + ")=='function'){" + onLoadFunctionNames[i] + "();}";
        eval(expr);
    }
    if (typeof (_spUseDefaultFocus) != "undefined")
        DefaultFocus();
}
