//////////////////////////////////////////////////////»õÃ¢Ç®½ºÅ©¸°
function fullscreen(){
		var w = screen.width - 10;
		var h = screen.height-100;

		intra = window.open ("/intra/index.asp", "intrapop", "top=0,left=0,width=" + w + ",height=" + h);
}
/////////////////////////////¾×Æ¼ºê¾×½ºÄÁÆ®·Ñ/////////////////////////////
var tmpActiveObjSrc;

function addActiveObject(objName, objSrc) {

  var tmpObj;

  tmpObj = eval("document.all."+objName);
  tmpObj.innerHTML = ""+objSrc+"";

}
/////////////////////////////// Event PopUp/////////////////////////////
function EventPopup(){
	var eventCookie1=getCookie("setEvent03");
	if (eventCookie1 != "no") {
		var wPosition = screen.width/2 - 400;
		var hPosition = screen.height/2 - 400;

		//Features = "height=500, width=400, top="+hPosition+", left="+wPosition+",status=no,menubar=no,toolbar=no,location=no,resizable=no, scrollbars=no, resizable=no";
		Features = "height=464, width=500, top="+hPosition+", left="+wPosition+",status=no,menubar=no,toolbar=no,location=no,resizable=no, scrollbars=no, resizable=no";
		//Goto_Page = "/popup/ibt.htm";
		Goto_Page = "/popup/eventwithdaum.htm";
		window.open(Goto_Page,'PopupEvent03',Features);		
	}
	//ÆË¾÷Ã¢ÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ¿¡ ÀÖ¾î¾ß ÇÑ´Ù. 
}

//////// event popup window  cookie setting
function getCookie(name) {
	var Found = false
	var start, end
	var i = 0
	while(i <= document.cookie.length) {
		start = i
		end = start + name.length
		if(document.cookie.substring(start, end) == name) {
			Found = true
			break
		}
		i++
	}
	if(Found == true) {
		start = end + 1
		end = document.cookie.indexOf(";", start)
		if(end < start)
		end = document.cookie.length
		return document.cookie.substring(start, end)
	}
	return ""
}

/////////////////////////////·Î±×ÀÎÇ×¸ñÃ¼Å©//////////////////////////////////////////////
function checkloginform(){
    
	if( loginmember.id.value=="" ){
      alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
      loginmember.id.focus(); 
      return false;
    }

	if( loginmember.pwd.value=="" ){
      alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
      loginmember.pwd.focus(); 
      return false;
    }

	
   document.loginmember.submit();

  }


 /////////////////////////////·Î±×¾Æ¿ôÃ¼Å©//////////////////////////////////////////////
 function checklogout(){
    
	if (confirm("Á¤¸» ·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?") == true) {
	 location.href='/member/logout_proc.asp';
	 return false;
	}

  }


 /////////////////////////////°¡ÀÔ¿©ºÎÃ¼Å©//////////////////////////////////////////////
 function checkregiform(){
    
	var objform = document.regicheck;

	var objResidentNum1 = objform.txtResidentNum1;
	var objResidentNum2 = objform.txtResidentNum2;

	var varResidentNum1 = objform.txtResidentNum1.value;
	var varResidentNum2 = objform.txtResidentNum2.value;
	
	if (objform.radStip[0].checked != true) {
		alert("È¸¿ø¾à°ü¿¡ µ¿ÀÇÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		return false;
	}
	
	if ( varResidentNum1 == ""){
		alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objResidentNum1);
	} else if ( varResidentNum2 == "" ) {
		alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objResidentNum2);
	} else if (jfncResidentNumChk(varResidentNum1,varResidentNum2) == false) {
		alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.";
		return jfncErrorMsg (alert_msg,objResidentNum1);
	}
	
}

////////////////////////////ÁÖ¹Î µî·Ï ¹øÈ£ Ã¼Å©////////////////////////////
function jfncResidentNumChk(objvalue1,objvalue2) {
	if(objvalue2.substring(0,1) > 4) {
		return false;
	}
	
	var f1=objvalue1.substring(0,1)
	var f2=objvalue1.substring(1,2)
	var f3=objvalue1.substring(2,3)
	var f4=objvalue1.substring(3,4)
	var f5=objvalue1.substring(4,5)
	var f6=objvalue1.substring(5,6)
	var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7
	var l1=objvalue2.substring(0,1)
	var l2=objvalue2.substring(1,2)
	var l3=objvalue2.substring(2,3)
	var l4=objvalue2.substring(3,4)
	var l5=objvalue2.substring(4,5)
	var l6=objvalue2.substring(5,6)
	var l7=objvalue2.substring(6,7)
	hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5
	hap=hap%11
	hap=11-hap
	hap=hap%10
	if (hap != l7) {
		return false;
	}
	return true;
}

//////////////////////////// ¿¡·¯ ¸Þ¼¼Áö Ãâ·Â////////////////////////////
function jfncErrorMsg (msg,obj) {
	alert (alert_msg);
	obj.focus();
	return;
}

////////////////////////////// ÁÖ¼Ò °Ë»öÃ¢ ¶ç¿ì±â////////////////////////////
function jfncZipCodeSearch(strOpener) {

	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 200;

	Features = "height=254, width=478, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Goto_Page = "/member/zipcode.asp?Opener="+strOpener;
	window.open(Goto_Page,'ZipCodeWin',Features);
}
////////////////////////////// ÁÖ¼Ò °Ë»öÃ¢ ¶ç¿ì±â_new////////////////////////////
function jfncZipCodeSearch_new(strOpener) {

	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 200;

	Features = "height=300, width=478, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Goto_Page = "/membership/popup_address_search.asp?Opener="+strOpener;
	window.open(Goto_Page,'ZipCodeWin',Features);
}
////////////////////////////// ÁÖ¼Ò °Ë»öÃ¢(ÀÎÆ®¶ó) ¶ç¿ì±â////////////////////////////
function jfncZipCodeIntra(strOpener) {

	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 200;

	Features = "height=284, width=506, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Goto_Page = "/intra/common/zip/zipcode.asp?Opener="+strOpener;
	window.open(Goto_Page,'ZipCodeWin',Features);
}

////////////////////////////// ¿À´Ã ³¯Â¥ ¾ò±â ////////////////////////////
function jfncGetTodate(){
	var varTodate = new Date();
	var varTodate1 = varTodate.getUTCMonth() + 1;
	var varTodate2 = varTodate.getUTCDate();
	var varTodate3 = varTodate.getUTCFullYear();
	var varTodate = new Date(varTodate1+"-"+varTodate2+"-"+varTodate3);

	return(varTodate);
}
////////////////////////////// ¾ÆÀÌµð Áßº¹ °Ë»ö Ã¢ ¶ç¿ì±â////////////////////////////
function jfncPopUpMemberIdSch(){
	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 124;

	Features = "height=248, width=450, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	Goto_Page = "/member/memberid_sch.asp";
	window.open(Goto_Page,'MemberIdCheckWin',Features);
}

////////////////////////////// ¾ÆÀÌµð Áßº¹ °Ë»ö Ã¢ ¶ç¿ì±â new////////////////////////////
function jfncPopUpMemberIdSch_new(){
	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 124;

	Features = "height=295, width=450, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	Goto_Page = "/membership/popup_id_search.asp";
	window.open(Goto_Page,'MemberIdCheckWin',Features);
}

////////////////////////////// ¾ÆÀÌµð Áßº¹ °Ë»ö Ã¢¿¡¼­ È¸¿ø°¡ÀÔÆûÀ¸·Î °ªÀü´Þ ////////////////////////////
function jfncMemberIdConfirm(strMemberId){ 
	opener.document.frmMember.txtMemberId.value = strMemberId;
	window.close();
}
////////////////////////////// ºñ¹Ð¹øÈ£Ã¼Å©////////////////////////////
function jfncPwdChkField(objvalue, obj) {
	if (jfncCharChk(objvalue) == false) {
		alert_msg = "ºñ¹Ð¹øÈ£´Â ¿µ¾î,¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,obj);
	} else if (objvalue.length < 6 || objvalue.length > 12)	 {
		alert_msg = "ºñ¹Ð¹øÈ£´Â 6~12ÀÚ¸®ÀÔ´Ï´Ù.";
		return jfncErrorMsg (alert_msg,obj);
	}
	return true;
}

