<!--
function login_Enter(i) {
	if(event.keyCode ==13 && i==7){
		loginit();
	}
}

function loginit() {
	
	if (document.login.User_MeID.value == "") {
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.login.User_MeID.focus();
	}
	else if (document.login.User_Pswd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.login.User_Pswd.focus();
	}
	else {
	document.login.submit();
	}
}
function view_open()
{
	window.open('' ,'new','scrollbars=yes,resizable=yes,width=580,height=400');
}

function ReCall()
{
	document.year.submit();
}

function check_mail(str)
//ÀÌ¸ÞÀÏ Çü½Ä Ã¼Å©
{
	emailEx1 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z]+/;
	emailEx2 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z]+/;
	emailEx3 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z]+/;

	if(emailEx1.test(str)) return true;;
	if(emailEx2.test(str)) return true;
	if(emailEx3.test(str)) return true;

	return false;
}

function Write_it() 
{
	var Cale_Mail = document.form_main.Cale_Mail.value;	//¸ÞÀÏÁÖ¼Ò
	
	if (document.form_main.Cale_Day2.value ==""){
		alert("»ó¼¼ÀÏ½Ã¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä...");
		document.form_main.Cale_Day2.focus();
	}
	else if (document.form_main.Cale_Spot.value ==""){
		alert("Àå¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä...");
		document.form_main.Cale_Spot.focus();
	}
	else if ((document.form_main.Cale_Mail.value != "") && (!check_mail(document.form_main.Cale_Mail.value))){
		alert("E-Mail ¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
		document.form_main.Cale_Mail.focus();
	}
	else if (document.form_main.Cale_Titl.value ==""){
		alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä...");
		document.form_main.Cale_Titl.focus();
	}
	else if  (document.form_main.Cale_Body.value == ""){
			alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			document.form_main.Cale_Body.focus();
	}
	else {
	document.form_main.submit();
	}  
}

function Back_it() {
	history.back(-1);
}

function List_it() {
	location.href="list.asp"
}

function Del_it(key) {
	if ( confirm("Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î? \n \nÀÌ ÀÚ·á´Â º¹±¸ÇÒ¼ö ¾ø½À´Ï´Ù...    ") )
	{ 
		location.href="del.asp?key=" + key ;
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function go_cal() {
parent.location.href='../calendar01/list.asp';
}

// -->
