﻿



        function LoadContentFromDDLVal(ddlValue) {
            document.getElementById('pageBody').style.display = "none";
            document.getElementById('pageBody1').style.display = "none";
            document.getElementById('contentFrame').style.display = "inline";
            document.getElementById('FAFooterTable').style.display = "inline";     

            if (ddlValue == "Disclaimer") {
                window.open("http://apps.finra.org/investor_Information/Tools/Calculators/calc_disclaimer.asp", 'Disclaimer', 'menubar=0,location=0,titlebar=1,status=0,toolbar=0,resizable=1,width=900,height=700');
                hideContent();
            }
            else if (ddlValue == "Home") {                
                hideContent();
            }
            else {
                document.getElementById('FundAnalyzerContainerDiv').style.display = "none";
                document.getElementById('contentFrame').src = ddlValue;
            }
        }

        function resizeFrame() {
            //find the height of the internal page
            var the_height = document.getElementById('contentFrame').contentWindow.document.body.scrollHeight;
            //change the height of the iframe
            document.getElementById('contentFrame').height = the_height + 20;
        }


        function hideContent() {
            document.getElementById('pageBody').style.display = "inline";
            document.getElementById('pageBody1').style.display = "inline";
            document.getElementById('FundAnalyzerContainerDiv').style.display = "inline";
            document.getElementById('contentFrame').style.display = "none";
            document.getElementById('FAFooterTable').style.display = "none";         
        }

        function TabChanged() {
            __doPostBack('ctl00_ContentPlaceHolder1_FAControl_ResultsTabContainer');
            
        }