////////////////////////////// ÁÖ¹Î¹øÈ£ Ã¼Å© ////////////////////////////
function JuminChk()
{
var objform = document.frmMember;

num = document.getElementById("txtResidentNum1").value + document.getElementById("txtResidentNum2").value

   var month='(0[1-9]|1[0-2])';
   var date='(0[1-9]|[1-2][0-9]|3[0-1])';
   var regMonth = new RegExp(month);
   var regDate = new RegExp(date);
   
	   if(!regMonth.test(num.substring(2,4))){
		
		  alert("Á¤»óÀûÀÎ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù");
		  document.getElementById("checkid_yn").value = ""
		  document.getElementById("txtResidentNum1").value='';
		  document.getElementById("txtResidentNum2").value='';
	//	  document.frmMember.txtResidentNum1.focus();
		  return;
	   }
	
	 if(!regDate.test(num.substring(4,6))){
		  alert("Á¤»óÀûÀÎ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù");
		  document.getElementById("checkid_yn").value = ""
		  document.getElementById("txtResidentNum1").value='';
		  document.getElementById("txtResidentNum2").value='';
	//	  document.frmMember.txtResidentNum1.focus();
		  return ;
	   }


   var tab=[2,3,4,5,6,7,8,9,2,3,4,5];
   var sum=0,i=0;
   
   for(i=0;i<12;i++) sum+=parseInt(num.charAt(i))*tab[i];
	   if(((11-(sum%11))%10!=num.charAt(12))){
		  alert("Á¤»óÀûÀÎ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù");
		  document.getElementById("checkid_yn").value = ""
		  document.getElementById("txtResidentNum1").value='';
		  document.getElementById("txtResidentNum2").value='';
		//  document.frmMember.txtResidentNum1.focus();
		  return;
	   }
	
		else
		{
			 alert("½Ç¸íÀÎÁõ È®ÀÎµÇ¾ú½À´Ï´Ù.")
			 document.getElementById("checkid_yn").value = "ok"
		}

}

////////////////////////////// È¸¿ø °¡ÀÔ Æû ÀÔ·Â ³»¿ë È®ÀÎ ////////////////////////////
function jfncMemberJoinChkField() {
	var objform = document.frmMember;
    
   if ( objform.checkid_yn ) {
		var objMemberchk = objform.checkid_yn;
		var objMemberchk_tt = objform.txtResidentNum1;
		var varMemberchk = objform.checkid_yn.value;
		
		if ( varMemberchk == "" ){
			alert_msg = "½Ç¸íÀÎÁõÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù..";
			return jfncErrorMsg (alert_msg, objMemberchk_tt);
		} 
		
	}

	if ( objform.txtMemberId ) {
		var objMemberId = objform.txtMemberId;
		var varMemberId = objform.txtMemberId.value;
		
		if ( varMemberId == "" ){
			alert_msg = "È¸¿ø ID¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
			return jfncErrorMsg (alert_msg, objMemberId);
		} else if ( jfncCharChk(varMemberId)==false){
			alert_msg = "È¸¿ø ID´Â ¿µ¹® ¶Ç´Â ¼ýÀÚ·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objMemberId);
		}
	}
	
	if ( objform.txtPwd ) {
		var objPwd = objform.txtPwd;
		var objPwd1 = objform.txtPwdCheck;
		var varPwd = objform.txtPwd.value;
		
		if ( varPwd == "" ) {
			alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
			return jfncErrorMsg (alert_msg, objPwd);
		} else if ( jfncPwdChkField(varPwd, objPwd)==false){
			return false;
		} else if ( objform.txtPwdCheck.value != varPwd){
			alert_msg = "ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objPwd1);
		}
	}
	
	if ( objform.txtNameKo ) {
		var objNameKo = objform.txtNameKo;
		var varNameKo = objform.txtNameKo.value;
		
		if ( varNameKo == "" ){
			alert_msg = "ÇÑ±Û ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä";
			return jfncErrorMsg (alert_msg, objNameKo);
		} else if ( jfncKorean(varNameKo) == false){
			alert_msg = "ÇÑ±Û ¼º¸íÀº ÇÑ±Û·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objNameKo);
		}
	}
	
	if ( objform.txtNameEn1 ) {
		var objNameEn1 = objform.txtNameEn1;
		var objNameEn2 = objform.txtNameEn2;
		var varNameEn1 = objform.txtNameEn1.value;
		var varNameEn2 = objform.txtNameEn2.value;
		
		if ( varNameEn1 == "" || varNameEn2 == "" ){
			alert_msg = "¿µ¹® ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä";
			return jfncErrorMsg (alert_msg, objNameEn1);
		} else if ( jfncEnglish(varNameEn1)==false){
			alert_msg = "¿µ¹®¼º¸íÀº ¿µ¹®À¸·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.\n°ø¹é¾øÀÌ ÀÔ·ÂÇØÁÖ¼¼¿ä";
			return jfncErrorMsg (alert_msg, objNameEn1);
		} else if ( jfncEnglish(varNameEn2)==false){
			alert_msg = "¿µ¹®¼º¸íÀº ¿µ¹®À¸·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.\n°ø¹é¾øÀÌ ÀÔ·ÂÇØÁÖ¼¼¿ä";
			return jfncErrorMsg (alert_msg, objNameEn2);
		}
	}

	if ( objform.txtResidentNum1 ) {
		var objResidentNum1 = objform.txtResidentNum1;
		var objResidentNum2 = objform.txtResidentNum2;
		var varResidentNum1 = objform.txtResidentNum1.value;
		var varResidentNum2 = objform.txtResidentNum2.value;
		
		if ( varResidentNum1 == "" || varResidentNum2 == "" ){
			alert_msg = "ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä";
			return jfncErrorMsg (alert_msg, objResidentNum1);
		} else if ( jfncNumber(varResidentNum1)==false){
			alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objResidentNum1);
		} else if ( jfncNumber(varResidentNum2)==false){
			alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objResidentNum2);
		} else if ( jfncResidentNumChk(varResidentNum1, varResidentNum2) == false ) {
			alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objResidentNum1);
		}
	}

	var objTelephone2 = objform.txtTelephone2;
	var objTelephone3 = objform.txtTelephone3;
	var objZipCode1 = objform.txtZipCode1;
	var objAddress2 = objform.txtAddress2;
	var objEmail = objform.txtEmail;
	
	var varTelephone2 = objform.txtTelephone2.value;
	var varTelephone3 = objform.txtTelephone3.value;
	var varZipCode1 = objform.txtZipCode1.value;
	var varAddress2 = objform.txtAddress2.value;
	var varEmail = objform.txtEmail.value;
	
	if ( varTelephone2 == "" ){
		alert_msg = "ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objTelephone2);
	} else if ( varTelephone3 == "" ){
		alert_msg = "ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objTelephone3);
	}

	if ( varZipCode1 == ""){
		alert_msg = "¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objZipCode1);
	}

	if ( varAddress2 == ""){
		alert_msg = "ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objAddress2);
	}

	if ( varEmail == ""){
		alert_msg = "E-MailÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objEmail);
	} else if ( jfncEmailChkField(varEmail, objEmail) == false ) {
		return ;
	}
	
	var ChkMagazineCount = 0;
	for( var i=0; i<objform.radChkMagazine.length; i++ ) {
		if (objform.radChkMagazine[i].checked == true ) {
			ChkMagazineCount ++;
		}
	}
	if ( ChkMagazineCount == 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏ Á¤º¸ ¼ö½Å ¿©ºÎ¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objform.radChkMagazine[0]);
	}
objform.submit();
//	return true;
}





