// ·¹ÀÌ¾îÀÇ ³ôÀÌ µ¿Àû º¯°æ (S:±âÁØ, T:´ë»ó)
function Set_Height(S,T) {
	if(document.getElementById) {
		S_Height = document.getElementById(S).offsetHeight;
		T_Height = document.getElementById(T).offsetHeight;
	} else if(document.layers) {
		S_Height = document.layers[S].clip.height;
		T_Height = document.layers[T].clip.height;
	}
	if(S_Height > T_Height) document.getElementById(T).style.height = S_Height + 'px';
}

// ¸ÞÀÎ ³×ºñ°ÔÀÌ¼Ç »ö»ó º¯°æ
function Gnb_Over(el,cate) {
	el.className = 'gnb_' + cate + '_over';
}
// ¸ÞÀÎ ³×ºñ°ÔÀÌ¼Ç »ö»ó º¯°æ
function Gnb_Out(el,cate) {
	el.className = 'gnb_' + cate;
}

// ÅÇ ¼½¼Ç Á¦¾î
function Change_Tab(f,s,c,w) {
	var tab_cnt = c;
	for(var i=1; i<=tab_cnt; i++) {
		if(i == s) {
			document.getElementById('LAY_' + f + '_' + i).style.display = 'block';
			document.getElementById('TAB_' + f + '_' + i).style.backgroundImage = 'url(/image/common/tab_' + w + '_on.gif)';
			document.getElementById('TAB_' + f + '_' + i).className = 'tab_on';
		} else {
			document.getElementById('LAY_' + f + '_' + i).style.display = 'none';
			document.getElementById('TAB_' + f + '_' + i).style.backgroundImage = 'url(/image/common/tab_' + w + '_off.gif)';
			document.getElementById('TAB_' + f + '_' + i).className = 'tab_off';
		}
	}
}

// ÆË¾÷ ÇÔ¼ö
// f_name : Open FileName, w_name : WindowsName, wid : WidthSize, hei : HeightSize, status : StatusBar, scroll : ScrollBar, mnbar : MenuBar
function Win_Open(f_name,w_name,wid,hei,status,scroll,mnbar) {
	if(!f_name) { alert('ÆÄÀÏ¸íÀÌ ÀÔ·ÂµÇÁö ¾Ê¾Ò½À´Ï´Ù.'); return; }
	if(!status) status='no';
	if(!scroll) scroll='no';
	if(!mnbar) mnbar='no';
	if(!wid) var wid=500;
	if(!hei) var hei=500;
	window.open(f_name,w_name,'width='+wid+',height='+hei+',history=yes,resizable=no,status='+status+',scrollbars='+scroll+',menubar='+mnbar);
}

// ¾ÆÀÌµð Áßº¹È®ÀÎ ÆË¾÷
function Pop_Id(id_value) {
	Win_Open('/member/pop_idcheck.html','','520','350','yes','no','no');
}

// ÁÖ¼Ò Ã£±â ÆË¾÷
function Pop_Addr() {
	Win_Open('/member/pop_address1.html','','520','350','yes','yes','no');
}

// ¾ÆÀÌµð Ã£±â ÆË¾÷
function Pop_Find_Id() {
	Win_Open('/member/pop_find_id.html','','520','350','yes','yes','no');
}

// ºñ¹Ð¹øÈ£ Ã£±â ÆË¾÷
function Pop_Find_Pass() {
	Win_Open('/member/pop_find_pass.html','','520','380','yes','yes','no');
}

// ¸ÞÀÏ º¸³»±â Ã£±â ÆË¾÷
function Pop_Mail() {
	Win_Open('/news/pop_mail.html','','520','500','yes','yes','no');
}
