﻿// JScript 文件

function DivFrameSet(DivName,FrameName,FrameUrl,FrameWidth,SetValue)
{

    
    ThisDivObj = parent.document.all[DivName];
    
    if(ThisDivObj != null)
    {
        if(SetValue == ThisDivObj.visible)
        {
        
        }
        else
        {
            DivContent = "<img src=images/c.gif width=1 height=1>";
            if(SetValue == true)
            {
                DivContent = "<iframe name="+FrameName+" id="+FrameName+" src="+FrameUrl+" width="+FrameWidth+" height='0' marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>";
            }
            else
            {
            }
            ThisDivObj.innerHTML = DivContent;
            ThisDivObj.visible = SetValue;
        }

    }
}