//////////////////////////////¼ýÀÚ ÀÔ·Â Ã¼Å©////////////////////////////
function jfncNumericChk(objvalue) {
	var numeric = '1234567890';
	var nonkorean = numeric; 

	var i ; 
	for ( i=0; i < objvalue.length; i++ )  {
		if( nonkorean.indexOf(objvalue.substring(i,i+1)) < 0) {
			break ; 
		}
	}
	if ( i != objvalue.length ) {
		return false;
	}
	return true;	
}


//////////////////////////////¿µ¾î,¼ýÀÚ ÀÔ·Â Ã¼Å©////////////////////////////
function jfncCharChk(objvalue) {
	var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
	var numeric = '1234567890';
	var nonkorean = alpha+numeric; 

	var i ; 
	for ( i=0; i < objvalue.length; i++ )  {
		if( nonkorean.indexOf(objvalue.substring(i,i+1)) < 0) {
			break ; 
		}
	}
	if ( i != objvalue.length ) {
		return false;
	}
	return true;	
}

//////////////////////////////ÇÑ±Û ÀÔ·Â Ã¼Å©////////////////////////////
function jfncKorean(objvalue) {
	var special = '~`!@#$%^&*()-_=+\|<>?,./;:"';
	var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
	var numeric = '1234567890';
	var nonkorean = special+alpha+numeric; 

	var i ; 
	for ( i=0; i < objvalue.length; i++ )  {
		if( nonkorean.indexOf(objvalue.substring(i,i+1)) > 0) {
			break ; 
		}
	}
	if ( i != objvalue.length ) {
		return false;
	}
	return true;	
}

//////////////////////////////¿µ¾î ÀÔ·Â Ã¼Å©////////////////////////////
function jfncEnglish (objvalue) {
	var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';

	var i ; 
	for ( i=0; i < objvalue.length; i++ )  {
		if( alpha.indexOf(objvalue.substring(i,i+1)) < 0) {
			break ; 
		}
	}
	if ( i != objvalue.length ) {
		return false;
	}
	return true;	
}

//////////////////////////////¼ýÀÚ ÀÔ·Â Ã¼Å©////////////////////////////
function jfncNumber (objvalue) {
	var numeric = '1234567890';

	var i ; 
	for ( i=0; i < objvalue.length; i++ )  {
		if( numeric.indexOf(objvalue.substring(i,i+1)) < 0) {
			break ; 
		}
	}
	if ( i != objvalue.length ) {
		return false;
	}
	return true;	
}

////////////////////////////// ÀÌ¸ÞÀÏ Ã¼Å©////////////////////////////
function jfncEmailChkField(objvalue,obj) {  
	var email_1 = "";
	var email_2 = "";
	var check_point = 0;

	if (objvalue.indexOf("@") < 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ @ °¡ ºüÁ®ÀÖ½À´Ï´Ù.";
		return jfncErrorMsg(alert_msg,obj);
	} else if (objvalue.indexOf(".") < 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ . °¡ ºüÁ®ÀÖ½À´Ï´Ù.";
		return jfncErrorMsg(alert_msg,obj);
	} else if (objvalue.indexOf("|") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ | ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (objvalue.indexOf(">") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ > ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (objvalue.indexOf("<") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ < ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (objvalue.indexOf(" ") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ½ºÆäÀÌ½º´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	}
	for (var j = 0 ; j < objvalue.length; j++) {
		if ( objvalue.substring(j, j + 1) != "@"  && check_point == 0 ) {
			email_1 = email_1 + objvalue.substring(j, j + 1);
		} else if ( objvalue.substring(j, j + 1) == "@" ) {
			check_point = check_point + 1;
		} else {
			email_2 = email_2 + objvalue.substring(j, j + 1);
		}
	}
	if (check_point > 1 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ @ ´Â 1¹øÀÌ»ó µé¾î°¥¼ö ¾ø½À´Ï´Ù.";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("(") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ( ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("(") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ( ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf(")") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ) ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf(",") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ , ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf(";") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ; ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf(":") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ : ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("/") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ / ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("[") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ [ ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("]") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ] ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("{") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ { ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf("}") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ } ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	} else if (email_2.indexOf(" ") >= 0 ) {
		alert_msg = "ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ½ºÆäÀÌ½º´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..";
		return jfncErrorMsg(alert_msg,obj);
	}
	return true;
}



////////////////////////////// ¹«ºñ°Ô½ÃÆÇ ÀÔ·ÂÃ¼Å©////////////////////////////
function jfncMovBoardChkField() {
	var objform = document.frmBoard;

	var objselSubtitle = objform.selSubtitle;
	var objTitle = objform.txtTitle;
	var objContent = objform.txtContent;

	var varselSubtitle = objform.selSubtitle.value;
	var varTitle = objform.txtTitle.value;
	var varContent = objform.txtContent.value;
	
	
	if ( varselSubtitle == ""){
		alert_msg = "ÆÄÀÏ¸íÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objselSubtitle);
	} 

	if ( varTitle == ""){
		alert_msg = "Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objTitle);
	} 

	if (varContent == "") {
		alert_msg = "³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objContent);
	}

	return true;
}
////////////////////////////// Comment Field Check //////////////////////////////
function jfncCommentChkField() {
	var objform = document.frmBoard;

	var objWriter = objform.txtWriter;
	var objEmail = objform.txtEmail;
	var objPwd = 	objform.txtPwd;
	var objContent = objform.txtContent;

	var varWriter = objform.txtWriter.value;
	var varEmail = objform.txtEmail.value;
	var varPwd = objform.txtPwd.value;
	var varContent = objform.txtContent.value;
	
	if ( varWriter == "" ){
		alert_msg = "ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objWriter);
	}

	if ( varPwd == ""){
		alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objPwd);
	} else if (jfncPwdChkField(varPwd, objPwd) == false) {
		return false;
	}

	if ( varEmail == ""){
		alert_msg = "ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objEmail);
	} else if ( jfncEmailChkField(varEmail, objEmail ) == false) {
		return false;
	}

	if (varContent == "") {
		alert_msg = "³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objContent);
	}

	return true;
}

////////////////////////////// Comment delete Check //////////////////////////////
function jfncCommentChkdelete() {
	var objform = document.commentdel;

	var objPwd = 	objform.txtPwd;

	var varPwd = objform.txtPwd.value;
	

	if ( varPwd == ""){
		alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objPwd);
	} else if (jfncPwdChkField(varPwd, objPwd) == false) {
		return false;
	}


	return true;
}

///////////////////////////////////commentÈ°¼ºÈ­¹× ¼û±â±â///////////////////////
function toggleMenu(currMenu) {
	if(document.all) {
		thisMenu = eval("document.all." + currMenu + ".style");
		if(thisMenu.display == "none") {
			thisMenu.display = "block";
		} else {
			thisMenu.display = "none";
		}
		return false;
	} else {
		return true;
	}
}
///////////////////////////////////searchÈ°¼ºÈ­¹× ¼û±â±â///////////////////////
function toggleMenu1(currMenu) {
	if(document.all) {
		thisMenu = eval("document.all." + currMenu + ".style");
		if(thisMenu.display == "none") {
			thisMenu.display = "block";
		} else {
			thisMenu.display = "none";
		}
		return false;
	} else {
		return true;
	}
}

////////////////////////////commentÆÐ½º¿öµåÃ¢ º¸ÀÌ°í ¼û±â±â///////////////////////////////////////////////
var wx;
var wy;
function getIt()
{
	wx = window.event.clientX;
	wy = window.event.clientY;
}

function init()
{
	document.onmousemove = getIt;
}

function short_msg_show(pop_subject,db,mode,cidx,referidx,page,re_level)
{
	idw = showmsg.style.pixelWidth;
	clw = document.body.clientWidth;
	idw = clw - idw - 10;
	showmsg.style.pixelLeft = document.body.scrollLeft + wx - 380 + '';
	showmsg.style.pixelTop = document.body.scrollTop + wy - 30 + '';

	if (showmsg.style.pixelLeft > idw)
		showmsg.style.pixelLeft = idw;
		sp_subject.innerHTML = pop_subject;
		commentdel.db.value = db;
		commentdel.mode.value = mode;
		commentdel.cidx.value = cidx;
		commentdel.referidx.value = referidx;
		commentdel.page.value = page;
		commentdel.re_level.value = re_level;
		showmsg.style.visibility = "visible";
		commentdel.txtPwd.focus();
}

function short_msg_hide()
{
	showmsg.style.visibility = "hidden";
}

window.onload = init;



//////////////////////////////// ÀÚ·á½Ç¾÷·Îµå ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function choosefile(mode) {
	var mode;
	var wPosition = screen.width/2 - 225;
	var hPosition = screen.height/2 - 200;
	
		Goto_Page = "/board/choosefile/choosefile.asp?mode="+mode;
	Features = "height=200, width=450, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	window.open(Goto_Page,'choosefile',Features);
}

//////////////////////////////// ÀÚ·á½Ç¾÷·Îµå ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function checkfileform()
    {
        var filename = file_attach.file.value
        while(filename.indexOf("\\") != -1)
            filename = filename.substring(filename.indexOf("\\")+1)

        if ((filename.indexOf("/") != -1) || (filename.indexOf(":") != -1) || (filename.indexOf("*") != -1) || (filename.indexOf("?") != -1) || (filename.indexOf("\"") != -1) || (filename.indexOf('<') != -1) || (filename.indexOf(">") != -1) || (filename.indexOf("|") != -1) || (filename.indexOf("#") != -1) || (filename.indexOf("&") != -1)) {
            alert("ÆÄÀÏÀÌ¸§¿¡ \\/:*?<>|\"#& ÀÌ µé¾î°¥ ¼ö ¾ø½À´Ï´Ù.");
            file_attach.file.focus();
            return false;
        }

		
		if(file_attach.file.value == ""){

			alert("ÆÄÀÏÀ» ¼±ÅÃÇØÁÖ¼¼¿ä");
			file_attach.file.focus();
			return false;

	    }else{
			
			uploadmsg.style.visibility = "visible";	//¾÷·ÎµåÃ¢º¸ÀÌ±â
			document.file_attach.submit();

		}
    }

//////////////////////////////// ÀÎÆ®¶ó³Ý Á¤º¸°Ô½ÃÆÇ ÀÚ·á½Ç¾÷·Îµå ÆäÀÌÁö ¶ç¿ì±â _ 20081117//////////////////////////////
function choosefileIB(mode) {
	var mode;
	var wPosition = screen.width/2 - 225;
	var hPosition = screen.height/2 - 200;
	
		Goto_Page = "/intra/inBoard/choosefile/choosefile.asp?mode="+mode;
	Features = "height=200, width=450, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	window.open(Goto_Page,'choosefile',Features);
}

//////////////////////////////// ÀÎÆ®¶ó³Ý Á¤º¸°Ô½ÃÆÇ ÀÚ·á½Ç¾÷·Îµå ÆäÀÌÁö ¶ç¿ì±â _ 20081117//////////////////////////////
function checkfileformIB()
    {
        var filename = file_attach.file.value
        while(filename.indexOf("\\") != -1)
            filename = filename.substring(filename.indexOf("\\")+1)

        if ((filename.indexOf("/") != -1) || (filename.indexOf(":") != -1) || (filename.indexOf("*") != -1) || (filename.indexOf("?") != -1) || (filename.indexOf("\"") != -1) || (filename.indexOf('<') != -1) || (filename.indexOf(">") != -1) || (filename.indexOf("|") != -1) || (filename.indexOf("#") != -1) || (filename.indexOf("&") != -1)) {
            alert("ÆÄÀÏÀÌ¸§¿¡ \\/:*?<>|\"#& ÀÌ µé¾î°¥ ¼ö ¾ø½À´Ï´Ù.");
            file_attach.file.focus();
            return false;
        }

		
		if(file_attach.file.value == ""){

			alert("ÆÄÀÏÀ» ¼±ÅÃÇØÁÖ¼¼¿ä");
			file_attach.file.focus();
			return false;

	    }else{
			
			uploadmsg.style.visibility = "visible";	//¾÷·ÎµåÃ¢º¸ÀÌ±â
			document.file_attach.submit();

		}
    }

//////////////////////////////// º­·è½ÃÀå°Ë»ö Ã¼Å©//////////////////////////////
function jfncSearchField(){

document.searchform.submit();
view_load_show();

}
//////////////////////////////// º­·è½ÃÀåÀÌ¹ÌÁö¾÷·Îµå ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function usedImage(fieldname) {
	var fieldname;
	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 200;
	
		Goto_Page = "/board/usedimg/usedimg.asp?mode="+fieldname;
	Features = "height=200, width=450, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	window.open(Goto_Page,'choosefile',Features);
}
/////////////////////////////// Ã¼Çè±â ÇÁ·ÎÆÄÀÏ »õÃ¢¶ç¿ì±â///////////////////////////////
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//////////////////////////////// Ã¼Çè±âÀÌ¹ÌÁö¾÷·Îµå ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function exImage(fieldname,dbname) {
	var fieldname,dbname;
	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 200;
	
		Goto_Page = "/community/eximg/eximg.asp?mode="+fieldname+"&name="+dbname;
	Features = "height=200, width=450, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	window.open(Goto_Page,'choosefile',Features);
}

