﻿// JScript File




        function getInnerHeight(iframe)
        {
            var d=iframe.contentWindow ?
            iframe.contentWindow.document :
            iframe.contentDocument;
            var h=0;
            if(d){
            if(d.documentElement && d.compatMode &&
            d.compatMode=="CSS1Compat")
            h=d.documentElement.scrollHeight;
            else if(d.body)
            h=d.body.scrollHeight;
            if(h) h+=getInsets(d);
            }
            document.getElementById('imgDiv').style.display='none';
            document.getElementById('mainframe').style.visibility='visible';
            if(h < 750)           
                h = 750;
            return h + "px"; //300 is a default value
        }

        function getInsets(d)
        {
            if(d.body.currentStyle)
            with (d.body.currentStyle)
            return (parseInt(marginTop)||0) +
            (parseInt(marginBottom)||0) +
            (parseInt(paddingTop)||0) +
            (parseInt(paddingBottom)||0);
            if(d.defaultView && d.defaultView.getComputedStyle)
            with (d.defaultView)
            return parseInt(getComputedStyle(d.body,"").
            getPropertyValue("margin-top"))+
            parseInt(getComputedStyle(d.body,"").
            getPropertyValue("margin-bottom"))+
            parseInt(getComputedStyle(d.body,"").
            getPropertyValue("padding-top"))+
            parseInt(getComputedStyle(d.body,"").
            getPropertyValue("padding-bottom"));
            return 0;
        }
       
       function setPage(pagename)
        {
            var ifrme = document.getElementById('mainframe');
            ifrme.src=pagename;
            ifrme.style.visibility='hidden';
            document.getElementById('imgDiv').style.display='block';
            document.getElementById('tablemaster').focus();
            
        }  
        function SetWidth()
        {
            //document.body.width=window.screen.width+"px";
           // alert(window.screen.width);
        }  
    