var chkboxStatus = false;			 // ÀüÃ¼Ã¼Å© ½ºÅ©¸³Æ®
function allcheck()
{
    var obj = document.cform.getElementsByTagName("input");
    var i = 0;

    chkboxStatus = true;

    while(obj[i])
    {
        if(obj[i].checked == true)
        {
            chkboxStatus = false;
        }
        i++;
    }

    i = 0;

    while(obj[i])
    {
        if(obj[i].type == "checkbox")
        {
            obj[i].checked = chkboxStatus;
        }
        i++;
    }
}									// ÀüÃ¼Ã¼Å© ½ºÅ©¸³Æ®³¡


function FormCheck2(form) {
	var f = document.form_reg2;		
	if (f.id.value == "") {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.id.focus();
		return false;
	}	
	if ( f.id.value.length < 1 ||  f.id.value.length > 21 ) {
		alert("È¸¿ø ¾ÆÀÌµð¸¦´Â 1~20ÀÚ¸®ÀÔ´Ï´Ù!!");
		f.id.focus();
		return false;
	}
	if (f.password.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.password.focus();
		return false;
	}

	if ( f.password.value.length < 1 ||  f.password.value.length > 21 ) {
		alert("È¸¿ø ºñ¹Ð¹øÈ£´Â 1~20ÀÚ¸®ÀÔ´Ï´Ù!!");
		f.password.focus();
		return false;
	}
}



//È¸¿ø°¡ÀÔ ¼öÁ¤
function FormCheck3(form) {
	var f = document.form_reg;		

	if (f.newpassword.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.newpassword.focus();
		return false;
	}
	
	if (f.password.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.password.focus();
		return false;
	}

	if (f.passwordC.value == "") {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» À§ÇØ ´Ù½Ã ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.passwordC.focus();
		return false;
	}

	if (f.password.value != f.passwordC.value ) {
		alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù!!");
		f.passwordC.focus();
		return false;
	}

	if (f.nick.value == "") {
		alert("´Ð³×ÀÓÀ» ÀÔ·ÂÇÏ¼¼¿ä!!");
		f.nick.focus();
		return false;
	}	

	if (f.hp2.value == "") {
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.hp2.focus();
		return false;
	}

	if (f.hp3.value == "") {
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.hp3.focus();
		return false;
	}

	if (f.addr1.value == "") {
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.addr1.focus();
		return false;
	}

	if (f.addr2.value == "") {
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.addr2.focus();
		return false;
	}

	if (f.addr3.value == "") {
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.addr3.focus();
		return false;
	}

	

	if (f.u_email1.value == "") {
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.u_email1.focus();
		return false;
	}	
}


