//ÇÁ·¹ÀÓ¸®»çÀÌÁî
var NS4;
var IE4;
if (document.all)
{
    IE4 = true;
    NS4 = false;
}
else
{
    IE4 = false;
    NS4 = true;
}

var frmMinWidth;
var frmMinHeight;
var applyMinSize = false;

function setMinSize(width, height)
{
    frmMinWidth = width;
    frmMinHeight = height
    applyMinSize = true;
}

function plusIframe(name, height)     
{
    if (name == null || name == "")
    {
        name = "guild_main";
    }
    
    try
    {
        if (IE4)
            var oBody   = document.frames(name).document.body;
        else
            var oBody = document.getElementById(name).contentDocument.body;
        var oIFrame = document.getElementById(name);

        var frmWidth  = oBody.scrollWidth;
        var frmHeight  = oBody.scrollHeight;

        if (applyMinSize)
        {
            frmHeight = Math.max(frmHeight, frmMinHeight);
        }

        //oIFrame.style.height = frmHeight + height;
		oIFrame.style.height = frmHeight;

    }
    catch (e)
    {
        window.status = "Error";
    }
}
//ÇÁ·¹ÀÓ¸®»çÀÌÁî

// F5¸¦ ´­·¶À»¶§ iframe ³»ºÎ¸¸ refresh µÇµµ·Ï Ã³¸® start
if (NS4) 
{
    document.captureEvents(Event.KEYDOWN)
    document.onkeydown = trapRefreshNS;
} 
else if (IE4) 
{
    document.onkeydown = trapRefreshIE;
}

function trapRefreshNS(e)
{
    if (e.keyCode == 116)
    {
        e.cancelBubble = true; 
        e.returnValue = false;
        document.location.reload();
    }
}

function trapRefreshIE()
{
    if (event.keyCode == 116)
    {
        event.keyCode = 0; 
        event.cancelBubble = true; 
        event.returnValue = false;
        document.location.reload();
    }
}
// F5¸¦ ´­·¶À»¶§ iframe ³»ºÎ¸¸ refresh µÇµµ·Ï Ã³¸® end