//////////////////////////////// ¿Ð¶óºñÄíÆù¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function coupon1() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/coupon_index1.html";
	Features = "width=618,height=600,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	//Features = "resizable:no; center:yes; status:no; dialogWidth:625px; dialogHeight:400px;";
	window.open(Goto_Page,'coupon',Features);
	//window.showModalDialog(Goto_Page,'coupon',Features);
}
//////////////////////////////// ¸ÞÀÏÆû¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function mailform(name) {
	var name;
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/consult_mail_index.asp?name="+name;
	//Features = "width=620,height=560,top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:630px; dialogHeight:590px;";
	//window.open(Goto_Page,'mailform',Features);
	window.showModalDialog(Goto_Page,'mailform',Features);
}

//////////////////////////////// MBC¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function mbc() {
	var wPosition = screen.width/2 - 430;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/mbc.html"
	//Features = "width=820,height=600,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:825px; dialogHeight:600px;";
	//window.open(Goto_Page,'mbc',Features);
	window.showModalDialog(Goto_Page,'mbc',Features);
}
//////////////////////////////// ÇÐ±³Á¤º¸º¸±â¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function elicos_school(scode) {
	var scode;
	var wPosition = screen.width/2 - 415;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/elicos/sch_index.asp?SchlCd="+scode;
	//Features = "height=600, width=810, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:810px; dialogHeight:600px;";
	//window.open(Goto_Page,'school',Features);
	window.showModalDialog(Goto_Page,'school',Features);
}


//////////////////////////////// used1°Ô½ÃÆÇ¾îµå¹Î¿¡µðÆ®//////////////////////////////
function adminmodifyused1(board_name,DB,mode,intIdx,page) {
	
	var board_name;
	var DB;
	var mode;
	var intIdx;
	var page;
	
	if (confirm("Á¤¸» ¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?") == true) {
	 location.href= board_name+'_write.asp?admin=admin&DB='+DB+'&Mode='+mode+'&Idx='+intIdx+'&page='+page;
	 return false;
	}

}

//////////////////////////////// °Ô½ÃÆÇ¾îµå¹Îdelete//////////////////////////////
function admindelused1(board_name,DB,mode,intIdx,page) {
	
	var board_name;
	var DB;
	var mode;
	var intIdx;
	var page;
	
	if (confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?") == true) {
	 location.href='board_used_proc.asp?admin=admin&DB='+DB+'&Mode='+mode+'&Idx='+intIdx+'&page='+page;
	 return false;
	}

}

