function _ID(obj){return top.document.getElementById(obj)}
/*** ·¹ÀÌ¾î ÆË¾÷Ã¢ ¶ç¿ì±â ***/
function popupLayer(t,s,w,h)
{
	if (!w) w = 600;
	if (!h) h = 600;

	var pixelBorder = 3;
	w += pixelBorder * 2;
	h += pixelBorder * 2;
	
	var bodyW = document.body.clientWidth;
	var bodyH = document.body.clientHeight;
	
	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;


	/*** ¹é±×¶ó¿îµå ·¹ÀÌ¾î ***/
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 0;
		top = 0;
		width = "100%";
		height = document.body.scrollHeight;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=70)";
		opacity = "0.5";
		zIndex = 1000;
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

	
	
	/*** ³»¿ëÇÁ·¹ÀÓ ·¹ÀÌ¾î ***/
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = posX + document.body.scrollLeft;
		top = posY + document.body.scrollTop;
		width = w;
		height = h;
		backgroundColor = "#FFFFFF";
		border = "3px solid #000000";
		zIndex = 1001;
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);


	

	/*** ¾ÆÀÌÇÁ·¹ÀÓ ***/
	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		scrolling = "no";
		width = w;
		height = h;
		zIndex = 1002;
		scrolling = "no"
	}
	ifrm.src = s;
	obj.appendChild(ifrm);

	
}
function closeLayer()
{

	_ID('objPopupLayerBg').parentNode.removeChild( _ID('objPopupLayerBg') );
	_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );

}