//È¸¿ø°¡ÀÔÀü ½Ç¸íÀÎÁõ
function FormCheck4(form) {
	var f = document.form_reg;	
	
	if (f.name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.name.focus();
		return false;
	}	

	
	//ÁÖ¹Î¹øÈ£
	if (f.nation.value == 1) {
		if (f.jumin1.value == "") {
				alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
				f.jumin1.focus();
				f.jumin1.select();
				return false;
		} else {
				resultValue = checkNum(f.jumin1.value);

				if (!resultValue) {
					alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
					f.jumin1.focus();
					f.jumin1.select();
					return false;
				}

				if ( f.jumin1.value.length != 6 )
				{
					alert("ÁÖ¹Îµî·Ï ¾ÕÀÚ¸®´Â 6ÀÚ¸®ÀÔ´Ï´Ù");
					f.jumin1.focus();
					return false;
				}
		}

		if (f.jumin2.value == "") {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ µÚ 7ÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
				f.jumin2.focus();
				return false;
		} else {
				returnValue = checkNum(f.jumin2.value);
				if (!returnValue) {
					alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
					f.jumin2.focus();
					f.jumin2.select();
					return false;
				}
				if ( f.jumin2.value.length != 7 ) {
					alert("ÁÖ¹Îµî·Ï µÞÀÚ¸®´Â 7ÀÚ¸®ÀÔ´Ï´Ù");
					f.jumin2.focus();
					return false;
				}

		}

		if( f.jumin1.value != "999999" && f.jumin2.value != "9999999" 
			&& f.jumin1.value != "888888" && f.jumin2.value != "8888888" 
			&& f.jumin1.value != "777777" && f.jumin2.value != "7777777" ){		
				if ( !checkResidentNO(f.jumin1.value, f.jumin2.value) ){
					alert("¿Ã¹Ù¸¥ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù. ´Ù½Ã ÇÑ¹ø È®ÀÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù");
					f.jumin1.focus();
					return false;
				}
		}	
	}else if (f.nation.value == 2) {
		if (f.jumin1.value == "") {
			alert("¿Ü±¹ÀÎ µî·Ï¹øÈ£ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
			f.jumin1.focus();
			return false;
		}	
		if (f.jumin2.value == "") {
			alert("¿Ü±¹ÀÎ µî·Ï¹øÈ£ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
			f.jumin2.focus();
			return false;
		}	
		
	}

	if(f.m1.checked==false) {
		alert('°³ÀÎÁ¤º¸ º¸È£ ¾à°ü¿¡ µ¿ÀÇÇÏ¼¼¿ä!');
		f.m1.focus();
		return false;	
	}
	
	
	if(f.m2.checked==false) {
		alert('°³ÀÎ Á¤º¸ ¾à°ü¿¡ µ¿ÀÇÇÏ¼¼¿ä!');
		f.m2.focus();
		return false;	
	}

	if(f.m3.checked==false) {
		alert('°³ÀÎÁ¤º¸ Ãë±Þ ¾à°ü¿¡ µ¿ÀÇÇÏ¼¼¿ä!');
		f.m3.focus();
		return false;	
	}
	
}

//È¸¿ø°¡ÀÔ ³»±¹ÀÎ
function FormCheck5(form) {
	var f = document.form_reg;	
	
	
	if (f.id.value == "") {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.id.focus();
		return false;
	}	
	if ( f.id.value.length < 1 ||  f.id.value.length > 21 ) {
		alert("¾ÆÀÌµð¸¦´Â 1~20ÀÚ¸®ÀÔ´Ï´Ù!!");
		f.id.focus();
		return false;
	}
	
	if (f.idC.value == "") {
		alert("¾ÆÀÌµð °Ë»öÀ» ÇÏ¼¼¿ä!!");
		f.id.focus();
		return false;
	}	

	if (f.password.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.password.focus();
		return false;
	}

	if ( f.password.value.length < 1 ||  f.password.value.length > 11 ) {
		alert("È¸¿ø ºñ¹Ð¹øÈ£´Â 1~10ÀÚ¸®ÀÔ´Ï´Ù!!");
		f.password.focus();
		return false;
	}

	if (f.passwordC.value == "") {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» À§ÇØ ´Ù½Ã ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.passwordC.focus();
		return false;
	}

	if (f.password.value != f.passwordC.value ) {
		alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ´Ù¸¨´Ï´Ù!!");
		f.passwordC.focus();
		return false;
	}
	
	
	if (f.id.value == f.password.value) {
		alert("È¸¿ø´ÔÀÇ ºñ¹Ð¹øÈ£´Â È¸¿øID¿Í ´Ù¸£°Ô µî·ÏÇÏ¼Å¾ß ÇÕ´Ï´Ù!!");
		f.password.focus();
		return false;
	}	
	
	if (f.nick.value == "") {
		alert("´Ð³×ÀÓÀ» ÀÔ·ÂÇÏ¼¼¿ä!!");
		f.nick.focus();
		return false;
	}	

	if (f.nickC.value == "") {
		alert("´Ð³×ÀÓ Áßº¹ È®ÀÎÀ» ÇÏ¼¼¿ä!!");
		f.nick.focus();
		return false;
	}	

	if (f.hp2.value == "") {
		alert("ÇÚµåÆùÀ» ÀÔ·Â ÇÏ¼¼¿ä!!");
		f.hp2.focus();
		return false;
	}	

	if (f.hp3.value == "") {
		alert("ÇÚµåÆùÀ» ÀÔ·Â ÇÏ¼¼¿ä!!");
		f.hp3.focus();
		return false;
	}	
	if (f.nation.value == "1") {
		if (f.addr1.value == "") {
			alert("¿ìÆí¹øÈ£¸¦ ÀÔ·Â ÇÏ¼¼¿ä!!");
			f.addr1.focus();
			return false;
		}	

		if (f.addr2.value == "") {
			alert("¿ìÆí¹øÈ£¸¦ ÀÔ·Â ÇÏ¼¼¿ä!!");
			f.addr2.focus();
			return false;
		}	

		if (f.addr3.value == "") {
			alert("ÁÖ¼Ò¸¦ ÀÔ·Â ÇÏ¼¼¿ä!!");
			f.addr3.focus();
			return false;
		}		
		if (f.u_email1.value == "") {
			alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
			f.u_email1.focus();
			return false;
		}	
	}
	
	

}


//ºñÈ¸¿ø ½Ç¸íÀÎÁõ
function FormCheck6(form) {
	var f = document.form_reg;	

	if (f.name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.name.focus();
		return false;
	}	


	//ÁÖ¹Î¹øÈ£
	
	if (f.jumin1.value == "") {
			alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			f.jumin1.focus();
			f.jumin1.select();
			return false;
	} else {
			resultValue = checkNum(f.jumin1.value);

			if (!resultValue) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				f.jumin1.focus();
				f.jumin1.select();
				return false;
			}

			if ( f.jumin1.value.length != 6 )
			{
				alert("ÁÖ¹Îµî·Ï ¾ÕÀÚ¸®´Â 6ÀÚ¸®ÀÔ´Ï´Ù");
				f.jumin1.focus();
				return false;
			}
	}

	if (f.jumin2.value == "") {
			alert("ÁÖ¹Îµî·Ï¹øÈ£ µÚ 7ÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			f.jumin2.focus();
			return false;
	} else {
			returnValue = checkNum(f.jumin2.value);
			if (!returnValue) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				f.jumin2.focus();
				f.jumin2.select();
				return false;
			}
			if ( f.jumin2.value.length != 7 ) {
				alert("ÁÖ¹Îµî·Ï µÞÀÚ¸®´Â 7ÀÚ¸®ÀÔ´Ï´Ù");
				f.jumin2.focus();
				return false;
			}

	}

	if( f.jumin1.value != "999999" && f.jumin2.value != "9999999" 
		&& f.jumin1.value != "888888" && f.jumin2.value != "8888888" 
		&& f.jumin1.value != "777777" && f.jumin2.value != "7777777" ){		
			if ( !checkResidentNO(f.jumin1.value, f.jumin2.value) ){
				alert("¿Ã¹Ù¸¥ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù. ´Ù½Ã ÇÑ¹ø È®ÀÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù");
				f.jumin1.focus();
				return false;
			}
	}	
	
}


//ºä¾î ÄÚ¸àÆ®¾²±â
function FormCheck7(form) {
	var f = document.form_reg;			
	
	if (f.cmt_content.value == "") {
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.cmt_content.focus();
		return false;
	}
}


//Ä¿¹Â´ÏÆ¼ ±Û¾²±â ÃÔ¿µÀå
function FormCheck8(form) {
	var f = document.form_reg;			
	
	if (f.title.value == "") {
		alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.title.focus();
		return false;
	}

	if (f.content.value == "") {
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.content.focus();
		return false;
	}
}


//È¸¿øÅ»Åð
function FormCheck9(form) {
	var f = document.form_reg;			
	
	if (f.user_name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.user_name.focus();
		return false;
	}

	if (f.user_pw.value == "") {
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.user_pw.focus();
		return false;
	}
}


//È¸¿ø°¡ÀÔ ¿Ü±¹ÀÎ
function FormCheck10(form) {
	var f = document.form_reg;	
	
	
	if (f.id.value == "") {
		alert("Enter your id!!");
		f.id.focus();
		return false;
	}	
	if ( f.id.value.length < 1 ||  f.id.value.length > 21 ) {
		alert("Use 1 to 20 letters mix of letters!!");
		f.id.focus();
		return false;
	}
	
	if (f.idC.value == "") {
		alert("Please try again id Availability check!!");
		f.id.focus();
		return false;
	}	

	if (f.password.value == "") {
		alert("Enter your password!!");
		f.password.focus();
		return false;
	}

	if ( f.password.value.length < 1 ||  f.password.value.length > 11 ) {
		alert("Use 1 to 10 letters mix of letters!!");
		f.password.focus();
		return false;
	}

	if (f.passwordC.value == "") {
		alert("Enter your re_password!!");
		f.passwordC.focus();
		return false;
	}

	if (f.password.value != f.passwordC.value ) {
		alert("Different password!!");
		f.passwordC.focus();
		return false;
	}
	
	
	if (f.id.value == f.password.value) {
		alert("Customer of the member ID and password must be different!!");
		f.password.focus();
		return false;
	}	
	
	if (f.nick.value == "") {
		alert("Enter your nickname!!");
		f.nick.focus();
		return false;
	}	

	if (f.nickC.value == "") {
		alert("Please try again nickname Availability check!!");
		f.nick.focus();
		return false;
	}	

	if (f.hp2.value == "") {
		alert("Enter your mobile phone number!!");
		f.hp2.focus();
		return false;
	}	

	if (f.hp3.value == "") {
		alert("Enter your mobile phone number!!");
		f.hp3.focus();
		return false;
	}		

}


//È¸¿ø°¡ÀÔÀü ½Ç¸íÀÎÁõ ¿Ü±¹ÀÎ
function FormCheck11(form) {
	var f = document.form_reg;	
	
	f.name.value = f.name.value.toUpperCase();
	if (f.name.value == "") {
		alert("Enter your name!!");
		f.name.focus();
		
		return false;
	}		
	
	if (f.jumin1.value == "") {
		alert("Enter your Foreigner Registration Number!!");
		f.jumin1.focus();
		return false;
	}	
	if (f.jumin2.value == "") {
		alert("Enter your Foreigner Registration Number!!");
		f.jumin2.focus();
		return false;
	}	
		


	if(f.m1.checked==false) {
		alert('Please agree to the f-castle Agreement on the f-castle privacy policy!!');
		f.m1.focus();
		return false;	
	}
	
	
	if(f.m2.checked==false) {
		alert('Please agree to the f-castle Private information provision!!');
		f.m2.focus();
		return false;	
	}

	if(f.m3.checked==false) {
		alert('Please agree to the f-castle Terms of Service!!');
		f.m3.focus();
		return false;	
	}
	
}




//¾ÆÀÌµðÃ£±â
function FormCheck12(form) {
	var f = document.form_reg;		
	if (f.name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.name.focus();
		return false;
	}	
	
	if (f.jumin1.value == "") {
			alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			f.jumin1.focus();
			f.jumin1.select();
			return false;
	} else {
			resultValue = checkNum(f.jumin1.value);

			if (!resultValue) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				f.jumin1.focus();
				f.jumin1.select();
				return false;
			}

			if ( f.jumin1.value.length != 6 )
			{
				alert("ÁÖ¹Îµî·Ï ¾ÕÀÚ¸®´Â 6ÀÚ¸®ÀÔ´Ï´Ù");
				f.jumin1.focus();
				return false;
			}
	}

	if (f.jumin2.value == "") {
			alert("ÁÖ¹Îµî·Ï¹øÈ£ µÚ 7ÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			f.jumin2.focus();
			return false;
	} else {
			returnValue = checkNum(f.jumin2.value);
			if (!returnValue) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				f.jumin2.focus();
				f.jumin2.select();
				return false;
			}
			if ( f.jumin2.value.length != 7 ) {
				alert("ÁÖ¹Îµî·Ï µÞÀÚ¸®´Â 7ÀÚ¸®ÀÔ´Ï´Ù");
				f.jumin2.focus();
				return false;
			}

	}

	if( f.jumin1.value != "999999" && f.jumin2.value != "9999999" 
		&& f.jumin1.value != "888888" && f.jumin2.value != "8888888" 
		&& f.jumin1.value != "777777" && f.jumin2.value != "7777777" ){		
			if ( !checkResidentNO(f.jumin1.value, f.jumin2.value) ){
				alert("¿Ã¹Ù¸¥ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù. ´Ù½Ã ÇÑ¹ø È®ÀÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù");
				f.jumin1.focus();
				return false;
			}
	}	


}