//////////////////////////////// Áö¿¬µÇ´Â ÄÚ³Ê //////////////////////////////
function delay() {
	
	alert("ÁË¼ÛÇÕ´Ï´Ù. Áö±Ý ÁØºñÁß¿¡ ÀÖ½À´Ï´Ù.\nºü¸¥½ÃÀÏ³»¿¡ ¼­ºñ½º¸¦ Á¦°øÇÏ°Ú½À´Ï´Ù.");

}

//////////////////////////////// ¸¶ÀÌÆäÀÌÁö»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function mypage() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/mypage/mypage_index.asp";
	//Features = "height=600, width=640, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:726px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'mypage',Features);	

}
//////////////////////////////// ¸¶ÀÌÆäÀÌÁö»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function mypageph() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/philippine/mypage/mypage_index.asp";
	//Features = "height=600, width=640, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:726px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'mypage',Features);	

}
//////////////////////////////// °Ô½ÃÆÇ»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function board(bname,bidx) {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;

	var bname;
	var bidx;
	
	Goto_Page = "/board/"+bname+"_index.asp?idx="+bidx;
	Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	window.open(Goto_Page,'board',Features);
	//Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	//window.showModalDialog(Goto_Page,'mypage',Features);	
	

}
//////////////////////////////// ÇÊ¸®ÇÉ°Ô½ÃÆÇ»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function pboard(bname,bidx) {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;

	var bname;
	var bidx;
	
	Goto_Page = "/philippine/board/"+bname+"_index.asp?idx="+bidx;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'pboard',Features);	
	

}

//////////////////////////////// FAQ¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function faq() {
	var wPosition = screen.width/2 - 320;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/faq/faq_index.asp";
	//Features = "height=600, width=640, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:650px; dialogHeight:650px;";
	//window.open(Goto_Page,'faq',Features);
	window.showModalDialog(Goto_Page,'faq',Features);
}

//////////////////////////////// È¯À²¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function current() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/current.html";
	Features = "height=650, width=700, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	window.open(Goto_Page,'faq',Features);
}

//////////////////////////////// ³¯¾¾¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function weather() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/weather.html";
	//Features = "height=650, width=700, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:665px; dialogHeight:720px;";
	//window.open(Goto_Page,'faq',Features);
	window.showModalDialog(Goto_Page,'weather',Features);
}
////////////////////////////ÇÐ±³Á¤º¸ º¸ÀÌ±â///////////////////////////////////////////////

function view_school_show()
{
	idw = viewschool.style.pixelWidth;
	clw = document.body.clientWidth;
	idw = clw - idw - 10;
	viewschool.style.pixelLeft = document.body.scrollLeft + wx - 200 + '';
	viewschool.style.pixelTop = document.body.scrollTop + wy - 30 + '';

	if (viewschool.style.pixelLeft > idw)
		viewschool.style.pixelLeft = idw;
		
}

//////////////////////////////// ÇÐ±³¹è³Êº¸±â¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function school_banner(scode) {
	var scode;
	var wPosition = screen.width/2 - 420;
	var hPosition = screen.height/2 - 420;
	
	//	if (scode=="ace")
	//	{
	//		Goto_Page = "/elicos/school_banner_ace.html";
	//	}
	//	if (scode=="shafston")
	//	{
	//		Goto_Page = "/elicos/school_banner_shafston.html";
	//	}
	//	if (scode=="qce")
	//	{
	//		Goto_Page = "/elicos/school_banner_qce.html";
	//	}
	//	if (scode=="cce")
	//	{
	//		Goto_Page = "/elicos/school_banner_cce.html";
	//	}
	//	if (scode=="tasmania")
	//	{
	//		Goto_Page = "/elicos/school_banner_tasmania.html";
	//	}
	//	if (scode=="langports")
	//	{
	//		Goto_Page = "/elicos/school_banner_langports.html";
	//	}

		Goto_Page = "/elicos/school_banner_index.asp?SchlCd="+scode;

	//Features = "height=800, width=820, top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:830px; dialogHeight:800px;";
	//window.open(Goto_Page,'banner',Features);
	window.showModalDialog(Goto_Page,'banner',Features);
}

//////////////////////////////// ¼÷¼ÒÁöµµ ¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function accommodationmap() {
	var wPosition = screen.width/2 - 340;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/air/accomap.asp"
	Features = "width=760,height=520,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	//Features = "resizable:no; center:yes; status:no; dialogWidth:630px; dialogHeight:550px;";
	window.open(Goto_Page,'accommodationmap',Features);
	//window.showModalDialog(Goto_Page,'special_hangukilbo',Features);
}

////////////////////////////·ÎµùÃ¢ º¸ÀÌ°í ¼û±â±â///////////////////////////////////////////////

function view_load_show()
{
	var a = document.body.scrollLeft ;
	var b = document.body.scrollTop;
	
	viewload.style.pixelLeft = a + 200;	
	viewload.style.pixelTop = b + 200;
	//viewload.style.pixelTop =  screen.height/2 - 200;

	//delmsg.style.pixelLeft = document.body.scrollLeft + wx - 300 + '';
	//delmsg.style.pixelTop = document.body.scrollTop + wy - 50 + '';

	viewload.style.visibility = "visible";
}

function view_load_hide()
{
	var a = document.body.scrollLeft ;
	var b = document.body.scrollTop;
	
	viewload.style.pixelLeft = a + 200;	
	viewload.style.pixelTop = b + 200;
	//viewload.style.pixelTop =  screen.height/2 - 200;

	//delmsg.style.pixelLeft = document.body.scrollLeft + wx - 300 + '';
	//delmsg.style.pixelTop = document.body.scrollTop + wy - 50 + '';

	viewload.style.visibility = "hidden";
}


////////////////////////////·ÎµùÃ¢ º¸ÀÌ°í ¼û±â±â///////////////////////////////////////////////

//////////////////////////////// °Ô½ÃÆÇ¾îµå¹Î¿¡µðÆ®//////////////////////////////
function adminmodify(board_name,DB,mode,intIdx,page) {

	var board_name;
	var DB;
	var mode;
	var intIdx;
	var page;


	if (confirm("Á¤¸» ¼öÁ¤ ÇÏ½Ã°Ú½À´Ï±î?") == true) {
    // view_load_show();
	 location.href=board_name+'_write.asp?admin=admin&DB='+DB+'&Mode='+mode+'&Idx='+intIdx+'&page='+page;
	 return false;
	}

}

//////////////////////////////// °Ô½ÃÆÇ¾îµå¹Îdelete//////////////////////////////
function admindel(board_name,DB,mode,intIdx,page) {
	
	var board_name;
	var DB;
	var mode;
	var intIdx;
	var page;
	
	if (confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?") == true) {
	// view_load_show();
	 location.href='board_proc.asp?admin=admin&DB='+DB+'&Mode='+mode+'&Idx='+intIdx+'&page='+page;
	 return false;
	}

}
////////////////////////////editÆÐ½º¿öµåÃ¢ º¸ÀÌ°í ¼û±â±â///////////////////////////////////////////////

function view_msg_show(pop_subject,db,mode,idx,page)
{
	
	idw = viewmsg.style.pixelWidth;
	clw = document.body.clientWidth;
	idw = clw - idw - 10;
	viewmsg.style.pixelLeft = document.body.scrollLeft + wx - 250 + '';	
	viewmsg.style.pixelTop = document.body.scrollTop + wy - 50 + '';

	if (viewmsg.style.pixelLeft > idw)
		viewmsg.style.pixelLeft = idw;
		view_subject.innerHTML = pop_subject;
		view.db.value = db;
		view.mode.value = mode;
		view.idx.value = idx;
		view.page.value = page;
		viewmsg.style.visibility = "visible";
		view.txtPwd.focus();
}

function view_msg_hide()
{
	viewmsg.style.visibility = "hidden";
}

////////////////////////////// edit pwd Check //////////////////////////////
function jfncEditChk() {
	var objform = document.view;

	var objPwd = 	objform.txtPwd;

	var varPwd = objform.txtPwd.value;
	

	if ( varPwd == ""){
		alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objPwd);
	} 
	//else if (jfncPwdChkField(varPwd, objPwd) == false) {
	//	return;
	//}
	objform.submit();
}

