﻿        function SetWinHeight(obj)
        {
            var win=obj;
            var height=0;
            if (document.getElementById)
                   if (win && !window.opera)
                        if (win.contentDocument && win.contentDocument.body.offsetHeight)
                       {
                            height=win.contentDocument.body.offsetHeight; 
                            if (height<100)
                                 win.height=100;
                            else
                                 win.height=height;
                        } 
                        else if(win.Document && win.Document.body.scrollHeight)
                       { 
                            height=win.Document.body.scrollHeight; 
                            if (height<100)
                                 win.height=100;
                            else
                                 win.height=height;
                       } 
        }
