
// Removes the name.dll ActiveX control download from the publishing site.
function ProcessDefaultOnLoad(onLoadFunctionNames) 
    { 
        //** Uncomment this to see when this runs 
        //alert('Fixing the Issue'); 
        //setupAggregationPanes ("tab-container", "tab1") ;
	ProcessPNGImages(); 
        UpdateAccessibilityUI(); 
        //** We comment out the offending ootb function 
        //** and leave the rest of the functions as they were 
        //ProcessImn(); 
        evalDomain('YourInternalDomain.com'); 
        for (var i=0; i < onLoadFunctionNames.length; i++) 
        { 
            var expr="if(typeof("+onLoadFunctionNames[i]+")=='function'){"+onLoadFunctionNames[i]+"();}"; 
            eval(expr); 
        } 
        if (typeof(_spUseDefaultFocus)!="undefined") 
            DefaultFocus(); 
    }    

    function evalDomain(internalDomain) 
    { 
                var myDomain = document.domain; 
                var match = myDomain.indexOf(internalDomain); 
                //alert(match); 
                if (match != -1) 
                { 
                                //turn on NameX 
                                //alert(myDomain); 
                                ProcessImn(); 
                } 
                else 
                { 
                                //disable NameX 
                                //alert(myDomain); 
                } 
    } 