////////////////////////////deleteÆÐ½º¿öµåÃ¢ º¸ÀÌ°í ¼û±â±â///////////////////////////////////////////////

function del_msg_show(pop_subject,db,mode,idx,page)
{
	idw = delmsg.style.pixelWidth;
	clw = document.body.clientWidth;
	idw = clw - idw - 10;
	delmsg.style.pixelLeft = document.body.scrollLeft + wx - 300 + '';
	delmsg.style.pixelTop = document.body.scrollTop + wy - 50 + '';

	if (delmsg.style.pixelLeft > idw)
		delmsg.style.pixelLeft = idw;
		del_subject.innerHTML = pop_subject;
		del.db.value = db;
		del.mode.value = mode;
		del.idx.value = idx;
		del.page.value = page;
		delmsg.style.visibility = "visible";
		del.txtPwd.focus();
}

function del_msg_hide()
{
	delmsg.style.visibility = "hidden";
}

////////////////////////////// delete pwd Check //////////////////////////////
function jfncDelChk() {
	var objform = document.del;

	var objPwd = 	objform.txtPwd;

	var varPwd = objform.txtPwd.value;
	

	if ( varPwd == ""){
		alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objPwd);
	} else if (jfncPwdChkField(varPwd, objPwd) == false) {
		return false;
	}

	view_load_show();
	return true;
}

////////////////////////////// °Ô½ÃÆÇ ÀÔ·ÂÃ¼Å©////////////////////////////
function jfncBoardChkField() {
	var objform = document.frmBoard;

	var objWriter = objform.txtWriter;
	var objEmail = objform.txtEmail;

	var objTitle = objform.txtTitle;
	var objPwd = 	objform.txtPwd;
	var objContent = objform.txtContent;

	var varWriter = objform.txtWriter.value;
	var varEmail = objform.txtEmail.value;


	var varTitle = objform.txtTitle.value;
	var varPwd = objform.txtPwd.value;
	var varContent = objform.txtContent.value;
	
	var db = objform.DB.value;


	if ( varWriter == "" ){
		alert_msg = "ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objWriter);
	}

if (db != "Notice")
{
				if ( varPwd == ""){
				alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
				return jfncErrorMsg (alert_msg,objPwd);
			} 		
			if (varPwd.length < 6 || varPwd.length > 12)	 {
		alert("ºñ¹Ð¹øÈ£´Â 6~12ÀÚ¸®ÀÔ´Ï´Ù.")
		return;
			}
}

	if ( varEmail == ""){
		alert_msg = "ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objEmail);
	} 
	
	var d_email = objform.txtEmail.value
	if (d_email.indexOf("@") < 0 ) {
		alert("e-mail¿¡ @ °¡ ºüÁ®ÀÖ½À´Ï´Ù.");
		return;
	}




	if ( varTitle == ""){
		alert_msg = "Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objTitle);
	} 

	if (varContent == "") {
		alert_msg = "³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objContent);
	}

	//view_load_show();
	objform.submit();
}

////////////////////////////// º­·è½ÃÀå°Ô½ÃÆÇ ÀÔ·ÂÃ¼Å©////////////////////////////
function jfncBoardChkField1() {
	var objform = document.frmBoard;

	var objWriter = objform.txtWriter;
	var objEmail = objform.txtEmail;
	var objTitle = objform.txtTitle;
	var objPwd = 	objform.txtPwd;
	var objContent = objform.txtContent;

	var varWriter = objform.txtWriter.value;
	var varEmail = objform.txtEmail.value;
	var varTitle = objform.txtTitle.value;
	var varPwd = objform.txtPwd.value;
	var varContent = objform.txtContent.value;
	var vartxtPrice = objform.txtPrice.value;

	
	if ( varWriter == "" ){
		alert_msg = "ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objWriter);
	}

	if ( varPwd == ""){
		alert_msg = "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objPwd);
	} else if (jfncPwdChkField(varPwd, objPwd) == false) {
		return false;
	}

	if ( varEmail == ""){
		alert_msg = "ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objEmail);
	} else if ( jfncEmailChkField(varEmail, objEmail ) == false) {
		return false;
	}		

	if ( vartxtPrice == ""){
			
			alert("°¡°ÝÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			objform.txtPrice.value = "";
			objform.txtPrice.focus();
			return false;
	
	} else if (jfncNumericChk(vartxtPrice) == false) {

			alert("°¡°Ý¶õ¿¡´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä.");
			objform.txtPrice.focus();
			return false;
	} 

	if ( varTitle == ""){
		alert_msg = "Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objTitle);
	} 

	if (varContent == "") {
		alert_msg = "³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objContent);
	}

	view_load_show();
	return true;
}
////////////////////////////////ibt»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function ibt() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/ibt/ibt_index.asp";
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'mypage',Features);	
	

}
//////////////////////////////// ´Þ·Â¼¼Ã¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function calender() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 350;
	
		Goto_Page = "/calender/calender_index.asp"
	//Features = "width=618,height=600,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:1026px; dialogHeight:754px;";
	//window.open(Goto_Page,'air_detail',Features);
	window.showModalDialog(Goto_Page,'calender',Features);
}
//////////////////////////////// ´Þ·Â¼¼Ã¢1 ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function calender1(a_date) {
	var a_date;
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 350;
	
		Goto_Page = "/calender/calender_index1.asp?a_date="+a_date;
	//Features = "width=618,height=600,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:1026px; dialogHeight:754px;";
	//window.open(Goto_Page,'air_detail',Features);
	window.showModalDialog(Goto_Page,'calender',Features);
}

////////////////////////////////°¡ÀÔ/¼öÁ¤Æû »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function login() {
	
	var wPosition = screen.width/2 - 223;
	var hPosition = screen.height/2 - 200;
	
	Goto_Page = "/member/login.asp";
	Features = "width=396, height=234, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	window.open(Goto_Page,'join',Features);
	//Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	//window.showModalDialog(Goto_Page,'join',Features);	
	

}

////////////////////////////////°¡ÀÔ/¼öÁ¤Æû »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function join() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 350;
	
	Goto_Page = "/member/join_stip.asp";
	Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	window.open(Goto_Page,'join',Features);
	//Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	//window.showModalDialog(Goto_Page,'join',Features);	
	

}
////////////////////////////////°¡ÀÔ/¼öÁ¤Æû »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function joinedit() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 350;
	
	Goto_Page = "/member/join_edit.asp";
	Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	window.open(Goto_Page,'join',Features);
	//Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	//window.showModalDialog(Goto_Page,'join',Features);	
	

}
////////////////////////////////º¸Çè°¡ÀÔ »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function insu() {
	
	var wPosition = screen.width/2 - 363;
	var hPosition = screen.height/2 - 390;
	
	Goto_Page = "/insurance/insu_index.asp";
	//Features = "width=726, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'join',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:816px; dialogHeight:754px;";	
	//Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:726px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'join',Features);	
	

}
///////////////////////////////½ºÅ©·Ñµû¶ó´Ù´Ï´Â ÄÚµå//////////////////////////////

var lastScrollY = 0;
function scrollfollow() {  //½ºÅ©·Ñ½Ã¼öÇà
	window.setInterval("movingmenu()",10);
}

function movingmenu() {
	var sTop=document.body.scrollTop;	
	if(sTop != lastScrollY) {
		percent = Math.ceil(0.1 * (sTop - lastScrollY));		
		document.all.myfloater.style.pixelTop += percent;		
		lastScrollY = lastScrollY + percent;
	}
}

///////////////////////////////½ºÅ©·Ñµû¶ó´Ù´Ï´Â ÄÚµå³¡//////////////////////////////

