
//document.write("<iframe name='hiddenFrame' width='0' height='0' frameborder='0'></iframe>");



/**
 * IFRAME Resize 
 *@param	iFrame 			°´Ã¼(this)
 *@param	defaultHeight	±âº» ³ôÀÌ
 */
function resizeIframe(curFrame, defaultHeight) {
	curFrame.style.display = "block";
	if (defaultHeight == null) {
		defaultHeight = 0;
	}
	var height = 0;
	if (curFrame.contentDocument && curFrame.contentDocument.body.offsetHeight) { //ns6 syntax
		height = curFrame.contentDocument.body.offsetHeight + 16;
	}
	else if (curFrame.Document && curFrame.Document.body.scrollHeight) { //ie5+ syntax
		height = curFrame.Document.body.scrollHeight + 16;
	}
	if (height < defaultHeight) {
		height = defaultHeight;
	}
	curFrame.style.height = height+"px";
}

function resizeIframe2(curFrame) {
	curFrame.style.display = "block";
	if (curFrame.contentDocument && curFrame.contentDocument.body.offsetHeight) { //ns6 syntax
		curFrame.style.height = curFrame.contentDocument.body.offsetHeight + 16 + "px"; 
	}
	else if (curFrame.Document && curFrame.Document.body.scrollHeight) { //ie5+ syntax
		curFrame.style.height = curFrame.Document.body.scrollHeight + "px";
	}
	if (curFrame.contentDocument && curFrame.contentDocument.body.offsetWidth) { //ns6 syntax
		curFrame.style.width = curFrame.contentDocument.body.offsetWidth + 16 + "px"; 
	}
	else if (curFrame.Document && curFrame.Document.body.scrollWidth) { //ie5+ syntax
		curFrame.style.width = curFrame.Document.body.scrollWidth + "px";
	}
}

function fullIframe(curFrame) {
	curFrame.style.display = "block";
	if (curFrame.contentDocument && curFrame.contentDocument.body.offsetHeight) { //ns6 syntax
		curFrame.height = curFrame.contentDocument.body.offsetHeight + 16; 
	}
	else if (curFrame.Document && curFrame.Document.body.scrollHeight) { //ie5+ syntax
		curFrame.height = curFrame.Document.body.scrollHeight;
	}
}

function resizeBodyIframe(frameName){
	try
	{
		var curFrame = document.getElementById(frameName);
		var frmWidth;
		var frmHeight;
		if (curFrame.contentDocument && curFrame.contentDocument.body.offsetHeight) { //ns6 syntax
		    frmWidth = curFrame.contentDocument.body.offsetWidth + 16;
			frmHeight = curFrame.contentDocument.body.offsetHeight + 16;
		}
		else if (curFrame.Document && curFrame.Document.body.scrollHeight) { //ie5+ syntax
		    frmWidth =  curFrame.Document.body.scrollWidth + 16;
			frmHeight = curFrame.Document.body.scrollHeight + 16;
		}
		
		curFrame.style.height = frmHeight;
		curFrame.style.width = frmWidth;
	} 
	catch (e)  
	{
	}
}  