//ÆÐ½º¿öµåÃ£±â
function FormCheck13(form2) {
	var f = document.form_reg2;		
	if (f.id.value == "") {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.id.focus();
		return false;
	}	
	

	if (f.name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.name.focus();
		return false;
	}	
	
	if (f.jumin1.value == "") {
			alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			f.jumin1.focus();
			f.jumin1.select();
			return false;
	} else {
			resultValue = checkNum(f.jumin1.value);

			if (!resultValue) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				f.jumin1.focus();
				f.jumin1.select();
				return false;
			}

			if ( f.jumin1.value.length != 6 )
			{
				alert("ÁÖ¹Îµî·Ï ¾ÕÀÚ¸®´Â 6ÀÚ¸®ÀÔ´Ï´Ù");
				f.jumin1.focus();
				return false;
			}
	}

	if (f.jumin2.value == "") {
			alert("ÁÖ¹Îµî·Ï¹øÈ£ µÚ 7ÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			f.jumin2.focus();
			return false;
	} else {
			returnValue = checkNum(f.jumin2.value);
			if (!returnValue) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù");
				f.jumin2.focus();
				f.jumin2.select();
				return false;
			}
			if ( f.jumin2.value.length != 7 ) {
				alert("ÁÖ¹Îµî·Ï µÞÀÚ¸®´Â 7ÀÚ¸®ÀÔ´Ï´Ù");
				f.jumin2.focus();
				return false;
			}

	}

	if( f.jumin1.value != "999999" && f.jumin2.value != "9999999" 
		&& f.jumin1.value != "888888" && f.jumin2.value != "8888888" 
		&& f.jumin1.value != "777777" && f.jumin2.value != "7777777" ){		
			if ( !checkResidentNO(f.jumin1.value, f.jumin2.value) ){
				alert("¿Ã¹Ù¸¥ ÁÖ¹Îµî·Ï¹øÈ£°¡ ¾Æ´Õ´Ï´Ù. ´Ù½Ã ÇÑ¹ø È®ÀÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù");
				f.jumin1.focus();
				return false;
			}
	}	


}



