//È¨
function main(){window.document.location.href="/index.htm";}


//¼­ºê

//// ºÒ±³´ëÇÐ¼Ò°³ ////
function sub0101(){window.document.location.href="/sub01/01_01.htm";}
function sub0102(){window.document.location.href="/sub01/01_02.htm";}
function sub0103(){window.document.location.href="/sub01/01_03.htm";}
function sub01041(){window.document.location.href="/sub01/01_041.htm";}
function sub01042(){window.document.location.href="/sub01/01_042.htm";}
function sub0105(){window.document.location.href="/sub01/01_05.htm";}
function sub0106(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=movie_adv";}
function sub01071(){window.document.location.href="/sub01/01_071.htm";}
function sub01072(){window.document.location.href="/sub01/01_072.htm";}
function sub0108(){window.document.location.href="/sub01/01_08.htm";}

//// ºÒ±³´ëÇÐ¼Ò½Ä ////
function sub0201(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=notice";}
function sub0202(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=news_buddha";}
function sub0203(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=news_service";}
function sub0204(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=news_culture";}
function sub0205(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=news_teenager";}
function sub0206(){window.document.location.href="/bj_schedule/schedule.htm";}
function sub0207(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=gallery_event";}
function sub0208(){window.document.location.href="/freeboard/list.htm";}
function sub0209(){window.document.location.href="/sub02/02_09.htm";}


//// µµ·®¾È³» ////
////////
////function sub03021(){window.document.location.href="/sub03/03_021.htm";}
////function sub03022(){window.document.location.href="/sub03/03_022.htm";}
////function sub03023(){window.document.location.href="/sub03/03_023.htm";}
////function sub03024(){window.document.location.href="/sub03/03_024.htm";}
////function sub03025(){window.document.location.href="/sub03/03_025.htm";}
////function sub03026(){window.document.location.href="/sub03/03_026.htm";}
////function sub03027(){window.document.location.href="/sub03/03_027.htm";}
////function sub03031(){window.document.location.href="/sub03/03_031.htm";}
////function sub03032(){window.document.location.href="/sub03/03_032.htm";}
////function sub03033(){window.document.location.href="/sub03/03_033.htm";}

function head_about(){window.document.location.href="/sub03/head_about.htm";}
function head_notice(){window.document.location.href="/sub03/head_notice.htm";}
function head_gallery(){window.document.location.href="/sub03/head_gallery.htm";}

function internal_01_about(){window.document.location.href="/sub03/internal_01_about.htm";}
function internal_01_notice(){window.document.location.href="/sub03/internal_01_notice.htm";}
function internal_01_gallery(){window.document.location.href="/sub03/internal_01_gallery.htm";}

function internal_02_about(){window.document.location.href="/sub03/internal_02_about.htm";}
function internal_03_about(){window.document.location.href="/sub03/internal_03_about.htm";}
function internal_04_about(){window.document.location.href="/sub03/internal_04_about.htm";}
function internal_05_about(){window.document.location.href="/sub03/internal_05_about.htm";}
function internal_06_about(){window.document.location.href="/sub03/internal_06_about.htm";}
function internal_07_about(){window.document.location.href="/sub03/internal_07_about.htm";}

function abroad_01_about(){window.document.location.href="/sub03/abroad_01_about.htm";}
function abroad_01_notice(){window.document.location.href="/sub03/abroad_01_notice.htm";}
function abroad_01_gallery(){window.document.location.href="/sub03/abroad_01_gallery.htm";}

function abroad_02_about(){window.document.location.href="/sub03/abroad_02_about.htm";}
function abroad_03_about(){window.document.location.href="/sub03/abroad_03_about.htm";}

function branch_index(n){window.document.location.href="/sub03/index.htm?branch_num="+n;}	// µµ·® Index
function branch_notice(n){window.document.location.href="/sub03/branch_notice.htm?branch_num="+n;}	// µµ·® °øÁö»çÇ×
function branch_gallery(n){window.document.location.href="/sub03/branch_gallery.htm?branch_num="+n;}	// µµ·® °¶·¯¸®


function View_Branch_Gallery(n)
{
	window.open("/sub03/branch_gallery_zoom.htm?num="+n, "Branch_Gallery_Zoom", "scrollbars=no, width=628,height=590:top=300,left=300");
}



//// È¸ÁÖ¿ìÇÐ½º´Ô ////
function sub0401(){window.document.location.href="/sub04/04_01.htm";}
function sub0402(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=books_woohak";}
function sub0403(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=message_totday";}
function sub0404(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=lecture_woohak";}
function sub0405(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=counsel_woohak";}
function sub0406(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=gallery_woohak";}
function sub0407(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=prayer_woohak";}

//// ¹Ìµð¾î¼¾ÅÍ ////
function sub0501(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=media_btn";}
function sub0502(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=media_bbs";}
function sub0503(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=first_knowledge";}
function sub0504(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=media_special";}
function sub0505(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=music_buddha";}
function sub0506(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=weekly_magazine";}
function sub0507(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=words_buddha";}
function sub0508(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=experience";}


//// ºÒ»ç¾È³» ////
function sub0601(){window.document.location.href="/sub06/06_01.htm";}
function sub0602(){sub06021();}
function sub06021(){window.document.location.href="/sub06/06_021.htm";}
function sub06022(){window.document.location.href="/sub06/06_022.htm";}
function sub06023(){window.document.location.href="/sub06/06_023.htm";}

function sub0603(){sub06031();}
function sub06031(){window.document.location.href="/sub06/06_031.htm";}
function sub06032(){window.document.location.href="/sub06/06_032.htm";}
function sub06033(){window.document.location.href="/sub06/06_033.htm";}

function sub0604(){window.document.location.href="/sub06/06_04.htm";}


//// »çÀÌ¹öºÒ±³´ëÇÐ ////
function sub0701(){window.document.location.href="/sub07/07_01.htm";}
function sub0702(){sub07021();}
function sub07021(){window.document.location.href="/sub07/07_021.htm";}
function sub07022(){window.document.location.href="/sub07/07_022.htm";}
function sub07023(){window.document.location.href="/sub07/07_023.htm";}

function sub0703(){window.document.location.href="/bj_board/bjbrd_list.htm?board_id=cbu_notice";}
function sub0704(){window.document.location.href="/sub07/07_04.htm";}
function sub0705(){window.document.location.href="/sub07/07_05.htm";}
function sub0706(){window.document.location.href="/sub07/07_06.htm";}


//// È¸¿øÁ¤º¸ ////
function sub0801(){window.document.location.href="/member/login.htm";}
function sub0802(){window.document.location.href="/member/join_agree.htm";}
function sub0803(){window.document.location.href="/member/find_id.htm";}
function sub0804(){window.document.location.href="/member/member_mod.htm";}
function sub0805(){window.document.location.href="/member/mem_secede.htm";}
function sub0806(){window.document.location.href="/sub08/08_06.htm";}
function sub0807(){window.document.location.href="/sub08/08_07.htm";}
function sub0808(){window.document.location.href="/sub08/08_08.htm";}

function logout(){window.document.location.href="/member/logout_proc.php";}



//ÅÇ¸Þ´º
function initNavigation(seq) {
nav = document.getElementById("tnb");
nav.menu = new Array();
nav.current = null;
nav.menuseq = 0;
navLen = nav.childNodes.length;
var ovStop = null;
ovStop = document.getElementById("ovStop");

for (i = 0; i < navLen; i++) {
	navItem = nav.childNodes.item(i);
	if (navItem.tagName != "LI")
		continue;

	navAnchor = navItem.getElementsByTagName("a").item(0);
	navAnchor.submenu = navItem.getElementsByTagName("ul").item(0);
	
	navAnchor.onmouseover = navAnchor.onfocus = function () {
		if (nav.current) {
			menuImg = nav.current.childNodes.item(0);
			if (ovStop.src != menuImg.src) menuImg.src = menuImg.src.replace("_over.gif", ".gif");
			if (nav.current.submenu)
				nav.current.submenu.style.display = "none";
			nav.current = null;
		}
		if (nav.current != this) {
			menuImg = this.childNodes.item(0);
			if (ovStop.src != menuImg.src) menuImg.src = menuImg.src.replace(".gif", "_over.gif");
			if (this.submenu)
				this.submenu.style.display = "block";
			nav.current = this;
		}
		nav.isOver = true;
	}
	nav.menuseq++;
	nav.menu[nav.menuseq] = navAnchor;
}
if (nav.menu[seq])
	nav.menu[seq].onmouseover();
}



/** È¸¿øÁ¤º¸
function member06(){window.document.location.href="/member/agree.htm";}
function member07(){window.document.location.href="/member/privacy.htm";}
**/





//È¸¿ø°¡ÀÔ Ã¼Å©
function signup_submit(f)
{
if (f.name.value == 0 ) {		
	alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.name.focus();
	return;
} 

var reg_num1 = f.reg_num1; 
var reg_num2 = f.reg_num2; 
var jumin1Num = reg_num1.value; 
var jumin2Num = reg_num2.value; 
var juminNum = reg_num1.value + reg_num2.value; 

if(jumin1Num.length != 6 || jumin2Num.length != 7 || isNaN(juminNum) || juminNum.charAt(6)<1 || juminNum.charAt(6)>4) { 
	alert ("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!"); 
	reg_num1.focus(); 
	return; 
} 

var check = 0 ; 
for (var i=0 ; i<12 ; i++) { 
	check += (i%8+2) * juminNum.charAt(i); 
} 
check = (11-check%11) % 10; 

if(check != juminNum.charAt(12)) { 
	alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù..^.^"); 
	reg_num1.focus(); 
	return;
} else if (f.input_id.value == 0 ) {		
	alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.input_id.focus();
	return;
} else if (f.chk.value == 0 ) {		
	alert("¾ÆÀÌµð°¡ Áßº¹ÀÌ°Å³ª 5ÀÚ ¹Ì¸¸ÀÔ´Ï´Ù.");
	return;
} else if (f.password.value == 0 ) {		
	alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.password.focus();
	return;
} else if(f.password.value != f.re_password.value) {
	alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");
	f.password.focus();
	return;
} else if (f.answer.value == 0 ) {		
	alert("ºñ¹Ð¹øÈ£ Áú¹®ÀÇ ´äÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.answer.focus();
	return;
} else if (f.tel2.value == 0 ) {		
	alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.tel2.focus();
	return;
} else if (f.tel3.value == 0 ) {		
	alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.tel3.focus();
	return;
} else {
	f.submit();
}
}

//·Î±×ÀÎ Ã¼Å©
function login_submit(f)
{
if(f.id.value == 0) {
	alert("ID¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.id.focus();
} else if (f.password.value == 0 ) {		
	alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.password.focus();
} else {
	f.submit();
}
}

//Ã¼Å©ÇÑ°Å ÀüºÎ »èÁ¦
function delete_all(f)
{
if(confirm("¼±ÅÃÇÑ °ÍÀ» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?")) {
	f.submit();
}
}

//È¸¿ø¼öÁ¤ Ã¼Å©
function modify_submit(f)
{
if (f.old_password.value == 0 ) {		
	alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.old_password.focus();
} else if(f.password.value != 0) {
	if(f.password.value != f.re_password.value) {
		alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");
		f.password.focus();
	} else {
		f.submit();
	}
} else {
	f.submit();
}
}

//È¸¿øµî·Ï Ã¼Å©
function write_submit(f)
{
if (f.subject.value == 0 ) {		
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.subject.focus();
} else if (f.contents.value == 0 ) {		
	alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.contents.focus();
} else {
	f.submit();
}
}
function gallery_submit(f)
{
if (f.subject.value == 0 ) {		
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.subject.focus();
} else if (f.cate.value == "0" ) {		
	alert("Ä«Å×°í¸®¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.");
} else if (f.contents.value == 0 ) {		
	alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.contents.focus();
} else {
	f.submit();
}
}

//ÄÚ¸àÆ® µî·Ï Ã¼Å©
function comment_submit(f)
{
if (f.name.value == 0 ) {		
	alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.name.focus();
} else if (f.password.value == 0 ) {		
	alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.password.focus();
} else if (f.content.value == 0 ) {		
	alert("³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
	f.content.focus();
} else {
	f.submit();
}
}

//°³ÀÎÁ¤º¸µ¿ÀÇ Ã¼Å©
function public_check(f)
{
if (!f.radiobutton[0].checked) {
	alert("ÀÌ¿ë¾à°ü¿¡ µ¿ÀÇÇØÁÖ¼¼¿ä.");
} else {
	f.submit();
}
}

//È¸¿ø ÄÚ¸àÆ® »èÁ¦
function comment_delete(bid,page,no,cno,member_id) {
if (confirm("ÄÚ¸àÆ®¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
	if (member_id == "") {
		//CenterWin('comment_delete.php?bid=' + bid + '&page=' + page + '&no=' + no + '&cno=' + cno,'','width=350, height=150, scrollbars=no')
		location.href="comment_delete.php?bid=" + bid + '&page=' + page + '&no=' + no + '&cno=' + cno;
	} else {
		location.href = "comment_delete_process.php?bid=" + bid + "&page=" + page + "&no=" + no + "&cno=" + cno;
	}
} else {
	return;
}
}
//ÀÌ¹ÌÁö»çÀÌÁî¸Â°Ô¶ç¿ì±â
function popimage(imagesrc,winwidth,winheight){
	var look='width='+winwidth+',height='+winheight+','
			popwin=window.open("","",look)
			popwin.document.open()
			popwin.document.write('<title>Image Window</title><body topmargin=0 leftmargin=0><img style=cursor:hand; onclick="self.close()" src="'+imagesrc+'"></body>')
			popwin.document.close()
}

//ÆË¾÷Ã¢

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
	win = window.open(mypage,myname,settings)
}

//ÆË¾÷Ã¢
function show(object) {
if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'visible';
else if (document.all) document.all[object].style.visibility = 'visible';
}
function hide(object) {
if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden';
else if (document.all) document.all[object].style.visibility = 'hidden';
}

//·¹ÀÌ¾îÃ¢
function move_box(an, box) {
//¸µÅ©µÈ À§Ä¡¿¡¼­ ºÎÅÍÀÇ ¼³Á¤°ª ÁöÁ¤
var cleft = 20;  //¿ÞÂÊ¸¶Áø  
var ctop = -10;  //»ó´Ü¸¶Áø
var obj = an;
while (obj.offsetParent) {
	cleft += obj.offsetLeft;
	ctop += obj.offsetTop;
	obj = obj.offsetParent;
}
box.style.left = cleft + 'px';
ctop += an.offsetHeight + 8;
if (document.body.currentStyle &&
	document.body.currentStyle['marginTop']) {
	ctop += parseInt(
		document.body.currentStyle['marginTop']);
}
box.style.top = ctop + 'px';
}

function move_box2(an, box) {
//¸µÅ©µÈ À§Ä¡¿¡¼­ ºÎÅÍÀÇ ¼³Á¤°ª ÁöÁ¤
var cleft = -400;  //¿ÞÂÊ¸¶Áø  
var ctop = -400;  //»ó´Ü¸¶Áø
var obj = an;
while (obj.offsetParent) {
	cleft += obj.offsetLeft;
	ctop += obj.offsetTop;
	obj = obj.offsetParent;
}
box.style.left = cleft + 'px';
ctop += an.offsetHeight + 8;
if (document.body.currentStyle &&
	document.body.currentStyle['marginTop']) {
	ctop += parseInt(
		document.body.currentStyle['marginTop']);
}
box.style.top = ctop + 'px';
}

function show_hide_box(an, width, height, borderStyle) {
var href = an.href;
var boxdiv = document.getElementById(href);

if (boxdiv != null) {
	if (boxdiv.style.display=='none') {
		move_box(an, boxdiv);
		boxdiv.style.display='block';
	} else
		boxdiv.style.display='none';
	return false;
}

boxdiv = document.createElement('div');
boxdiv.setAttribute('id', href);
boxdiv.style.display = 'block';
boxdiv.style.position = 'absolute';
boxdiv.style.width = width + 'px';
boxdiv.style.height = height + 'px';
boxdiv.style.border = borderStyle;
boxdiv.style.backgroundColor = '#fff';

var contents = document.createElement('iframe');
contents.scrolling = 'yes';
contents.frameBorder = '0';
contents.style.width = width + 'px';
contents.style.height = height + 'px';
contents.src = href;

boxdiv.appendChild(contents);
document.body.appendChild(boxdiv);
move_box(an, boxdiv);

return false;
}

function show_hide_box2(an, width, height, borderStyle) {
var href = an.href;
var boxdiv = document.getElementById(href);

if (boxdiv != null) {
	if (boxdiv.style.display=='none') {
		move_box2(an, boxdiv);
		boxdiv.style.display='block';
	} else
		boxdiv.style.display='none';
	return false;
}

boxdiv = document.createElement('div');
boxdiv.setAttribute('id', href);
boxdiv.style.display = 'block';
boxdiv.style.position = 'absolute';
boxdiv.style.width = width + 'px';
boxdiv.style.height = height + 'px';
boxdiv.style.border = borderStyle;
boxdiv.style.backgroundColor = '#fff';

var contents = document.createElement('iframe');
contents.scrolling = 'no';
contents.frameBorder = '0';
contents.style.width = width + 'px';
contents.style.height = height + 'px';
contents.src = href;

boxdiv.appendChild(contents);
document.body.appendChild(boxdiv);
move_box2(an, boxdiv);

return false;
}

//½½¶óÀÌµù¸Þ´º
function slide(Id, interval, to) {
	var obj = document.getElementById(Id);
	var H, step = 5;

	if (obj == null) return;
	if (to == undefined) { // user clicking
			if (obj._slideStart == true) return;
			if (obj._expand == true) {
					to = 0;
					obj.style.overflow = "hidden";
			} else {
					slide.addId(Id);
					for(var i=0; i < slide.objects.length; i++) {
							if (slide.objects[i].id != Id && slide.objects[i]._expand == true) {
									slide(slide.objects[i].id);
							}
					}

					obj.style.height = "";
					obj.style.overflow = "";
					obj.style.display = "block";
					to = obj.offsetHeight; // ÀÌ°ÅÀÌ°Å
					obj.style.overflow = "hidden";
					obj.style.height = "1px";
			}
			obj._slideStart = true;
	}
	
	step             = ((to > 0) ? 1:-1) * step;
	interval         = ((interval==undefined)?1:interval);

	obj.style.height = (H=((H=(isNaN(H=parseInt(obj.style.height))?0:H))+step<0)?0:H+step)+"px";
	
	
	if (H <= 0) {
			obj.style.display = "none";
			obj.style.overflow = "hidden";
			obj._expand = false;
			obj._slideStart = false;
	} else if (to > 0 && H >= to) {
			obj.style.display = "block";
			obj.style.overflow = "visible";
			obj.style.height = H + "px";
			obj._expand = true;
			obj._slideStart = false;
	} else {
			setTimeout("slide('"+Id+"' , "+interval+", "+to+");", interval);
	}
}
slide.objects = new Array();
slide.addId = function(Id)
{
	for (var i=0; i < slide.objects.length; i++) {
			if (slide.objects[i].id == Id) return true;
	}
	slide.objects[slide.objects.length] = document.getElementById(Id);
}




//Window Open
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

//Window Open
function large_window(large, width, height) {
open(large ,"free_mail","left=100px,top=100px,width="+width+",height="+height+", toolbar=no,location=no,directories=no,status=no, menubar=no, resizable=yes, scrollbars=yes");
}

//ÇÃ·¡½Ã Å×µÎ¸® »èÁ¦
function getFlash(src,w,h){
html = '';
html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id="param" width="'+w+'" height="'+h+'">';
html += '<param name="movie" value="'+src+'">';
html += '<param name="quality" value="high">';
html += '<param name="wmode" value="transparent">';
html += '<param name="bgcolor" value="#ffffff">';
html += '<embed src="'+src+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+w+'" height="'+h+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
html += '</object>';
document.write(html);
}

//PNG24 ÀÌ¹ÌÁöÃ³¸®
function setPng24(obj)
{
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src=''; 
return '';
}

//¿ÀÇÂºê¶ó¿ìÀú ¿­±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}


//ÀÛÀº ÆË¾÷
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}


//Ã¼Å©¹Ú½º ÀüÃ¼ Ã¼Å©
function chk_val( str ) {
		 var chk_box = document.forms[0].elements['chk[]'];
		 var chk_len = chk_box.length;
		 str == null ? str = 'all' : '';
		 for( var lo = 0; lo < chk_len; lo++) {
						str == 'all' ? chk_box[lo].checked = true  : '';
						str == 'nul' ? chk_box[lo].checked = false : '';
						str == 'rev' ? chk_box[lo].checked == true ? chk_box[lo].checked = false : chk_box[lo].checked = true : '';
		 }
	 if (document.forms[0].elements['chk[]'].checked = true) {
		 document.forms[0].elements['chk_rev'].value = "ÀüÃ¼";
	 }
	 
	 if (document.forms[0].elements['chk[]'].checked = false) {		   
		 document.forms[0].elements['chk_rev'].value = "ÇØÁ¦";
	 }
}
//ÀÌ¸ÞÀÏ ¼¿·ºÆ®
function check_mail(frm) {
if (frm.email_list.value!="" && frm.email_list.value!="self") {
	frm.email2.style.display = 'none';
	frm.email2.value = frm.email_list.value;
} else if (frm.email_list.value=="self") {
	frm.email2.value = '';
	frm.email2.style.display = '';
	frm.email2.focus();
}
}

//ÀüÃ¼ »èÁ¦
function del_all(){
if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
	document.check_form.submit();
}
}

var a = document.all;

function onChange_SEL_MAIL_SERVER() {
if (a.SEL_MAIL_SERVER.options[a.SEL_MAIL_SERVER.selectedIndex].value == "°íµîÇÐ»ý") {
	a.TB_MAIL_SERVER.style.display = "";
	a.TB_MAIL_SERVER2.style.display ="";
} else {
	a.TB_MAIL_SERVER.style.display = "none";
	a.TB_MAIL_SERVER2.style.display = "none";
}
}

//ÀÚ¹Ù½ºÅ©¸³Æ® ÀÌ¹ÌÁö ¿øº»Å©±â·Î ¶ç¿ì±â ÇÑ±ÛÆÄÀÏ Àû¿ë¾ÈµÊ

var imgObj = new Image();
function showImgWin(imgName) {
imgObj.src = imgName;
setTimeout("createImgWin(imgObj)", 100);
}
function createImgWin(imgObj) {
if (! imgObj.complete) {
	setTimeout("createImgWin(imgObj)", 100);
	return;
}
imageWin = window.open("", "imageWin",
	"width=1000,height=" + imgObj.height);
imageWin.document.write("<html><body style='margin:0'>");
imageWin.document.write("<a href=javascript:window.close()><img src='" + imgObj.src + "' border=0></a>");
imageWin.document.write("</body><html>");
imageWin.document.title = imgObj.src;
}


//·Ñ¿À¹ö
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
