//--------------------------------------------------------------------------------------------------------------
//·Î±×ÀÎ
function show_login(obj,return_page) {
	ShowLayer(obj);
	//document.login.location.href = "https://www.ciefrance.com/login/Login_popup.php?return_page="+return_page;
	document.login.location.href = "/login/Login_popup.php?return_page="+return_page;
	document.all.login_layer.style.display='block';
}
function hidden_login(obj, must_login) {
	HideLayer(eval(obj))
	document.all.login_layer.style.display='none';
	document.login.location.href = "about:blank";
}
//--------------------------------------------------------------------------------------------------------------


////////////////////·¹ÀÌ¾î °ü·Ã ½ºÅ©¸³Æ® ½ÃÀÛ/////////////////////
function ShowBack(){
	var back1 = document.getElementById("div_background");
	var back2 = document.getElementById("frm_background");
	back1.style.left = 0;
	back1.style.top = 0;
	if(document.body.scrollWidth > document.body.clientWidth)
		back1.style.width = document.body.scrollWidth;
	else
		back1.style.width = '100%';
	if(document.body.scrollHeight > document.body.clientHeight)
		back1.style.height = document.body.scrollHeight;
	else
		back1.style.height = '100%';

	back2.style.left = 0;
	back2.style.top = 0;
	if(document.body.scrollWidth > document.body.clientWidth)
		back2.style.width = document.body.scrollWidth;
	else
		back2.style.width = '100%';
	if(document.body.scrollHeight > document.body.clientHeight)
		back2.style.height = document.body.scrollHeight;
	else
		back2.style.height = '100%';

	back1.style.filter = "alpha(opacity=15)";
	back1.innerHTML = "<table width='100%' height='100%' bgcolor='#000000'><tr><td></td></tr></table>";
	back1.style.display = "";

	back2.style.filter = "alpha(opacity=0)";
	back2.style.display = "";
}

function HideBack(){
	document.getElementById("div_background").style.display = "none";
	document.getElementById("frm_background").style.display = "none";
}

function ShowLayer(obj){

	ShowBack();
	obj.style.display = "";

	var Off_X = obj.offsetWidth/2;
	var Off_Y = obj.offsetHeight/2;
	var _x = (document.body.clientWidth/2 + document.body.scrollLeft) - Off_X;
	var _y = (document.body.clientHeight/2 + document.body.scrollTop) - Off_Y;

	obj.style.posLeft=_x;
	obj.style.posTop=_y;
	window.onresize=ShowBack;

}


function HideLayer(obj){
	HideBack();
	eval(obj).style.display = "none";
	window.onresize=HideBack;
}

document.writeln("<div id='div_background' style='display:none;position:absolute;zIndex:5;'></div>");
document.writeln("<iframe id='frm_background' border=0 frameborder=0 style='display:none;position:absolute;zIndex:5;'></iframe>");