//¾ÆÀÌµðÃ£±â ¿Ü±¹ÀÎ
function FormCheck14(form3) {
	var f = document.form_reg3;		
	f.name.value = f.name.value.toUpperCase();
	if (f.name.value == "") {
		alert("Enter your name!!");
		f.name.focus();
		return false;
	}	
	
	if (f.jumin1.value == "") {
		alert("Enter your Foreigner Registration Number!!");
		f.jumin1.focus();
		return false;
	}	
	if (f.jumin2.value == "") {
		alert("Enter your Foreigner Registration Number!!");
		f.jumin2.focus();
		return false;
	}	


}

//ÆÐ½º¿öµåÃ£±â
function FormCheck15(form4) {
	var f = document.form_reg4;		
	if (f.id.value == "") {
		alert("Enter your ID!!");
		f.id.focus();
		return false;
	}	
	
	f.name.value = f.name.value.toUpperCase();
	if (f.name.value == "") {
		alert("Enter your name!!");
		f.name.focus();
		return false;
	}	
	
	if (f.jumin1.value == "") {
		alert("Enter your Foreigner Registration Number!!");
		f.jumin1.focus();
		return false;
	}	
	if (f.jumin2.value == "") {
		alert("Enter your Foreigner Registration Number!!");
		f.jumin2.focus();
		return false;
	}	


}


