/******************************************************************************
 *   Common JavaScript
 *	 Html ¹× JSP¿¡ °øÅëÀûÀ¸·Î »ç¿ëµÇ´Â ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö
 *
 *   @version 1.0 2008/01/22
 *   [History]
 *    - ver 1.0
 *
 *   @author  Copyright (c) 2005 by SBTI. All Rights Reserved.
 *****************************************************************************/

/**
 * iFrame »ðÀÔ ½Ã »çÀÌÁî¸¦ ÀÚµ¿ Á¶ÀýÇÔ
 * ºÎ¸ðÆäÀÌÁö : common.js »ðÀÔ, <iframe src="myIFrame.jsp" ... >
 * myIFrame.jsp : <body onLoad="resezeIFrame(this">
 *
 * ÀÛ¼ºÀÚ : ¾Èº´Áø
 * ÀÛ¼ºÀÏ : 2008.01.23
 */
function resizeIFrame(iFrm){
	if( iFrm && iFrm.name ){
		var objFrame = document.getElementById( iFrm.name );
		var ifrmBody = iFrm.document.body;
		iFrmHeight = ifrmBody.scrollHeight + (ifrmBody.offsetHeight - ifrmBody.clientHeight);
	//	iFrmWidth = ifrmBody.scrollWidth + (ifrmBody.offsetWidth - ifrmBody.clientWidth );
	
		objFrame.style.height = iFrmHeight;
	//	objFrame.style.width = iFrmWidth;
	
		try{
			parent.resizeIFrame(this);
		}catch(err){
			//
		}
	}
}

function doReloading(frm){
//	alert( frm );
	if( frm && frm.location ){
		//sUrl = frm.location.pathname;
		sUrl = frm.location;
		if( sUrl ){
			frm.location.href = sUrl;
		}
	}
}

function doReloadingParent(){
	if( frm && frm.location ){
		sUrl = frm.location.pathname;

		if( sUrl ){
			frm.location.href = sUrl;
		}
	}
}