    function setbottomplace()
    {
        var hj3=getoffheight("MBPAGEBOTTOMDIV")-6;
        document.getElementById("MSPageBottom").style.top=hj3+"px";
        if(window.top!=window)
        {
            if(document.attachEvent)
            {
                window.attachEvent("onload",  iframeAutoFit);
                window.attachEvent("onresize",  iframeAutoFit);
            }
            else
            {
                window.addEventListener('load',  iframeAutoFit,  false);
                window.addEventListener('resize',  iframeAutoFit,  false);
            }
        }
    }
    
    function getoffheight(divname)
    {
        var realheight=0;
        var obj=document.getElementById(divname);
        while(obj!=null)
        {
            realheight+=obj.offsetTop;
            obj=obj.parent;
        }
        return realheight;
    }
    
    function iframeAutoFit()
    {
        var agent_iframe = document.createElement("iframe"),
        b_height =getoffheight("MBPAGEBOTTOMDIV")+140;
        agent_iframe.src = "http://www.teem-soft.com/tosetindex.html#" + b_height;
        document.body.appendChild(agent_iframe);
        agent_iframe.style.display = "none";

    }
    
    
    setbottomplace();
    
