//---------------------------------------- °³ÀÎÈ¸¿ø °¡ÀÔÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck()
{
	var rtn;
	var frm = document.regiform;
	
	rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Name,"HAN", 2, 5, "");	
	if ( CheckObjResult( frm.f_Name , 2, 5, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_JuminNo1,"NUM", frm.f_JuminNo1, frm.f_JuminNo2, "Jumin");	
	if ( CheckObjResult( frm.f_JuminNo1 , frm.f_JuminNo1, frm.f_JuminNo2 , rtn ) != true ) return;
	
	// ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	if ( (frm.f_HP1.value.length > 0) || (frm.f_HP2.value.length > 0) || (frm.f_HP3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_HP1,"NUM", 010, 019, "");	
		if ( CheckObjResult( frm.f_HP1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_HP2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_HP3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP3 , 100, 9999, rtn ) != true ) return;
	}

	rtn = CheckObjValue( frm.f_Email,"Email", 5, 50, "Email");	
	if ( CheckObjResult( frm.f_Email , 5, 50, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_ZipCode1,"NUMDASH", 7, 7, "");	
	//if ( CheckObjResult( frm.f_ZipCode , 7, 7, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr1,"HANNUMALPHADASH", 10, 50, "");	
	if ( CheckObjResult( frm.f_Addr1 , 10, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr2,"HANNUMALPHADASH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr2 , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Position,"LENGTH", 2, 25, "");	
	if ( CheckObjResult( frm.f_Position , 2, 25, rtn ) != true ) return;

	// ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	if ( (frm.f_Tel1.value.length > 0) || (frm.f_Tel2.value.length > 0) || (frm.f_Tel3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_Tel1,"NUM", 02, 100, "");	
		if ( CheckObjResult( frm.f_Tel1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_Tel2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_Tel3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel3 , 100, 9999, rtn ) != true ) return;
	}
	
	rtn = CheckObjValue( frm.f_Product,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Product , 2, 50, rtn ) != true ) return;



	frm.action = "./entry01_ok.asp";
	frm.submit();
	return;

}


//---------------------------------------- °³ÀÎÈ¸¿ø Á¤º¸¼öÁ¤ÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Mod(flag)
{
	var rtn;
	var chkFlag = flag;
	var frm = document.regiform;
	
	//rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	//if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_Name,"HAN", 2, 5, "");	
	//if ( CheckObjResult( frm.f_Name , 2, 5, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_JuminNo1,"NUM", frm.f_JuminNo1, frm.f_JuminNo2, "Jumin");	
	//if ( CheckObjResult( frm.f_JuminNo1 , frm.f_JuminNo1, frm.f_JuminNo2 , rtn ) != true ) return;
	
	// ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	if ( (frm.f_HP1.value.length > 0) || (frm.f_HP2.value.length > 0) || (frm.f_HP3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_HP1,"NUM", 010, 019, "");	
		if ( CheckObjResult( frm.f_HP1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_HP2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_HP3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP3 , 100, 9999, rtn ) != true ) return;
	}

	rtn = CheckObjValue( frm.f_Email,"Email", 5, 50, "Email");	
	if ( CheckObjResult( frm.f_Email , 5, 50, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_ZipCode1,"NUMDASH", 7, 7, "");	
	//if ( CheckObjResult( frm.f_ZipCode , 7, 7, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr1,"HANNUMALPHADASH", 10, 50, "");	
	if ( CheckObjResult( frm.f_Addr1 , 10, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr2,"HANNUMALPHADASH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr2 , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Position,"LENGTH", 2, 25, "");	
	if ( CheckObjResult( frm.f_Position , 2, 25, rtn ) != true ) return;

	// ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	if ( (frm.f_Tel1.value.length > 0) || (frm.f_Tel2.value.length > 0) || (frm.f_Tel3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_Tel1,"NUM", 02, 100, "");	
		if ( CheckObjResult( frm.f_Tel1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_Tel2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_Tel3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel3 , 100, 9999, rtn ) != true ) return;
	}
	
	rtn = CheckObjValue( frm.f_Product,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Product , 2, 50, rtn ) != true ) return;


	if ( chkFlag == "admin") {
		frm.action = "./member01_edit_ok.asp";
	} else {
		frm.action = "./modify01_ok.asp";
	}
	frm.submit();
	return;

}

