function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no, status=no') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)


function popKcp() {
	pop('/popup/pop_kcp.jsp','kcp','400','360');
}
function PopKcp() {
	pop('/popup/pop_kcp.jsp','kcp','400','360');
}
function fnPop(print, wi, he, le, tp)
{
	var winPop = window.open("/pop/"+print+".jsp", "winPop", "left=" + le + ", top=" + tp + ", width=" + wi + ", height=" + he);
	if (winPop == null)
	{
		alert("Â÷´ÜµÈ ÆË¾÷Ã¢À» Çã¿ëÇØÁÖ¼¼¿ä.");
	}
	else {
		winPop.focus();
	}

}

function goDetail(type,num, w, h, t, l){

	w = document.getElementById("service_pop"+num).clientWidth;
	h = document.getElementById("service_pop"+num).clientHeight;
	
	spop = document.getElementById("service_pop"+num).style;
	//bot = document.getElementById("default_pop_bottom").style;
	//bot.width = w1 + "px";
	//alert(w1);
	if(type == 'block'){	
		spop.width = w+"px";
		spop.height = h+"px";
		//bot.width = w1 + "px";
		spop.top = t+"px";
		spop.left = l+"px";

		spop.display ='block';
	}
	else {
		spop.display ='none';
	}	
}

function okcash(name){
	tab_cash = document.getElementById("cash").style;
	tab_none = document.getElementById("none_cash").style;

	if (name == 'cash')
	{
		tab_cash.display = 'block';
		tab_none.display = 'none';
	}
	else
	{
		tab_cash.display = 'none';
		tab_none.display = 'block';
	}
}
/*
function open_p(url, t, l, w, h) {
	loginpop = window.open(url,"login","top="+ t +", left"+ l +", width="+ w +", height="+ h);
}
*/
function event_pop(type,pid, l) {
	pop_e = document.getElementById(pid).style;

	if (type == "block") {
		if (pid == "pop_regist"){
			pop_e.top = ((document.body.clientHeight/4) - 208) + "px"
			pop_e.left = l + "px"
			pop_e.display = "block";
		} else {
			pop_e.display = "none";
		}
	} else {
		pop_e.display = "none";
	}
}

function email_pop(type,pid) {
	pop_e = document.getElementById(pid).style;

	if (type == "block") {
		if (pid == "service_pop33"){
			pop_e.top = ((document.body.clientHeight/2) - 113) + "px"
			pop_e.left = ((document.body.clientWidth/2) - 175) + "px"
			pop_e.display = "block";
		} else {
			pop_e.display = "none";
		}
	} else {
		pop_e.display = "none";
	}
}

