/******************************************************************************
 *   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 resizeIFrameH(striFrame, iFrmHeight){
	document.getElementById(striFrame).style.height=iFrmHeight
}

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;
		}
	}
}

function alertToAdmin(str)	{
	var msg = "°úÁ¤ ÁøÇà¿¡ ¹®Á¦°¡ ÀÖ½À´Ï´Ù.\n\n°í°´¼¾ÅÍ·Î (031-490-1283) ¿¬¶ôÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.";
	alert(msg);

//=== ´ã´çÀÚ¿¡°Ô ¸ÞÀÏÀ» º¸³»¾ß ÇÑ´Ù.
	popOpenWindow( '/thrd/to/ms/TO_MSMail.jsp?str='+str, 'mail', 10, 10, 50, 50, ',scrollbars=yes' );
}