//ºä¾î ÄÚ¸àÆ®¾²±â
function FormCheck16(form) {
	var f = document.form_reg2;			
	
	if (f.cmt_content.value == "") {
		alert("³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À!!");
		f.cmt_content.focus();
		return false;
	}
}

function linkTO() {
	form_3(this.form);
    //document.go.submit();
}

function form_3 (frm) {
		if (document.form_reg.u_email3.value == 20){
			document.all.form_3.style.display='';
		}else{
			document.all.u_email2.value = '';
			document.all.form_3.style.display='none';
		}
}	


function linkgo() {
    document.sort.submit();
}

//number
// ¼ýÀÚ Ã¼Å©
function checkNum(str)
{
	  var isNum = true;

	  if (str == null || str == "")
	  {
		   isNum = false;
		   return isNum;
	  }

	  for (var j = 0 ; j < str.length; j++)
	  {
		   if (      str.substring(j, j + 1) != "0"
				&&   str.substring(j, j + 1) != "1"
				&&   str.substring(j, j + 1) != "2"
				&&   str.substring(j, j + 1) != "3"
				&&   str.substring(j, j + 1) != "4"
				&&   str.substring(j, j + 1) != "5"
				&&   str.substring(j, j + 1) != "6"
				&&   str.substring(j, j + 1) != "7"
				&&   str.substring(j, j + 1) != "8"
				&&   str.substring(j, j + 1) != "9" )
		   {
				isNum = false;
		   }
	  }
	  return isNum;
 }

 // ¼ýÀÚ ÆÇ´Ü
function isNumber(obj) {
	var str = obj.value;

	for(var i=0; i < str.length; i++) {
		if(!('0' <= str.charAt(i) && str.charAt(i) <= '9')) {
			alert ("¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù");
			obj.value = "";
			obj.focus();
			return false;
		}
	}
	return true;
}

//¼ýÀÚ°Ë»ö
function NumberOnly (el) {
el.value = el.value.replace(/\D/g,'');
}


