/************************************************************
*  ¹®¼­Á¦¸ñ : iframe °ü·Ã script
*  ÀÛ¼ºÀÚ   : ±ÆÀå°É
*  ÀÛ¼ºÀÏ   : 2006-08-01
************************************************************/
//function resizeFrame(iframeObj){ var innerBody = iframeObj.contentWindow.document.body; var innerHeight = innerBody.scrollHeight; var innerWidth = innerBody.scrollWidth; iframeObj.style.height = innerHeight; iframeObj.style.width = innerWidth; }
function resizeWFrame(iframeObj){ var innerBody = iframeObj.contentWindow.document.body; var innerWidth = innerBody.scrollWidth; iframeObj.style.width = innerWidth; }
function resizeHFrame(iframeObj){ var innerBody = iframeObj.contentWindow.document.body; var innerHeight = innerBody.scrollHeight; iframeObj.style.height = innerHeight; }
function resizeHFramePlus(iframeObj){ var innerBody = iframeObj.contentWindow.document.body; var innerHeight = (innerBody.scrollHeight+200); iframeObj.style.height = innerHeight; }

function resizeFrame(iframeObj)
{
    var iframeHeight = Math.max((iframeObj).contentWindow.document.body.scrollHeight,(iframeObj).contentWindow.document.documentElement.scrollHeight);
    var iframeWidth = Math.max((iframeObj).contentWindow.document.body.scrollWidth,(iframeObj).contentWindow.document.documentElement.scrollWidth);
    (iframeObj).height = iframeHeight+20;
    (iframeObj).width = iframeWidth+2;
}

function resizeFrameWidth650(iframeObj)
{
    var iframeHeight = Math.max((iframeObj).contentWindow.document.body.scrollHeight,(iframeObj).contentWindow.document.documentElement.scrollHeight);
    var iframeWidth = Math.max((iframeObj).contentWindow.document.body.scrollWidth,(iframeObj).contentWindow.document.documentElement.scrollWidth);
    (iframeObj).height = iframeHeight+20;
    (iframeObj).width = 650;
}

function resizeFrameHeight(iframeObj)
{
    var iframeHeight = Math.max((iframeObj).contentWindow.document.body.scrollHeight,(iframeObj).contentWindow.document.documentElement.scrollHeight);
    var iframeWidth = Math.max((iframeObj).contentWindow.document.body.scrollWidth,(iframeObj).contentWindow.document.documentElement.scrollWidth);
    (iframeObj).height = iframeHeight+20;
}