///////////////////////////////ÇÊ¸®ÇÉ ÇÐ±³ ¿Â¶óÀÎ ½ÅÃ» ÇÁ¸°Æ® »õÃ¢ //////////////////////////////
function pschoolprint() {

	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 390;
	
	Goto_Page = "/philippine/pschool/pschlinfo_email_print.asp";
	//Goto_Page = "/school/schlinfo_index.asp?SrchCond="+cond+"&SrchValue="+value;
	Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	window.open(Goto_Page,'pschoolprint',Features);
	//Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	//window.showModalDialog(Goto_Page,'pschoolprint',Features);	
}
///////////////////////////////ÇÊ¸®ÇÉÇÐ±³Á¤º¸º¸±â»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function pschool(cond,value) {

	var cond;
	var value;
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 390;
	
	Goto_Page = "/philippine/pschool/pschlinfo_index.asp?SrchCond="+cond+"&SrchValue="+value;
	//Goto_Page = "/school/schlinfo_index.asp?SrchCond="+cond+"&SrchValue="+value;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'pschool',Features);	
}
///////////////////////////////ÇÊ¸®ÇÉ¹è³ÊÇÐ±³Á¤º¸º¸±â»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function pelicosbanner(value) {

	var cond;
	var value;
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/philippine/pschool/pschlinfo_banner.asp?SchlCd="+value;
	//Goto_Page = "/school/schlinfo_banner.asp?SchlCd="+value;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'pelicosbanner',Features);	
	

}
///////////////////////////////ÇÐ±³Á¤º¸º¸±â»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function elicosschool(cond,value) {

	var cond;
	var value;
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 390;
	
	Goto_Page = "/school/schlinfo_index.asp?SrchCond="+cond+"&SrchValue="+value;
	//Goto_Page = "/school/schlinfo_index.asp?SrchCond="+cond+"&SrchValue="+value;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'elicospage',Features);	
}
///////////////////////////////¹è³ÊÇÐ±³Á¤º¸º¸±â»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function elicosbanner(value) {

	var cond;
	var value;
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/school/schlinfo_banner.asp?SchlCd="+value;
	//Goto_Page = "/school/schlinfo_banner.asp?SchlCd="+value;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'elicosbanner',Features);	
	

}
///////////////////////////////Á¤±Ô°úÁ¤ÇÐ±³Á¤º¸º¸±â»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function hschool() {

	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 390;
	
	Goto_Page = "/hschool/hschlinfo_index.asp";
	//Goto_Page = "/school/schlinfo_index.asp?SrchCond="+cond+"&SrchValue="+value;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'hschool',Features);	
}

////////////////////////////////¿µÁÖ±ÇÇÐ°ú ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function vte() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/expert/expert_index.asp";
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'expert',Features);	

}
///////////////////////////////ÇÊ¸®ÇÉ ¿Â¶óÀÎ Á¢¼öÇÏ±â »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function philonline() {

	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/philippine/pschool/pschlinfo_index.asp?SrchCond=3";
	//Goto_Page = "/school/schlinfo_banner.asp?SchlCd="+value;
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'philonline',Features);	
	

}
////////////////////////////// ÇÊ¸®ÇÉ ¿Â¶óÀÎ½ÅÃ»1 //////////////////////////////
function pschlinfo_email_submit() {	
	var objform = document.frmMember;

	if ( objform.selCourse.value == "0"){			
			alert("¿øÇÏ½Ã´Â ÄÚ½º¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			objform.selCourse.focus();
			return false;	
	} 

	if ( objform.selAccommoFee.value == "0"){			
			alert("¿øÇÏ½Ã´Â ±â¼÷»ç¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			objform.selAccommoFee.focus();
			return false;	
	} 

	if (confirm("¡ØemailÁÖ¼Ò¸¦ Á¤È®È÷ ¾²¼Å¾ß ½ÅÃ»»çÇ×À» ¸ÞÀÏ·Î ¹ÞÀ¸½Ç¼ö ÀÖ½À´Ï´Ù. \n\n- ¸ðµç »çÇ×À» È®ÀÎÇÏ½Å ÈÄ \"È®ÀÎ\" ¹öÆ°À» ´­·¯ÁÖ¼¼¿ä.") == true) {
		return true;
	}else{
		return false;
	}

	return false;
}
//////////////////////////////// ÇÊ¸®ÇÉ¿À¸®¿£Å×ÀÌ¼Ç»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function porientation() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/philippine/common/orientation.html"
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:846px; dialogHeight:631px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'porientation',Features);
}
//////////////////////////////// ¿À¸®¿£Å×ÀÌ¼Ç»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function orientation() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/orientation.html"
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:846px; dialogHeight:754px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'orientation',Features);
}
//////////////////////////////// FAQ»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function faq() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/faq_index.asp"
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:826px; dialogHeight:754px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'faq',Features);
}
//////////////////////////////// È¸»ç¼Ò°³»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function aboutus() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/company/company_index.asp"
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:826px; dialogHeight:540px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'aboutus',Features);
}
//////////////////////////////// Evisa»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function evisa() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/working/evisa_index.asp"
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:826px; dialogHeight:754px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'faq',Features);
}
//////////////////////////////// Ç×°ø±Ç»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function airticket() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/air/air_index.asp";
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:826px; dialogHeight:754px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'airticket',Features);
}
//////////////////////////////// Ç×°ø±Ç»õÃ¢1 ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function airticket1() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/air/air_index1.asp";
	//Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:826px; dialogHeight:754px;";
	//window.open(Goto_Page,'orientation',Features);
	window.showModalDialog(Goto_Page,'airticket',Features);
}
//////////////////////////////// ¼÷¹Ú½Ã¼³ »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function accomo() {
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/accomo/accomo_index.asp";
	Features = "width=826,height=704,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	//Features = "resizable:no; center:yes; status:no; dialogWidth:826px; dialogHeight:754px;";
	window.open(Goto_Page,'accommo',Features);
	//window.showModalDialog(Goto_Page,'airticket',Features);
}
//////////////////////////////// È£ÁÖÁÖ¿äµµ½ÃÁöµµ »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function viewmap(view) {
	var view;
	var wPosition = screen.width/2 - 420;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/img/accomo/accomap_"+view+".jpg"
	Features = "width=850,height=850,top=0, left="+wPosition+",scrollbars=yes, resizable=no";
	//Features = "resizable:no; center:yes; status:no; dialogWidth:630px; dialogHeight:550px;";
	window.open(Goto_Page,'viewmap',Features);
	//window.showModalDialog(Goto_Page,'special_hangukilbo',Features);
}
//////////////////////////////// Ã£¾Æ¿À´Â±æ»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function qmap() {
	var wPosition = screen.width/2 - 200;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/map_index.html";
	Features = "height=550, width=440, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	//Features = "resizable:no; center:yes; status:no; dialogWidth:450px; dialogHeight:600px;";
	window.open(Goto_Page,'map',Features);
	//window.showModalDialog(Goto_Page,'map',Features);
}
//////////////////////////////// ÀÔÇÐ±Ý °èÁÂ¹øÈ£ »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function account() {
	var wPosition = screen.width/2 - 245;
	var hPosition = screen.height/2 - 200;
	
		Goto_Page = "/common/account_number.html";
	//Features = "height=410, width=470, top="+hPosition+", left="+wPosition+", scrollbars=no, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:460px; dialogHeight:440px;";
	//window.open(Goto_Page,'account',Features);
	window.showModalDialog(Goto_Page,'account',Features);
}
//////////////////////////////// ÄíÆù»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function coupon() {
	var wPosition = screen.width/2 - 290;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/coupon_index.html";
	//Features = "width=618,height=600,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:625px; dialogHeight:600px;";
	//window.open(Goto_Page,'coupon',Features);
	window.showModalDialog(Goto_Page,'coupon',Features);
}
//////////////////////////////// È£ÁÖ´ë»ç°üÀÎÁõÀ¯ÇÐ¿ø»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function special_au() {
	var wPosition = screen.width/2 - 400;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/special_au.asp"
	//Features = "width=800,height=500,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:825px; dialogHeight:700px;";
	//window.open(Goto_Page,'special_au',Features);
	window.showModalDialog(Goto_Page,'special_au',Features);
}
//////////////////////////////// ÇÑ±¹ÀÏº¸±â»ç»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function special_hangukilbo() {
	var wPosition = screen.width/2 - 320;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/special_hangukilbo.asp"
	//Features = "width=625,height=520,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:650px; dialogHeight:570px;";
	//window.open(Goto_Page,'special_hangukilbo',Features);
	window.showModalDialog(Goto_Page,'special_hangukilbo',Features);
}
//////////////////////////////// ½ºÆ÷Ã÷ÀÏº¸»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function special_sports() {
	var wPosition = screen.width/2 - 320;
	var hPosition = screen.height/2 - 300;
	
		Goto_Page = "/common/special_sports.asp"
	//Features = "width=625,height=520,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:no; center:yes; status:no; dialogWidth:650px; dialogHeight:560px;";
	//window.open(Goto_Page,'special_hangukilbo',Features);
	window.showModalDialog(Goto_Page,'special_sports',Features);
}
//////////////////////////////// ÄýÁî·£µåÁ¤ºÎ»õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function special_queensland() {
	var wPosition = screen.width/2 - 220;
	var hPosition = screen.height/2 - 400;
	
		Goto_Page = "/common/special_queensland.asp"
	//Features = "width=460,height=680,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	Features = "resizable:yes; center:yes; status:No; help:No; dialogWidth:490px; dialogHeight:720px;";
	//window.open(Goto_Page,'special_queensland',Features);
	window.showModalDialog(Goto_Page,'special_queensland',Features);
}