// jumin 
function checkResidentNO(jumin1, jumin2) {  

	var str_f_num = jumin1;
	var str_l_num = jumin2;

	var i3=0
	for (var i=0;i<str_f_num.length;i++)
	{
			var ch1 = str_f_num.substring(i,i+1);
			if (ch1<'0' || ch1>'9') { i3=i3+1 }
	}
	if ((str_f_num == '') || ( i3 != 0 ))
	{
			return (false);
	}



	  var i4=0
	  for (var i=0;i<str_l_num.length;i++)
	  {
		  var ch1 = str_l_num.substring(i,i+1);
		  if (ch1<'0' || ch1>'9') { i4=i4+1 }
	  }
	  if ((str_l_num == '') || ( i4 != 0 ))
	  {
			return (false);
	  }

	  if(str_f_num.substring(0,1) < 0)
	  {
		   return (false);
	  }

	  if(str_l_num.substring(0,1) > 2)
	  {
		   return (false);
	  }

	  if((str_f_num.length > 7) || (str_l_num.length > 8))
	  {

		   return (false);
	  }

	  if ((str_f_num == '72') || ( str_l_num == '18'))
	  {

		return (false);
	  }

	  var f1=str_f_num.substring(0,1)
	  var f2=str_f_num.substring(1,2)
	  var f3=str_f_num.substring(2,3)
	  var f4=str_f_num.substring(3,4)
	  var f5=str_f_num.substring(4,5)
	  var f6=str_f_num.substring(5,6)
	  var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7
	  var l1=str_l_num.substring(0,1)
	  var l2=str_l_num.substring(1,2)
	  var l3=str_l_num.substring(2,3)
	  var l4=str_l_num.substring(3,4)
	  var l5=str_l_num.substring(4,5)
	  var l6=str_l_num.substring(5,6)
	  var l7=str_l_num.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 checkEmail(form) {  
	var email = form.email.value;
	var email_1 = "";
	var email_2 = "";
	var check_point = 0;


	if (email.indexOf("@") < 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ @ °¡ ºüÁ®ÀÖ½À´Ï´Ù.");
		form.email.focus();
		return false;
	}
	if (email.indexOf(".") < 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ . °¡ ºüÁ®ÀÖ½À´Ï´Ù.");
		form.email.focus();
		return false;
	}

	if (email.indexOf("|") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ | ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email.indexOf(">") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ > ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email.indexOf("<") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ < ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email.indexOf(" ") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ °ø¹éÀÌ Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}

		  for (var j = 0 ; j < email.length; j++) {
			   if ( email.substring(j, j + 1) != "@"  && check_point == 0 ) {
					email_1 = email_1 + email.substring(j, j + 1)
			   } else if ( email.substring(j, j + 1) == "@" )  {
					check_point = check_point + 1;
			   } else {
					email_2 = email_2 + email.substring(j, j + 1);	
			   }
		  }

	if (email_1.length < 3 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ @ ¾ÕÀÚ¸®´Â 3ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ßÇÕ´Ï´Ù.");
		form.email.focus();
		return false;
	}
	if (email_1.length < 3 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ @ ¾ÕÀÚ¸®´Â 3ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ßÇÕ´Ï´Ù.");
		form.email.focus();
		return false;
	}
	if (email_2.length < 2 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ @ µÞÀÚ¸®´Â 2ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ßÇÕ´Ï´Ù.");
		form.email.focus();
		return false;
	}

	if (check_point > 1 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ @ ´Â 1¹øÀÌ»ó µé¾î°¥¼ö ¾ø½À´Ï´Ù.");
		form.email.focus();
		return false;
	}

	if (email_2.indexOf("(") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ( ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("(") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ( ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf(")") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ) ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf(",") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ , ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf(";") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ; ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf(":") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ : ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("/") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ / ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("[") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ [ ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("]") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ] ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("{") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ { ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("}") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ } ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf(" ") >= 0 ) {
		alert("ÀüÀÚ¿ìÆíÁÖ¼Ò¿¡ ½ºÆäÀÌ½º´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("daum.net") >= 0 ) {
		alert("DaumÀÇ hanmailÀº º¸³¾¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	if (email_2.indexOf("hanmail.net") >= 0 ) {
		alert("DaumÀÇ hanmailÀº º¸³¾¼ö ¾ø½À´Ï´Ù..");
		form.email.focus();
		return false;
	}
	return true;
}	


//¾ÆÀÌµðÁßº¹Ã¼Å©
function id_check_win(){
	var id = eval(document.form_reg.id);            
	if(!id.value) {
		alert('¾ÆÀÌµð(ID)¸¦ ÀÔ·ÂÇÏ½Å ÈÄ¿¡ È®ÀÎÇÏ¼¼¿ä!');
		id.focus();
		return;
	} 
	else {
		temp = document.form_reg.id.value;
		window.open("/sub/popup.html?mode=m_join&id=" + temp,"post","toolbar=no,width=430,height=260,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
	}
}

//¾ÆÀÌµðÁßº¹Ã¼Å©
function id_check_winf(){
	var id = eval(document.form_reg.id);            
	if(!id.value) {
		alert('ID to check after you have entered!');
		id.focus();
		return;
	} 
	else {
		temp = document.form_reg.id.value;
		window.open("/sub/popup_f.html?mode=m_join&id=" + temp,"post","toolbar=no,width=400,height=220,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
	}
}

//´Ð³×ÀÓÁßº¹Ã¼Å©
function nick_check_win(){
	var nick = eval(document.form_reg.nick);            
	if(!nick.value) {
		alert('nickname to check after you have entered!');
		nick.focus();
		return;
	} 
	else {
		temp = document.form_reg.nick.value;
		window.open("/sub/popup.html?mode=nick_join&nick=" + temp,"post","toolbar=no,width=400,height=245,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
	}
}

//´Ð³×ÀÓÁßº¹Ã¼Å©
function nick_check_winf(){
	var nick = eval(document.form_reg.nick);            
	if(!nick.value) {
		alert('nickname to check after you have entered!');
		nick.focus();
		return;
	} 
	else {
		temp = document.form_reg.nick.value;
		window.open("/sub/popup_f.html?mode=nick_join&nick=" + temp,"post","toolbar=no,width=390,height=215,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
	}
}

//ÁÖ¼ÒÃ£±â
function post_check_win(form_reg){
	window.open('/sub/popup.html?mode=p_join','post','width=450,height=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}

//¾ÆÀÌµðÃ£±â
function id_search_win(form_reg){
	window.open('/sub/id.pass.search.inc.php','post','toolbar=no,width=588,height=660,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}



//ÆÐ½º¿öµåÃ£±â
function pass_search_win(form_reg){
	window.open('/sub/popup.html?mode=p_search','post','toolbar=no,width=430,height=260,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}
//<input onkeypress='ChkSpecialChar(this)' onblur='ChkSpecialChar(this)'>
//Æ¯¼ö¹®ÀÚ ½Ç½Ã°£ Á¦°Å
function ChkSpecialChar(obj){
val=obj.value
re=/[^¤¡-¤¾¤¿-¤Ð°¡-ÆRa-z0-9\s]/gi
obj.value=val.replace(re,"")
}


//number
// ¼ýÀÚ Ã¼Å©
function checkNum(str)
{
	  var isNum = true;

	  if (str == null || str == "")
	  {
		   isNum = false;
		   return isNum;
	  }

	  for (var j = 0 ; j < str.length; j++)
	  {
		   if (      str.substring(j, j + 1) != "0"
				&&   str.substring(j, j + 1) != "1"
				&&   str.substring(j, j + 1) != "2"
				&&   str.substring(j, j + 1) != "3"
				&&   str.substring(j, j + 1) != "4"
				&&   str.substring(j, j + 1) != "5"
				&&   str.substring(j, j + 1) != "6"
				&&   str.substring(j, j + 1) != "7"
				&&   str.substring(j, j + 1) != "8"
				&&   str.substring(j, j + 1) != "9" )
		   {
				isNum = false;
		   }
	  }
	  return isNum;
 }

 // ¼ýÀÚ ÆÇ´Ü
function isNumbere(obj) {
	var str = obj.value;

	for(var i=0; i < str.length; i++) {
		if(!('0' <= str.charAt(i) && str.charAt(i) <= '9')) {
			alert ("Enter numbers!!");
			obj.value = "";
			obj.focus();
			return false;
		}
	}
	return true;
}

//¼ýÀÚ°Ë»ö
function NumberOnly (el) {
el.value = el.value.replace(/\D/g,'');
}


//¾ÆÀÌµðÀúÀå
function setCookie (name, value, expires) {
  document.cookie = name + "=" + escape (value) +
    "; path=/; expires=" + expires.toGMTString();
}

function getCookie(Name) {
  var search = Name + "="
  if (document.cookie.length > 0) { // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset)
      // ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
      if (end == -1)
        end = document.cookie.length
      return unescape(document.cookie.substring(offset, end))
    }
  }
  return "";
}
function saveid(form) {
  var expdate = new Date();
  // ±âº»ÀûÀ¸·Î 30ÀÏµ¿¾È ±â¾ïÇÏ°Ô ÇÔ. ÀÏ¼ö¸¦ Á¶ÀýÇÏ·Á¸é * 30¿¡¼­ ¼ýÀÚ¸¦ Á¶ÀýÇÏ¸é µÊ
  if (form.checksaveid.checked)
    expdate.setTime(expdate.getTime() + 1000 * 3600 * 24 * 30); // 30ÀÏ
  else
    expdate.setTime(expdate.getTime() - 1); // ÄíÅ° »èÁ¦Á¶°Ç
  setCookie("saveid", form.id.value, expdate);
}
function getid(form) {
  form.checksaveid.checked = ((form.id.value = getCookie("saveid")) != "");
}

//Å»Åð
function join_out_win(form_reg){
	window.open('/sub/gall_pop1.html','post','toolbar=no,width=680,height=344,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}

//°Ô½ÃÆÇ °¶·¯¸® ÃßÃµ
function board_rec(bbs_code,uid)
{
	
	ans = confirm("ÃßÃµÇÏ½Ã°Ú½À´Ï±î?")
	if(ans == true) {
	window.open('/sub/pop.recom.html?bbs_code='+bbs_code+'&uid='+uid,'post','width=100,height=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	}
}

//°Ô½Ã¹° »èÁ¦
function board_del(uid,bbs_code) {
	ans = confirm("Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À±î?\nÇØ´ç ÄÚ¸àÆ®µµ °°ÀÌ »èÁ¦°¡ µË´Ï´Ù.");
	if(ans == true) {
		moveURL = '/sub/board.insert.inc.html?action=board_del&uid=' + uid+'&bbs_code='+bbs_code;
		self.location.href=moveURL;
	} 
}



// iframe size change
function changeHeight()
{
	var objBody	    =	targetFrame.document.body;
	var objFrame	=	document.all["targetFrame"];

	objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
	objFrame.style.width  = objBody.scrollWidth + (objBody.offsetWidth - objBody.clientWidth)
}

// iframe starting function
function init()
{
	parent.changeHeight();
}

//ÄÚ¸àÆ® ±ÛÀÚÁ¦ÇÑ
function ClearMsg(form){
	var obj = "¸Þ¸ð";
	src = form.cmt_content.value.substr(2,3);

	if(src == obj) form.cmt_content.value="";

}
//ÄÚ¸àÆ® ±ÛÀÚÁ¦ÇÑ
function CheckLen(form)
{
	var chartok = "";
	var charrm = "";
	var msglen = 0;

	for(i = 0;i < form.cmt_content.value.length; i++){

		chartok = form.cmt_content.value.charAt(i);

		if (escape(chartok).length > 4)
			code_check = 2;
		else
			code_check = 1;

		msglen += code_check;

		if(msglen > 150){
			alert('¸Þ¼¼Áö´Â 150ÀÚ ÀÌÇÏ·Î Àû¾îÁÖ¼¼¿ä');
			msglen -= code_check;
			form.cmt_content.value = form.cmt_content.value.substring(0, form.cmt_content.value.length-1);
			break;
		}
	}

	
	form.msglen.value = msglen;

}

//°áÁ¦Ã¢
function payment_cash(type){
	window.open('/payment/index.html?cash_type=' +type,'cash','toolbar=no,width=610,height=440,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}



//°¶·¯¸® ºä¾î
function view_win(cate1,cate2){
	window.open('/sub/castle_sub_001_pop.php?cate1='+cate1+'&cate2='+cate2,'viewer','toolbar=no,width=990,height=900,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}

function view_win_new(cate1,cate2,sses){
	window.open('/sub/castle_sub_001_pop.php?sessids='+sses+'&cate1='+cate1+'&cate2='+cate2,'viewer','toolbar=no,width=990,height=900,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}



//°¶·¯¸® ºä¾î --ÆÄÆ®³ÊÆäÀÌÁö
function view_win_partner(cate1,cate2){
	window.open('/sub/partner_g_pop.php?cate1='+cate1+'&cate2='+cate2,'viewer','toolbar=no,width=990,height=900,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}

function view_win_partner2(cate1,cate2,cate4){
	window.open('/sub/partner_ns_g_pop.php?cate1='+cate1+'&cate2='+cate2+'&cate4='+cate4,'viewer','toolbar=no,width=990,height=900,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}


//µ¿¿µ»ó ºä¾î
function view_win_movie(cate1){
	window.open('/sub/castle_sub_002_pop_mov.php?cate1='+cate1,'viewer2','toolbar=no,width=760,height=772,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}

//µ¿¿µ»ó ºä¾î--ÆÄÆ®³ÊÆäÀÌÁö
function view_win_movie_partner(cate1){
	window.open('/sub/partner_m_003_pop.php?cate1='+cate1,'viewer2','toolbar=no,width=760,height=772,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}

function view_win_movie_partner2(cate1,cate4){
	window.open('/sub/partner_ns_m_003_pop.php?cate1='+cate1+'&cate4='+cate4,'viewer2','toolbar=no,width=760,height=772,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}

//µ¿¿µ»ó ºä¾î Ä¿¹Â´ÏÆ¼ °Å¸®°É½º µ¿¿µ»ó
function view_win_movie2(cate1){
	window.open('/sub/board.pop.mov.php?cate1='+cate1,'viewer2','toolbar=no,width=760,height=730,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}
//µ¿¿µ»ó ºä¾î ÃÔ¿µÀå½ºÄÉÄ¡
function view_win_sketch_movie(cate1){
	window.open('/sub/castle_sub_002_pop_mov_sketch.php?cate1='+cate1,'viewer2','toolbar=no,width=780,height=830,directories=no,status=no,scrollbars=yes,resize=no,menubar=no');
}


//»ùÇÃ °¶·¯¸® ºä¾î
function sample_view_win(){
	window.open('/sub/castle_pop_001.php','viewer','toolbar=no,width=462,height=509,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}

//»ùÇÃ µ¿¿µ»ó ºä¾î
function sample_view2_win(){
	window.open('/sub/castle_pop_002.php','viewer','toolbar=no,width=462,height=509,directories=no,status=no,scrollbars=no,resize=no,menubar=no');
}



//ÇÁ·¹ÀÓ ¼Ò½º¸·±â
//if(parent.frames.length <=0){top.location.href="http://web.f-castle.com"}