﻿// JScript 文件

var checkNum = 0;
//alert(ThisFrameName);
//alert(targWin);

function ParentResize()
{

    var thisWinPath = location.pathname;
    var HeightValue;
    var ThisFrameName;
    var targWin;
    var timeout = null;
    ThisFrameName = document.parentWindow.name;
                
    targWin = parent.document.all[ThisFrameName];
    
    
		
		//alert(document.parentWindow.name);
        //alert(document.parentWindow.name);
	 //targObj.onclick = f_frameStyleResize(document.GameContent9)
		//alert(targWin);
		if(targWin != null)
		{
            if (document.body)
            {
                HeightValue = document.body.scrollHeight;
                //alert(HeightValue);
                if(HeightValue < 300)
                {
                    //HeightValue = 300
                } //不小于600
                targWin.style.pixelHeight = HeightValue;
            }
		    if(HeightValue == 0 || targWin.style.pixelHeight==0)
		    {

		        //alert(HeightValue);
		    }
		    else
		    {
		        if(timeout!=null)
		        {
		            clearTimeout(timeout);
		        }
		    }
	    }
		//alert(HeightValue);
		    
		//alert(ThisFrameName);
		//alert("222");
		//alert(HeightValue);
		//HeightValue=0;
		
		
		//alert(ThisFrameName);
}
ParentResize();
timeout=setTimeout("ParentResize()",300);