//---------------------------------------- ±â¾÷È¸¿ø °¡ÀÔÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Com()
{
	var rtn;
	var frm = document.regiform;
	
	rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Eng,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company_Eng , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Build_Year,"NUM", 1900, 2010, "");	
	if ( CheckObjResult( frm.f_Build_Year, 1900, "±Ý³â", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Estate_Scale,"LENGTH", 2, 15, "");	
	if ( CheckObjResult( frm.f_Estate_Scale, "¹é¸¸¿øÀÌ»ó", "¹«ÇÑ´ë±îÁö", rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_Capital_Fund,"LENGTH", 2, 50, "");	
	//if ( CheckObjResult( frm.f_Capital_Fund, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Employees,"NUM", 1, 9999999, "");	
	if ( CheckObjResult( frm.f_Employees, "ÇÑ¸íÀÌ»ó", "¹«ÇÑ´ë", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Sales,"LENGTH", 1, 15, "");	
	if ( CheckObjResult( frm.f_Sales, "¹é¸¸¿øÀÌ»ó", "¹«ÇÑ´ë", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num1,"NUM", 1, 999, "");	
	if ( CheckObjResult( frm.f_Company_Num1, 001, 999, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num2,"NUM", 1, 99, "");	
	if ( CheckObjResult( frm.f_Company_Num2, 001, 99, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num3,"NUM", 001, 99999, "");	
	if ( CheckObjResult( frm.f_Company_Num3, 1, 99999, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_President,"HAN", 2, 5, "");	
	if ( CheckObjResult( frm.f_President , 2, 5, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_President_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_President_Eng, 2, 20, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_President_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_President_Eng, 2, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr_Eng,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr_Eng, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Tel, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel_Eng,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Tel_Eng, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Fax, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax_Eng,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Fax_Eng, 8, 20, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_Manager,"LENGTH", 2, 5, "");	
	if ( CheckObjResult( frm.f_Manager, 2, 5, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Manager_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_Manager_Eng, 2, 20, rtn ) != true ) return;

	
	// ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	/*
	if ( (frm.f_HP1.value.length > 0) || (frm.f_HP2.value.length > 0) || (frm.f_HP3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_HP1,"NUM", 010, 019, "");	
		if ( CheckObjResult( frm.f_HP1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_HP2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_HP3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP3 , 100, 9999, rtn ) != true ) return;
	}
	*/
	rtn = CheckObjValue( frm.f_Email,"Email", 5, 50, "Email");	
	if ( CheckObjResult( frm.f_Email , 5, 50, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_ZipCode1,"NUMDASH", 7, 7, "");	
	//if ( CheckObjResult( frm.f_ZipCode , 7, 7, rtn ) != true ) return;

/*
	rtn = CheckObjValue( frm.f_Addr1,"HANNUMALPHADASH", 10, 50, "");	
	if ( CheckObjResult( frm.f_Addr1 , 10, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr2,"HANNUMALPHADASH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr2 , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Position,"LENGTH", 2, 25, "");	
	if ( CheckObjResult( frm.f_Position , 2, 25, rtn ) != true ) return;

	// ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	if ( (frm.f_Tel1.value.length > 0) || (frm.f_Tel2.value.length > 0) || (frm.f_Tel3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_Tel1,"NUM", 02, 100, "");	
		if ( CheckObjResult( frm.f_Tel1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_Tel2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_Tel3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel3 , 100, 9999, rtn ) != true ) return;
	}
	*/
	//rtn = CheckObjValue( frm.f_Product,"LENGTH", 2, 50, "");	
	//if ( CheckObjResult( frm.f_Product , 2, 50, rtn ) != true ) return;
	var chkCount=0;
	Product = new Array();
	for(var i=0; i<90;i ++) {
		
		if ( frm.f_ChkBox_Product[i].checked == true ) {
			Product = frm.f_ChkBox_Product[i].value;
			chkCount = chkCount + 1;
			//alert(chkCount);
		}
	}
	
	if ( chkCount < 1 ) {
		if (frm.f_Content.value == "") {
			alert("»ý»êÇ°¸ñÀ» ÇÏ³ª ÀÌ»ó Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
			return;
		}
	}

	frm.action = "./entry02_ok.asp";
	frm.submit();
	return;

}


//---------------------------------------- ±â¾÷È¸¿ø Á¤º¸¼öÁ¤ ÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Com_Mod(flag)
{
	var rtn;
	var chkFlag = flag;
	var frm = document.regiform;
	
	rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Eng,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company_Eng , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Build_Year,"NUM", 1900, 2010, "");	
	if ( CheckObjResult( frm.f_Build_Year, 1900, "±Ý³â", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Estate_Scale,"LENGTH", 2, 15, "");	
	if ( CheckObjResult( frm.f_Estate_Scale, "¹é¸¸¿øÀÌ»ó", "¹«ÇÑ´ë±îÁö", rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_Capital_Fund,"LENGTH", 2, 50, "");	
	//if ( CheckObjResult( frm.f_Capital_Fund, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Employees,"NUM", 1, 9999999, "");	
	if ( CheckObjResult( frm.f_Employees, "ÇÑ¸íÀÌ»ó", "¹«ÇÑ´ë", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Sales,"LENGTH", 1, 15, "");	
	if ( CheckObjResult( frm.f_Sales, "¹é¸¸¿øÀÌ»ó", "¹«ÇÑ´ë", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num1,"NUM", 1, 999, "");	
	if ( CheckObjResult( frm.f_Company_Num1, 001, 999, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num2,"NUM", 1, 99, "");	
	if ( CheckObjResult( frm.f_Company_Num2, 001, 99, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num3,"NUM", 001, 99999, "");	
	if ( CheckObjResult( frm.f_Company_Num3, 1, 99999, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_President,"HAN", 2, 5, "");	
	if ( CheckObjResult( frm.f_President , 2, 5, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_President_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_President_Eng, 2, 20, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_President_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_President_Eng, 2, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr_Eng,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr_Eng, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Tel, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel_Eng,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Tel_Eng, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Fax, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax_Eng,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Fax_Eng, 8, 20, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_Manager,"LENGTH", 2, 5, "");	
	if ( CheckObjResult( frm.f_Manager, 2, 5, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Manager_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_Manager_Eng, 2, 20, rtn ) != true ) return;

	
	// ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	/*
	if ( (frm.f_HP1.value.length > 0) || (frm.f_HP2.value.length > 0) || (frm.f_HP3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_HP1,"NUM", 010, 019, "");	
		if ( CheckObjResult( frm.f_HP1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_HP2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_HP3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_HP3 , 100, 9999, rtn ) != true ) return;
	}
	*/
	rtn = CheckObjValue( frm.f_Email,"Email", 5, 50, "Email");	
	if ( CheckObjResult( frm.f_Email , 5, 50, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_ZipCode1,"NUMDASH", 7, 7, "");	
	//if ( CheckObjResult( frm.f_ZipCode , 7, 7, rtn ) != true ) return;

/*
	rtn = CheckObjValue( frm.f_Addr1,"HANNUMALPHADASH", 10, 50, "");	
	if ( CheckObjResult( frm.f_Addr1 , 10, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr2,"HANNUMALPHADASH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr2 , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Position,"LENGTH", 2, 25, "");	
	if ( CheckObjResult( frm.f_Position , 2, 25, rtn ) != true ) return;

	// ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇßÀ» °æ¿ì¿¡¸¸ Ã¼Å©
	if ( (frm.f_Tel1.value.length > 0) || (frm.f_Tel2.value.length > 0) || (frm.f_Tel3.value.length > 0) ) {
		rtn = CheckObjValue( frm.f_Tel1,"NUM", 02, 100, "");	
		if ( CheckObjResult( frm.f_Tel1 , 8, 9, rtn ) != true ) return;
	
		rtn = CheckObjValue( frm.f_Tel2,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel2 , 100, 9999, rtn ) != true ) return;
		
		rtn = CheckObjValue( frm.f_Tel3,"NUM", 100, 9999, "");	
		if ( CheckObjResult( frm.f_Tel3 , 100, 9999, rtn ) != true ) return;
	}
	*/
	//rtn = CheckObjValue( frm.f_Product,"LENGTH", 2, 50, "");	
	//if ( CheckObjResult( frm.f_Product , 2, 50, rtn ) != true ) return;
	var chkCount=0;
	Product = new Array();
	for(var i=0; i<90;i ++) {
		
		if ( frm.f_ChkBox_Product[i].checked == true ) {
			Product = frm.f_ChkBox_Product[i].value;
			chkCount = chkCount + 1;
			//alert(chkCount);
		}
	}
	
	if ( chkCount < 1 ) {
		if (frm.f_Content.value == "") {
			alert("»ý»êÇ°¸ñÀ» ÇÏ³ª ÀÌ»ó Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
			return;
		}
	}

	if ( chkFlag == "admin") {
		frm.action = "./member02_edit_ok.asp";
	} else {
		frm.action = "./modify02_ok.asp";
	}	frm.submit();
	return;

}

//---------------------------------------- ±â¾÷È¸¿ø °¡ÀÔÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_ComNew()
{
	var rtn;
	var frm = document.regiform;
	
	rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	/*

	rtn = CheckObjValue( frm.f_Company,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Eng,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Company_Eng , 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Build_Year,"NUM", 1900, 2010, "");	
	if ( CheckObjResult( frm.f_Build_Year, 1900, "±Ý³â", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Employees,"NUM", 1, 9999999, "");	
	if ( CheckObjResult( frm.f_Employees, "ÇÑ¸íÀÌ»ó", "¹«ÇÑ´ë", rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num1,"NUM", 1, 999, "");	
	if ( CheckObjResult( frm.f_Company_Num1, 001, 999, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num2,"NUM", 1, 99, "");	
	if ( CheckObjResult( frm.f_Company_Num2, 001, 99, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Company_Num3,"NUM", 001, 99999, "");	
	if ( CheckObjResult( frm.f_Company_Num3, 1, 99999, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_President,"HAN", 2, 5, "");	
	if ( CheckObjResult( frm.f_President , 2, 5, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr1,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr1, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Addr2,"LENGTH", 2, 50, "");	
	if ( CheckObjResult( frm.f_Addr2, 2, 50, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel1,"LENGTH", 3, 3, "");	
	if ( CheckObjResult( frm.f_Tel1, 3, 3, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel2,"LENGTH", 3, 4, "");	
	if ( CheckObjResult( frm.f_Tel2, 3, 4, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel3,"LENGTH", 4, 4, "");	
	if ( CheckObjResult( frm.f_Tel3, 4, 4, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax1,"LENGTH", 3, 3, "");	
	if ( CheckObjResult( frm.f_Fax1, 3, 3, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_Fax2,"LENGTH",3, 4, "");	
	if ( CheckObjResult( frm.f_Fax2, 3, 4, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax3,"LENGTH", 4, 4, "");	
	if ( CheckObjResult( frm.f_Fax3, 4, 4, rtn ) != true ) return;


	rtn = CheckObjValue( frm.f_President_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_President_Eng, 2, 20, rtn ) != true ) return;
	
	rtn = CheckObjValue( frm.f_Addr_Eng,"LENGTH", 2, 60, "");	
	if ( CheckObjResult( frm.f_Addr_Eng, 2, 60, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Manager_Eng,"LENGTH", 2, 20, "");	
	if ( CheckObjResult( frm.f_Manager_Eng, 2, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Tel_Eng,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Tel_Eng, 8, 20, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Fax_Eng,"LENGTH", 8, 20, "");	
	if ( CheckObjResult( frm.f_Fax_Eng, 8, 20, rtn ) != true ) return;
	

	rtn = CheckObjValue( frm.f_Email,"Email", 5, 50, "Email");	
	if ( CheckObjResult( frm.f_Email , 5, 50, rtn ) != true ) return;

	*/
	

	frm.action = "./new_entry02_ok.asp";
	frm.submit();
	return;

}


//---------------------------------------- Á÷¿ø °¡ÀÔÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Staff()
{
	var rtn;
	var frm = document.regiform;
	
	rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Name,"HAN", 2, 10, "");	
	if ( CheckObjResult( frm.f_Name , 2, 10, rtn ) != true ) return;

	frm.action = "./staff_regi_ok.asp";
	frm.submit();
	return;

}


//---------------------------------------- Á÷¿ø Á¤º¸¼öÁ¤ÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Staff_Mod()
{
	var rtn;
	var frm = document.regiform;
	

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	frm.action = "./staff_edit_ok.asp";
	frm.submit();
	return;

}


//---------------------------------------- KEITRA °¡ÀÔÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Keitra()
{
	var rtn;
	var frm = document.regiform;
	
	rtn = CheckObjValue( frm.f_MemID,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_MemID, 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	//rtn = CheckObjValue( frm.f_Name,"HAN", 2, 10, "");	
	//if ( CheckObjResult( frm.f_Name , 2, 10, rtn ) != true ) return;

	frm.action = "./keitra_regi_ok.asp";
	frm.submit();
	return;

}


//---------------------------------------- KEITRA Á¤º¸¼öÁ¤ÇÒ¶§ Ã¼Å©Ç×¸ñ
function frmCheck_Keitra_Mod()
{
	var rtn;
	var frm = document.regiform;
	

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd2,"ALPHANUM", 4, 15, "");	
	if ( CheckObjResult( frm.f_Pwd2 , 4, 15, rtn ) != true ) return;

	rtn = CheckObjValue( frm.f_Pwd,"ALPHANUM", frm.f_Pwd, frm.f_Pwd2, "PwdCheck");	
	if ( CheckObjResult( frm.f_Pwd2 , frm.f_Pwd, frm.f_Pwd2, rtn ) != true ) return;

	frm.action = "./keitra_edit_ok.asp";
	frm.submit();
	return;

}


function CheckObjResult( Obj, ObjSizeMin, ObjSizeMax, Rtn )
{
        
        if ( Rtn == true) return true;
        
        switch ( Rtn )
        {
                case 10:
                        alert("ObjType ºÒÀÏÄ¡...");
                        break;
                case 11:
                        alert(Obj.id+"´Â(Àº) ¼ýÀÚÇü¸¸ °¡´É ÇÕ´Ï´Ù.");
                        break;
                case 12:
                        alert(Obj.id+"´Â(Àº) ¿µ¹®ÀÚÇü¸¸ °¡´É ÇÕ´Ï´Ù.");
                        break;
                case 13:
                        alert(Obj.id+"´Â(Àº) ¿µ¹®ÀÚ°ú ¼ýÀÚ¸¸ »ç¿ë°¡´É ÇÕ´Ï´Ù.");
                        break;                        
                case 14:
                        alert(Obj.id+"´Â(Àº) ÇÑ±Û¸¸ »ç¿ë°¡´É ÇÕ´Ï´Ù.");
                        break;                        
                case 15:
                        alert(Obj.id+"´Â(Àº) ¼ýÀÚ¿Í '-' ¹®ÀÚ¸¸ »ç¿ë°¡´É ÇÕ´Ï´Ù.");
                        break;                        
                case 16:
                        alert(Obj.id+"´Â(Àº) ÇÑ±Û,¿µ¹®,¼ýÀÚ¿Í '-' ¹®ÀÚ¸¸ »ç¿ë°¡´É ÇÕ´Ï´Ù.");
                        break;                        
                case 20:
                        alert("ObjType ºÒÀÏÄ¡(" + Obj.id + ")...");
                        break;
                case 21:
                        alert(Obj.id+"´Â(Àº) ÀÔ·Â °¡´ÉÇÑ ¼ýÀÚ ¹üÀ§°¡ ¾Æ´Õ´Ï´Ù..\n\n " + ObjSizeMin +" ºÎÅÍ " + ObjSizeMax + "»çÀÌÀÇ ¼ýÀÚ·Î ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä" );
                        break;
                case 22:
                        alert(Obj.id+"´Â(Àº) ±æÀÌ°¡ Æ²¸³´Ï´Ù...\n\n " + ObjSizeMin +" ºÎÅÍ " + ObjSizeMax + "»çÀÌÀÇ ±æÀÌ·Î ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä" );
                        break;
                case 31:
                        alert("ÁÖ¹Î¹øÈ£ Çü½ÄÀÌ Æ²¸³´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä." );
                        ObjSizeMin.value = "";
                        ObjSizeMax.value = "";
                        ObjSizeMin.focus();
                        return Rtn;
                        break;
                case 32:
                        alert("Email Çü½ÄÀÌ Æ²¸³´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä." );
                        break;
                case 33:
                        alert("¿ìÆí¹øÈ£ °Ë»öÀÌ  Á¦´ë·Î µÇÁö ¾Ê¾Ò½À´Ï´Ù.\n\n´Ù½Ã °Ë»öÇØÁÖ½Ê½Ã¿ä");
                        break;
                case 34:
                				alert("ºñ¹Ð¹øÈ£°¡ °°Áö ¾Ê½À´Ï´Ù..\n\n´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿ä");
                        break;
                case 9999:
                        alert("°ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇÏ½Ê½Ã¿ä.");
                        return Rtn;
                        break;
                default:
                        alert("°ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇÏ½Ê½Ã¿ä.");
                        return Rtn;
                        break;
        }

        Obj.value = "";
        Obj.focus();
        return Rtn;


}
// Obj        : Check ÇÒ ÀÌ¸§ 
// ObjType    : °¢ Ç×¸ñÀÇ ÇÊµåÀÇ ¼º°Ý : NUM, ALPHA, ALPHANUM,HAN, NUMDASH, HANNUMALPHADASH
// ObjSizeMin : Ç×¸ñÀÇ ÃÖ¼Ò±æÀÌ
// ObjSizeMax : Ç×¸ñÀÇ ÃÖ´ë ±æÀÌ
// SpOption   : ¿É¼Ç : Jumin, Email
// ÁÖÀÇ ÁÖ¹Î ¹øÈ£ÀÏ°æ¿ì 
//	rtn = CheckObjValue( frm.f_JuminNo1,"NUM", frm.f_JuminNo1, frm.f_JuminNo2, "Jumin");	
//	if ( CheckObjResult( frm.f_JuminNo1 , frm.f_JuminNo1, frm.f_JuminNo2 , rtn ) != true ) return;
//  À§Ã³·³ ObjSizeMin¿¡ ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸® ObjSizeMax¿¡ ÁÖ¹Î¹øÈ£ µÞÀÚ¸®¸¦ ³Ö¾îÁØ´Ù.
// ÀÌÇÔ¼ö¸¦ ½ÇÇà ÈÄ CheckObjResult ÇÔ¼ö¸¦ ½ÇÇà ½ÃÄÑÁÖ¸é alert ¸Þ¼¼Áö¿Í ÇÔ²² ÀÚµ¿À¸·Î ºóÀÚ¸®¿¡ Focus°¡ ÀÌ·ç¾î Áø´Ù.
function CheckObjValue(Obj,ObjType, ObjSizeMin, ObjSizeMax, SpOption)
{
      
        if ( SpOption == "Jumin" ) {

                if ( isNumStr(ObjSizeMin.value) == false || isNumStr(ObjSizeMax.value) == false )
                        return 31;
                if ( ObjSizeMin.value.length != 6 || ObjSizeMax.value.length != 7 )
                        return 31;
                if ( isJumin( ObjSizeMin.value , ObjSizeMax.value ) == false ) 
                        return 31;
                return true;
                
        } else if ( SpOption == "Email" ) {
                if ( !(Obj.value.length >= ObjSizeMin && Obj.value.length <= ObjSizeMax) ){
                        return 22;
                }
                if ( isEmail(Obj.value) == false ) {
                        return 32;
                }
                return true;
        } else if ( SpOption == "PwdCheck" ) {
        				if ( ObjSizeMin.value != ObjSizeMax.value )	{
        								return 34;
        				}
        				return true;
        }

        if ( ObjType == "NUM" ) {
                if ( isNumStr( Obj.value, false ) == false ) {
                        return 11;
                }
        } else if (ObjType == "ALPHA" ) {
                if ( isAlphaStr( Obj.value, false ) == false ) {
                        return 12;
                }
        } else if (ObjType == "ALPHANUM" ) {
                if ( isAlphaNumStr( Obj.value , false) == false ) {
                        return 13;
                }
        } else if ( ObjType == "HAN" ) {
                if ( isHanStr(Obj.value,false) == false ) {
                        return 14;
                }
        } else if (ObjType == "NUMDASH" ) {
                if ( isNumDashString( Obj.value, false ) == false ) {
                        return 15;
                }
        } else if (ObjType == "HANNUMALPHADASH" ) {
                if ( isHanNumAlphaDash( Obj.value, true ) == false ) {
                        return 16;
                }
        } else if (ObjType == "LENGTH" ) {
                if ( (Obj.value.length < ObjSizeMin) || (Obj.value.length > ObjSizeMax) ) {
                        return 22;
                }
        } else {
                return 10;
        }
        
        if ( ObjType == "NUM" ) {
                if ( isNumSize ( Obj.value, ObjSizeMin, ObjSizeMax ) == false ) {
                        return 21;
                }
        } else {
                if ( !(Obj.value.length >= ObjSizeMin && Obj.value.length <= ObjSizeMax) ){
                        return 22;
                }
        } 
        
        return true;
}
function isSpChr(ch)
{
	if ( ch == " " )
		return true
	else
		return false

}
function isHanNumAlphaDash(stValue, Spok)
{
  for(var i=0; i<stValue.length;i ++) {
    if ( isAlphaChr( stValue.charAt(i) ) == true ) continue;
    if ( isNumChr( stValue.charAt(i) ) == true ) continue;
    if ( stValue.charAt(i)  == "-" ) continue;
    if ( isHanChr( stValue.charCodeAt(i) ) == true ) continue;
    if ( Spok == true )
    {
    	if ( isSpChr(stValue.charAt(i)) == true ) {
    		continue;
    	}
    }
	return false;
  }
  return true;
}
function isAlphaNumStr(stValue, Spok)
{
  for(var i=0; i<stValue.length;i ++) {
    if ( isAlphaChr( stValue.charAt(i) ) == true ) continue;
    if ( isNumChr( stValue.charAt(i) ) == true ) continue;
    if ( Spok == true )
    {
            if ( isSpChr(stValue.charAt(i)) == true ) {
                    continue;
            }
    }
    alert( stValue.charAt(i) );
        return false;
  }
  return true;
        
}
function isHanStr(stValue)
{
  for(i=0;i<stValue.length;i++) {
          if (isHanChr( stValue.charCodeAt(i) ) == true) continue;
  }

}
function isHanChr(ch)
{
        if ( ch > 128 ) return true;
        else return false;
}
function isNumDashString(stValue, Spok) 
{
  for(var i=0 ; i< stValue.length ; i ++) {
    if ( isNumDashChr(stValue.charAt(i)) == true ) continue;

    if ( Spok == true )
    {
            if ( isSpChr(stValue.charAt(i)) == true ) {continue;} else {return false;}
    } 
    
        return false;                
  }

  return true;
}
function isNumDashChr(ch)
{
        
        if ( isNumChr(ch) == true || ch == "-" ) {
                return true
        } else {
                return false
        }
}
function isNumSize(num, x, y )
{
        if ( num >= x && num <= y ) {
                return true;
        } else {
                return false;
        }
        
}
function isAlphaStr(stValue, Spok) 
{
  for(var i=0; i<stValue.length;i ++) {
    if ( isAlphaChr( stValue.charAt(i) ) == true ) continue;
    if ( Spok == true )
    {
            if ( isSpChr(stValue.charAt(i)) == true ) {
                    continue;
            }
    }
            
        return false;
  }
  return true;
}

function isAlphaChr(ch)
{
        if ( isUpperAlphaChr(ch) == true || isLowerAlphaChr(ch) == true )
                return true
        else
                return false
}

function isUpperAlphaChr(ch)
{
	if ( ch >= 'A' && ch <= 'Z' )
		return true
	else
		return false
}

function isLowerAlphaChr(ch)
{
	if ( ch >= 'a' && ch <= 'z' )
		return true
	else
		return false
}
function isEmail(str)
{
        var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
        if (filter.test(str)) { return true; }
        else { return false; }
}

function isJumin(str_jumin1,str_jumin2)
{
        return ChkJumin(str_jumin1,str_jumin2)
}
function ChkJumin(str_jumin1,str_jumin2) { 
    errfound = false; 
    var str_jumin1;
    var str_jumin2;
    var checkImg=''; 

    var i3=0 
    for (var i=0;i<str_jumin1.length;i++) { 
        var ch1 = str_jumin1.substring(i,i+1); 
        if (ch1<'0' || ch1>'9') { i3=i3+1 } 
    } 
    if ((str_jumin1 == '') || ( i3 != 0 )) { 
        return false;
    } 

    var i4=0 
    for (var i=0;i<str_jumin2.length;i++) { 
        var ch1 = str_jumin2.substring(i,i+1); 
        if (ch1<'0' || ch1>'9') { i4=i4+1 } 
    } 
    if ((str_jumin2 == '') || ( i4 != 0 )) {
      return false;
    } 
//                ¿¬µµ Á¦ÇÑ ¾øÀ½
//    if(str_jumin1.substring(0,1) < 4) { 
//        return false;
//    } 

    if(str_jumin2.substring(0,1) > 2) { 
        return false;
    } 

    if((str_jumin1.length > 7) || (str_jumin2.length > 8)) { 
        return false;
    } 

    if ((str_jumin1 == '72') || ( str_jumin2 == '18')) { 
      return false;
    } 
     
    var f1=str_jumin1.substring(0,1) 
    var f2=str_jumin1.substring(1,2) 
    var f3=str_jumin1.substring(2,3) 
    var f4=str_jumin1.substring(3,4) 
    var f5=str_jumin1.substring(4,5) 
    var f6=str_jumin1.substring(5,6) 
    var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7 
    var l1=str_jumin2.substring(0,1) 
    var l2=str_jumin2.substring(1,2) 
    var l3=str_jumin2.substring(2,3) 
    var l4=str_jumin2.substring(3,4) 
    var l5=str_jumin2.substring(4,5) 
    var l6=str_jumin2.substring(5,6) 
    var l7=str_jumin2.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;
    }     
       
    var i9=0 

    if (!errfound) 
        return true;
}

function isNumStr(stValue, Spok) 
{
  for(var i=0 ; i< stValue.length ; i ++) {
    if ( isNumChr(stValue.charAt(i)) == true ) continue;
    if ( Spok == true )
    {
            if ( isSpChr(stValue.charAt(i)) == true ) {
                    continue;
            }
    } 
        return false                
  }
  return true
}
function isNumChr(ch)
{
        if ( ch >= '0' && ch <= '9' ) {
                return true;
        } else {
                return false;
        }
}

function fnSizeCheck(obj,nextobj)
{
	if (obj.value.length == obj.maxLength ) {
		nextobj.focus();
	}

}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function checkLogin() {
	var frm = document.loginform;
	
	if ( frm.loginID.value.length < 1 ) {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.loginID.focus();
		return;
	}

	if ( frm.loginPWD.value.length < 1 ) {
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.loginPWD.focus();
		return;
	}	
	
	frm.action="./login_ok.asp";
	frm.submit();
	return;
}

function searchPWD() {
	var frm = document.search_pwd;
	
	if ( (frm.searchPWD_ID.value == "") && (frm.searchPWD_ID_CP.value == "") ) {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_ID.focus();
		return;
	}
	
	if ( (frm.searchPWD_ID.value != "") && (frm.searchPWD_SSN1.value == "" ) ) {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_SSN1.focus();
		return;
	}

	if ( (frm.searchPWD_SSN1.value != "") && (frm.searchPWD_SSN2.value == "" ) ) {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_SSN2.focus();
		return;
	}

	//°³ÀÎÈ¸¿ø, ±â¾÷È¸¿ø µÑ´Ù ÀÔ·ÂÇÒ °æ¿ì Ã¼Å©
	if ( 	(frm.searchPWD_ID.value != "") && (frm.searchPWD_SSN1.value != "") && (frm.searchPWD_SSN2.value != "") && (frm.searchPWD_ID_CP.value != "") ) {
		alert("°³ÀÎÈ¸¿ø ¶Ç´Â ±â¾÷È¸¿ø ÇÑ°¡Áö»çÇ×¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_ID_CP.value = "";
		frm.searchPWD_CPNUM1.value = "";
		frm.searchPWD_CPNUM2.value = "";
		frm.searchPWD_CPNUM3.value = "";
		return;

	}

	if ( (frm.searchPWD_ID_CP.value != "") && (frm.searchPWD_CPNUM1.value == "" ) ) {
		alert("»ç¾÷ÀÚ µî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_CPNUM1.focus();
		return;
	}

	if ( (frm.searchPWD_CPNUM1.value != "") && (frm.searchPWD_CPNUM2.value == "" ) ) {
		alert("»ç¾÷ÀÚ µî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_CPNUM2.focus();
		return;
	}

	if ( (frm.searchPWD_CPNUM2.value != "") && (frm.searchPWD_CPNUM3.value == "" ) ) {
		alert("»ç¾÷ÀÚ µî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_CPNUM3.focus();
		return;
	}

	//°³ÀÎÈ¸¿ø, ±â¾÷È¸¿ø µÑ´Ù ÀÔ·ÂÇÒ °æ¿ì Ã¼Å©
	if ( 	(frm.searchPWD_ID_CP.value != "") && (frm.searchPWD_CPNUM1.value != "") && (frm.searchPWD_CPNUM2.value != "") &&  (frm.searchPWD_CPNUM3.value != "") && (frm.searchPWD_ID.value != "") ) {
		alert("°³ÀÎÈ¸¿ø ¶Ç´Â ±â¾÷È¸¿ø ÇÑ°¡Áö»çÇ×¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.searchPWD_ID.value = "";
		frm.searchPWD_SSN1.value = "";
		frm.searchPWD_SSN2.value = "";
		return;

	}

}
//---------------------------------------- check_write
function check_write(){

		obj =  document.wForm;

		if(obj.strTitle.value == ""){
			alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strTitle.focus();
			return false;
		}
		if(obj.strName.value == ""){
			alert("ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strName.focus();
			return false;
		}
		
		if(obj.strPass.value == ""){
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strPass.focus();
			return false;
		}

		if(obj.strContent.value == ""){
			alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strContent.focus();
			return false;
		}

}

//---------------------------------------- check_modify
function check_modify(){

		obj =  document.mForm;

		if(obj.strTitle.value == ""){
			alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strTitle.focus();
			return false;
		}
		if(obj.strContent.value == ""){
			alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strContent.focus();
			return false;
		}
		
		if(obj.strPass.value == ""){
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			obj.strPass.focus();
			return false;
		}

}
//---------------------------------------- check_search
function check_search(obj){
	if(obj.searchValue.value == ""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		obj.searchValue.focus();
		return false;
	}
}


//---------------------------------------- check login
function checkID(Flag)		//¾ÆÀÌµð Áßº¹Ã¼Å©
{  
	var frm = document.regiform.f_MemID;
	var id = frm.value;
	if ( id.length < 1 ) {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.\n");
		frm.focus();
	} else {
	 	if ( Flag == "mem" ) {
	 		window.open("id_check.asp?f_id="+id+"&checkFlag=mem", "zip", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=400 ,height=185");
	 	}else if (Flag="new"){
	 		window.open("id_check.asp?f_id="+id+"&checkFlag=new", "zip", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=400 ,height=185");
		} else {
	 		window.open("id_check.asp?f_id="+id, "zip", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=400 ,height=185");
	 	}
	}
}

function zipopen(flag)		//¿ìÆí¹øÈ£Ã£±â
{  
	 window.open("address_check.asp?flag="+flag, "zip", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=395 ,height=260");
}

//ÆäÀÌÁö ÀÌµ¿
function GoPage(no)
{
   document.pagingForm.page.value = no;
   document.pagingForm.submit();
}

function printArea() 
{ 
	var initBody;
	var printBody;
	
	initBody = document.body.innerHTML; 
	printBody = document.getElementById('idPrint');
	document.body.innerHTML = printBody.innerHTML
	//alert(document.body.innerHTML);
	window.print(); 
	document.body.innerHTML = initBody; 
}