<!--
function goURL(url) {
	document.location.href =  url;
}
function goURL2MainFrame(url) {
//	parent.frmMain.document.location.href =  url;
	document.location.href =  url;
}
function goBack() {
	window.history.back();
}
function fnDelete(frm, id) {
	if ( id > 0 ) {
		if ( confirm('정말 삭제하시겠습니까?') ) {
			frm.act.value = 'delete';
			frm.id.value = id;
			frm.submit();
		}
	} else {
		alert('삭제할 수 없습니다.');
	}
}
/**
 * page height resize function by iframe
 * from phpschool
 */
function getReSize(name)
{
	try {
		var objFrame = document.getElementById(name);
		if (window.navigator.appName.indexOf("Explorer") !=-1)
			objBody = eval(name + ".document.body;");
		else
			objBody = document.getElementById(name).contentDocument.body;

		ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);

		if (ifrmHeight > 20) {
			objFrame.style.height = ifrmHeight;
		} else {
			objFrame.style.height = 20;
		}
		objFrame.style.width = '99%'
	} catch(e) {
		alert(e);
	};
}
function fnAddExhibitionArtist(frm) {
	var ifm = document.getElementById('ifrmArtist');
	ifm.src = "artist.php?exhibition_id=" + frm.id.value + "&person_id=" + frm.artist.value;
}
function goKorea() {
	goURL('/v2/main_kor.php');
}
function goEnglish() {
	goURL('/v2/main_eng.php');
}
function goMenu(n) {
	switch(n) {
		case '1' : goURL2MainFrame('/v2/exhibition/current.php'); break;
		case '1-1' : goURL2MainFrame('/v2/exhibition/current.php'); break;
		case '1-2' : goURL2MainFrame('/v2/exhibition/past.php'); break;
		case '1-3' : goURL2MainFrame('/v2/exhibition/upcoming.php'); break;
		case '2' : goURL2MainFrame('/v2/artist/list.php'); break;
		case '3' : goURL2MainFrame('/v2/consult/main.php'); break;
		case '3-1' : goURL2MainFrame('/v2/consult/consult.php?category_id=1'); break;
		case '3-2' : goURL2MainFrame('/v2/consult/consult.php?category_id=2'); break;
		case '4' : goURL2MainFrame('/v2/about/about.php'); break;
		case '4-1' : goURL2MainFrame('/v2/about/about.php'); break;
		case '4-2' : goURL2MainFrame('/v2/news/news.php'); break;
		case '4-3' : goURL2MainFrame('/v2/about/mailing.php'); break;
		case '5' : goURL2MainFrame('/v2/main_eng.php'); break;
		case '5-1' : goURL2MainFrame('/v2/main_eng.php'); break;
		case '5-2' : goURL2MainFrame('/v2/main_kor.php'); break;
		case '6' : goURL2MainFrame('/v2/main_kor.php'); break;
		case '6-1' : goURL2MainFrame('/v2/main_kor.php'); break;
		case '6-2' : goURL2MainFrame('/v2/main_eng.php'); break;
		default : alert('서비스 준비중입니다.');
	}
}
function loadWork(n) {
	var img = parent.document.getElementById('WorkImage');
	img.filters.blendTrans.Apply();
	img.src = '/v2/images/works/' + n + '.jpg';
	img.filters.blendTrans.Play();
	parent.document.getElementById('WorkCaption').innerText = works[n];
}
function loadPhoto(n) {
	var img = parent.document.getElementById('PhotoImage');
	img.filters.blendTrans.Apply();
	img.src = '/v2/images/about/' + n + '.jpg';
	img.filters.blendTrans.Play();
}
function loadConsult(n) {
	var img = parent.document.getElementById('ConsultWorkImage');
	img.filters.blendTrans.Apply();
	img.src = '/v2/images/consult/' + n + '.jpg';
	img.filters.blendTrans.Play();
	parent.document.getElementById('ConsultCaption').innerText = works[n];
}
function zipcode(z1, z2, a1, a2) {
	window.open('/v2/func/zipcode.php?z1=' + z1 + '&z2=' + z2 + '&a1=' + a1 + '&a2=' + a2, 'zipcodeWindows', 'width=450px,height=500px,scrollbars=yes');
}
function joinMailing(fm) {
	if ( checkFormValidation(fm) ) {
		fm.submit();		
	}
}
-->