﻿// JScript 文件
var $$__getFFVersion = navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];
var $$__FFextraHeight = $$__getFFVersion >= 0.1? 16 : 0 ;
function $$__dyniframesize(iframename) 
{   
    var pTar = null;   
    if (document.getElementById)
    {   
        pTar = document.getElementById(iframename);
    }   
    else
    {   
        eval('pTar = ' + iframename + ';');   
    }
    if (pTar && !window.opera)
    {
        pTar.style.display = "block"  
        if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight)
        {
            pTar.height = pTar.contentDocument.body.offsetHeight + $$__FFextraHeight + 20;    
        }
        else
        {
            if (pTar.Document && pTar.Document.body.scrollHeight)
            {   
                pTar.height = pTar.Document.body.scrollHeight + 20;   
            }
        }
    }
}
function $$__Dbdyniframesize(iframename)
{
    $$__dyniframesize(iframename);
    window.parent.$$__dyniframesize(iframename);
}
function f_frameStyleResize(targObj)
{
    var targWin = targObj.parent.document.all[targObj.name];
    if(targWin != null) 
    {
    var HeightValue = targObj.document.body.scrollHeight;
    if(HeightValue < 400)
    {
        HeightValue = 400;
    } //不小于400
        targWin.style.pixelHeight = HeightValue;
    }
}
function f_iframeResize()
{
    bLoadComplete = true; 
    f_frameStyleResize(self);
}