//////////////////////////////// µµ¿òÀÌº¥Æ® ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function doumevent() {
	//var wPosition = screen.width/2 - 220;
	//var hPosition = screen.height/2 - 400;
	
	wPosition = 20;
	hPosition = 20;

	Goto_Page = "/event/doum1.html"
	Features = "width=1040,height=788,top="+hPosition+", left="+wPosition+", scrollbars=yes, resizable=no";
	//Features = "resizable:yes; center:yes; status:No; help:No; dialogWidth:490px; dialogHeight:720px;";
	window.open(Goto_Page,'doumevent',Features);
	//window.showModalDialog(Goto_Page,'special_queensland',Features);
}

////080418Ãß°¡////////////////////////////earlyst01 »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function earlyst01() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/philippine/earlyst/earlyst_index.asp";
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'mypage',Features);	
}

////080418Ãß°¡////////////////////////////earlyst01 »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function earlyst02() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/philippine/earlyst/earlyst_index.asp?m=2";
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'mypage',Features);	
}

////080418Ãß°¡////////////////////////////earlyst01 »õÃ¢ ÆäÀÌÁö ¶ç¿ì±â//////////////////////////////
function earlyst03() {
	
	var wPosition = screen.width/2 - 413;
	var hPosition = screen.height/2 - 300;
	
	Goto_Page = "/philippine/earlyst/earlyst_index.asp?m=3";
	//Features = "width=826, height=704, top="+hPosition+", left="+wPosition+", status=no, scrollbars=yes, resizable=no";
	//window.open(Goto_Page,'board',Features);
	Features = "resizable:No; center:Yes; help:No; status:No; scroll:Yes; dialogWidth:826px; dialogHeight:754px;";	
	window.showModalDialog(Goto_Page,'mypage',Features);	
}



////080919 Ãß°¡//////////////////////////Formmail_TMK ±è¼±Àç½ÇÀå ºñÀÚ ÀÌ¹Î Áú¹® Æû¸ÞÀÏ Ã¼Å©///////////////////////////
function jfncFormmail_tmk() {
	var objform = document.frmMailTMK;

	
	if ( objform.txtNameKo ) {
		var objNameKo = objform.txtNameKo;
		var varNameKo = objform.txtNameKo.value;
		
		if ( varNameKo == "" ){
			alert_msg = "ÇÑ±Û ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä";
			return jfncErrorMsg (alert_msg, objNameKo);
		} else if ( jfncKorean(varNameKo) == false){
			alert_msg = "ÇÑ±Û ¼º¸íÀº ÇÑ±Û·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objNameKo);
		}
	}
	
	if ( objform.txtNameEn1 ) {
		var objNameEn1 = objform.txtNameEn1;
		var objNameEn2 = objform.txtNameEn2;
		var varNameEn1 = objform.txtNameEn1.value;
		var varNameEn2 = objform.txtNameEn2.value;
		
		if ( varNameEn1 == "" || varNameEn2 == "" ){
			alert_msg = "¿µ¹® ¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä";
			return jfncErrorMsg (alert_msg, objNameEn1);
		} else if ( jfncEnglish(varNameEn1)==false){
			alert_msg = "¿µ¹®¼º¸íÀº ¿µ¹®À¸·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.\n°ø¹é¾øÀÌ ÀÔ·ÂÇØÁÖ¼¼¿ä";
			return jfncErrorMsg (alert_msg, objNameEn1);
		} else if ( jfncEnglish(varNameEn2)==false){
			alert_msg = "¿µ¹®¼º¸íÀº ¿µ¹®À¸·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.\n°ø¹é¾øÀÌ ÀÔ·ÂÇØÁÖ¼¼¿ä";
			return jfncErrorMsg (alert_msg, objNameEn2);
		}
	}

	if ( objform.txtResidentNum1 ) {
		var objResidentNum1 = objform.txtResidentNum1;
		var objResidentNum2 = objform.txtResidentNum2;
		var varResidentNum1 = objform.txtResidentNum1.value;
		var varResidentNum2 = objform.txtResidentNum2.value;
		
		if ( varResidentNum1 == "" || varResidentNum2 == "" ){
			alert_msg = "ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä";
			return jfncErrorMsg (alert_msg, objResidentNum1);
		} else if ( jfncNumber(varResidentNum1)==false){
			alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objResidentNum1);
		} else if ( jfncNumber(varResidentNum2)==false){
			alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ·Î ÀÌ·ç¾îÁ®¾ß ÇÕ´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objResidentNum2);
		} else if ( jfncResidentNumChk(varResidentNum1, varResidentNum2) == false ) {
			alert_msg = "ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.";
			return jfncErrorMsg (alert_msg, objResidentNum1);
		}
	}

	var objTelephone2 = objform.txtTelephone2;
	var objTelephone3 = objform.txtTelephone3;
	var objZipCode1 = objform.txtZipCode1;
	var objAddress2 = objform.txtAddress2;
	var objEmail = objform.txtEmail;
	var objDepartment = objform.txtDepartment;
	var objCareer = objform.txtCareer;
	var objConsultation = objform.txtConsultation;
	
	var varTelephone2 = objform.txtTelephone2.value;
	var varTelephone3 = objform.txtTelephone3.value;
	var varZipCode1 = objform.txtZipCode1.value;
	var varAddress2 = objform.txtAddress2.value;
	var varEmail = objform.txtEmail.value;
	var varDepartment = objform.txtDepartment.value;
	var varCareer = objform.txtCareer.value;
	var varConsultation = objform.txtConsultation.value;
	
	if ( varTelephone2 == "" ){
		alert_msg = "ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objTelephone2);
	} else if ( varTelephone3 == "" ){
		alert_msg = "ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg, objTelephone3);
	}

	if ( varZipCode1 == ""){
		alert_msg = "¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objZipCode1);
	}

	if ( varAddress2 == ""){
		alert_msg = "ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objAddress2);
	}

	if ( varDepartment == ""){
		alert_msg = "ÇÐ·Â ¹× ÇÐ°ú¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä..";
		return jfncErrorMsg (alert_msg,objDepartment);
	}

	if ( varCareer == ""){
		alert_msg = "°æ·Â»çÇ×À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objCareer);
	}

	if ( varConsultation == ""){
		alert_msg = "»ó´ã³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objConsultation);
	}

	if ( varEmail == ""){
		alert_msg = "E-MailÀ» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.";
		return jfncErrorMsg (alert_msg,objEmail);
	} else if ( jfncEmailChkField(varEmail, objEmail) == false ) {
		return false;
	}
	return true;
}