
		/*[ÀÔ·ÂÇÑ ID À¯È¿¼º °Ë»ç ÈÄ Áßº¹È®ÀÎ ÆË¾÷ Ç¥½Ã]*/
		function CheckID(TextBoxControl, showPop, disableNullAlert, valueReset)
		{
			inputValue = TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}
			if (inputValue.length ==0)
			{
				alert("»ç¿ëÀÚ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				if(valueReset){TextBoxControl.value="";}
				TextBoxControl.focus();
				return false;
			}
			//1.ÀÔ·Â°ªÃ¼Å©
			if(inputValue.replace(/[A-Za-z0-9]/g,"").length!=0){
				alert("¾ÆÀÌµð¿¡´Â ¿µ¹®ÀÚ, ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
				if(valueReset){TextBoxControl.value="";}
				TextBoxControl.focus();
				return false;
			}
			
			//1.°ø¹é¹®ÀÚÃ¼Å©
			if(TextBoxControl.value.indexOf(' ') >= 0)
			{
				alert("¾ÆÀÌµð¿¡´Â ¶ç¾î¾²±â´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
				TextBoxControl.value = TextBoxControl.value.replace(/ /g, "") ;
			  TextBoxControl.focus();
		
				return false;
			}

			//2.±æÀÌÃ¼Å©
			if (inputValue.length < 4 || inputValue.length > 12) {
				alert("¾ÆÀÌµð´Â 4±ÛÀÚ ÀÌ»ó, 12±ÛÀÚ ÀÌÇÏÀÔ´Ï´Ù.");
				if(valueReset){TextBoxControl.value="";}
				TextBoxControl.focus();
				return false;
			}
			//3.Áßº¹Ã¼Å© ÆË¾÷ Ç¥½Ã
			if(showPop){
				pop = window.open ('Popup/CheckID.aspx?memb_id=' + inputValue,'CheckID','width=500,height=250');
				pop.focus();
			}
			return true;				
		}
		
		/*[ÀÔ·ÂÇÑ ÀÌ¸ÞÀÏ À¯È¿¼º °Ë»ç ÈÄ Áßº¹È®ÀÎ ÆË¾÷ Ç¥½Ã]*/	
		function CheckEmail(TextBoxID, TextBoxDomain, ComboBoxDomain, showPop, disableNullAlert)
		{			
			emailID = TextBoxID.value.replace(/ /g, "") ;
			if (disableNullAlert && emailID.length ==0) {return false;}

			if(emailID.length ==0)
			{
				alert("ÀÌ¸ÞÀÏ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
				TextBoxID.focus();
				return false;		
			}
			emailID = TextBoxID.value

			if(ComboBoxDomain.value.length == 0)
			{
				alert("ÀÌ¸ÞÀÏ µµ¸ÞÀÎÀ» ¼±ÅÃÇÏ¼¼¿ä");
				ComboBoxDomain.focus();
				return false;			
			}
			if(emailID.indexOf(".")==0 || emailID.indexOf(";")>-1 || emailID.indexOf(" ")>-1 || emailID.replace(/[A-Za-z0-9._\-]/g,"").length!=0)
			{
				alert("ÀÌ¸ÞÀÏ Çü½ÄÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
				TextBoxID.focus();
				return false;
			}
			if(ComboBoxDomain.value == "direct_input") {emailDomain=TextBoxDomain.value;}
			else {emailDomain=ComboBoxDomain.value;}

			if(emailDomain.indexOf(".")<1 || emailDomain.indexOf(".")>= emailDomain.length-1 || emailDomain.indexOf(";")>-1
				|| emailDomain.indexOf(" ") >-1 
				|| emailDomain.charAt(emailDomain.length-1) == "."
				|| emailDomain.replace(/[A-Za-z0-9._\-]/g,"").length!=0)
			{
				alert("ÀÌ¸ÞÀÏ Çü½ÄÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
				TextBoxDomain.focus();
				return false;
			}
			
			//3.Áßº¹Ã¼Å© ÆË¾÷ Ç¥½Ã
			if(showPop){
				pop = window.open ('Popup/CheckEmail.aspx?email=' + emailID+ '@' + emailDomain,'CheckEmail','width=500,height=250');
				pop.focus();
			}
			return true;	
		}	
		
		// ¼º¸í Ã¼Å©
		function CheckName(TextBoxControl, disableNullAlert) {
			inputValue = TextBoxControl.value;
			if (disableNullAlert && inputValue.length ==0) {return false;}
			if (inputValue.length < 2)
			{	
				alert("ÀÌ¸§Àº 2ÀÚ ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.") ;
				TextBoxControl.value="";
				TextBoxControl.focus();
				return false;		
			}
			
			return true;
		}
		
		/*[ºñ¹Ð¹øÈ£ Áú¹® UI º¯°æ (Á÷Á¢ÀÔ·Â or ¼±ÅÃ)]*/
		function ShowHideQuestionText(ComboBox, SpanQuestion, TextBoxQuestion, TextBoxAnswer)
		{
			if(ComboBox.value == "direct_input")
			{
				SpanQuestion.style.display='block';
				TextBoxQuestion.focus();
			}
			else 
			{
				SpanQuestion.style.display='none';
				TextBoxAnswer.focus();
			}
		}
		
		/*[ÀÌ¸ÞÀÏ µµ¸ÞÀÎ UI º¯°æ (Á÷Á¢ÀÔ·Â or ¼±ÅÃ)]*/
		function ShowHideEmailDomainText(ComboBox, SpanDisplay1, SpanDisplay2, SpanDisplay3, TextBoxEmailDomain)
		{
			if(ComboBox.value == "direct_input")
			{
				ShowEmailDomainText(SpanDisplay1, SpanDisplay2, SpanDisplay3);
				TextBoxEmailDomain.value="";
				TextBoxEmailDomain.focus();
			}
			else 
			{
				HideEmailDomainText(SpanDisplay1, SpanDisplay2, SpanDisplay3);
			}
		}
		
		/*[ÀÌ¸ÞÀÏ µµ¸ÞÀÎ UI º¯°æ (Á÷Á¢ÀÔ·Â ¼û±â±â)]*/
		function HideEmailDomainText(SpanDisplay1, SpanDisplay2, SpanDisplay3)
		{
			SpanDisplay1.style.display='none';
			SpanDisplay2.style.display='none';
			SpanDisplay3.style.display='none';
		}
		/*[ÀÌ¸ÞÀÏ µµ¸ÞÀÎ UI º¯°æ (Á÷Á¢ÀÔ·Â º¸ÀÌ±â]*/
		function ShowEmailDomainText(SpanDisplay1, SpanDisplay2, SpanDisplay3)
		{
			SpanDisplay1.style.display='block';
			SpanDisplay2.style.display='block';
			SpanDisplay3.style.display='block';
		}
		
		/*[¼ýÀÚ°ªÀ¸·Î¸¸ ±¸¼ºµÇ¾ú´ÂÁö °ËÁõ]*/
		function CheckOnlyNumber(TextBoxControl, disableNullAlert)
		{	
			inputValue = TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}
			if(inputValue.replace(/\d/g,"").length!=0)
			{
				alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}	
			return true ;
		}
		
		/*[´ÙÀ½ ÄÜÆ®·Ñ·Î Ä¿¼­ ÀÌµ¿]*/
		function MoveToNextControl(Control1, Control2, count)
		{
			if(Control1.value.length==count) 
			{
				Control2.focus();
			}
		}		
		
		/*[ÁÖ¹Îµî·Ï¹øÈ£ ¾Õ 6ÀÚ °ËÁõ]*/
		function CheckSsn1(TextBoxControl, disableNullAlert)
		{		
			inputValue = TextBoxControl.value.replace(/ /g, "") ;
			
			if (disableNullAlert && inputValue.length ==0) {return false;}

			if (inputValue.length ==0) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ³Ö¾îÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}

			if (inputValue.length !=6) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â 6ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			
			return true ;
		}
		
		/*[ÁÖ¹Îµî·Ï¹øÈ£ µÚ 7ÀÚ °ËÁõ]*/
		function CheckSsn2(TextBoxControl, disableNullAlert)
		{		
			inputValue =TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}
			if (inputValue.length !=7) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®´Â 7ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			// 0,9ÀÏ¶§¸¸ ¿¡·¯ Ã³¸®(1800³â´ë Ãâ»ýÀÚ´Â »ç¿ë¾ÈÇÏ´Â °ÍÀ¸·Î °¡Á¤)
			if ((inputValue.charAt(0)=='9') || (inputValue.charAt(0)=='0')) {
				alert("Àß¸øµÈ ¾ç½ÄÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			return true ;
		}

		/*[¹ýÀÎµî·Ï¹øÈ£ ¾Õ 6ÀÚ °ËÁõ]*/
		function CheckSsn1Company(TextBoxControl, disableNullAlert)
		{		
			inputValue = TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}

			if (inputValue.length ==0) {
				alert("¹ýÀÎµî·Ï(»ç¾÷ÀÚÁÖ¹Î)¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}

			if (inputValue.length !=6) {
				alert("¹ýÀÎµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â 6ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			return true ;
		}
		
		/*[¹ýÀÎµî·Ï¹øÈ£ µÚ 7ÀÚ °ËÁõ]*/
		function CheckSsn2Company(TextBoxControl, disableNullAlert)
		{		
			inputValue =TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}
			if (inputValue.length ==0) {
				alert("¹ýÀÎµî·Ï(»ç¾÷ÀÚÁÖ¹Î)¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇÏ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if (inputValue.length !=7) {
				alert("¹ýÀÎµî·Ï¹øÈ£ µÞÀÚ¸®´Â 7ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			return true ;
		}
		
		/*[»ç¾÷ÀÚµî·Ï¹øÈ£ ¾Õ 3ÀÚ °ËÁõ]*/
		function CheckBusinessRegistrationNumber1(TextBoxControl, disableNullAlert)
		{		
			inputValue =TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}

			if (inputValue.length ==0) {
				alert("»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ³Ö¾îÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}

			if (inputValue.length !=3) {
				alert("»ç¾÷ÀÚµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â 3ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			return true ;
		}
		
		/*[»ç¾÷ÀÚµî·Ï¹øÈ£ Áß°£ 2ÀÚ °ËÁõ]*/
		function CheckBusinessRegistrationNumber2(TextBoxControl, disableNullAlert)
		{		
			inputValue =TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}

			if (inputValue.length !=2) {
				alert("»ç¾÷ÀÚµî·Ï¹øÈ£ µÞÀÚ¸®´Â 2ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			return true ;
		}
		
		/*[»ç¾÷ÀÚµî·Ï¹øÈ£ µÚ 5ÀÚ °ËÁõ]*/
		function CheckBusinessRegistrationNumber3(TextBoxControl, disableNullAlert)
		{		
			inputValue =TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}

			if (inputValue.length !=5) {
				alert("»ç¾÷ÀÚµî·Ï¹øÈ£ µÞÀÚ¸®´Â 5ÀÚÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
				TextBoxControl.value="";
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			return true ;
		}
		
		/*[¿ìÆí¹øÈ£ ¾Õ,µÚ 3ÀÚ °ËÁõ]*/
		function CheckPostNo(TextBoxControl, disableNullAlert)
		{		
			inputValue =TextBoxControl.value.replace(/ /g, "") ;
			if (disableNullAlert && inputValue.length ==0) {return false;}

			if (inputValue.length !=3) {
				alert("¿ìÆí¹øÈ£¸¦ ¼±ÅÃÇÏ¼¼¿ä.") ;
				TextBoxControl.focus() ;
				return false ;
			}
			if(CheckOnlyNumber(TextBoxControl, disableNullAlert)==false) return false;
			return true ;
		}
		
		/*[ÈÞ´ëÆù Ã¼Å©]*/
		function CheckMobilePhone(ComboBox1, TextBox2, TextBox3, isOptional, disableNullAlert)
		{
			tel1 = ComboBox1.value.replace(/ /g, "") ;
			tel2 = TextBox2.value.replace(/ /g, "") ;
			tel3 = TextBox3.value.replace(/ /g, "") ;
			if(isOptional==false)
			{
				if(tel1.length==0){
					alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.") ;	
					ComboBox1.focus();	
					return false;
				}
			}
			if(tel1.length!=0){
				if(tel2.length ==0){
					alert("ÈÞ´ëÆù¹øÈ£¸¦ È®ÀÎÇÏ¿© ÁÖ¼¼¿ä.") ;					
					TextBox2.value="";	
					TextBox2.focus();	
					return false;
				}
				if(tel3.length ==0){
					alert("ÈÞ´ëÆù¹øÈ£¸¦ È®ÀÎÇÏ¿© ÁÖ¼¼¿ä.") ;					
					TextBox3.value="";	
					TextBox3.focus();	
					return false;
				}
			}
			if(tel1.length==0){
				if(tel2.length !=0 || tel3.length !=0){
				alert("ÈÞ´ëÆù¹øÈ£¸¦ È®ÀÎÇÏ¿© ÁÖ¼¼¿ä.") ;
				ComboBox1.focus();	
				return false;
				}
			}		
			return true;
		}
		
		/*[ÀÏ¹ÝÀüÈ­ Ã¼Å©]*/
		function CheckLinePhone(ComboBox1, TextBox2, TextBox3, isOptional, msg1)
		{
			tel1 = ComboBox1.value.replace(/ /g, "") ;
			tel2 = TextBox2.value.replace(/ /g, "") ;
			tel3 = TextBox3.value.replace(/ /g, "") ;
			
			if(isOptional==false)
			{
				if(tel1.length==0){
					alert(msg1+"¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.") ;	
					ComboBox1.focus();	
					return false;
				}
			}
			if(tel1.length!=0){
				if(tel2.length==0){
					alert(msg1+"¸¦ È®ÀÎÇÏ¿© ÁÖ¼¼¿ä.") ;	
					TextBox2.value="";	
					TextBox2.focus();	
					return false;
				}
				if(tel1.indexOf("1")!=0 && tel3.length==0){
					alert(msg1+"¸¦ È®ÀÎÇÏ¿© ÁÖ¼¼¿ä.") ;	
					TextBox3.value="";	
					TextBox3.focus();	
					return false;
				}
			}			
			if(tel1.length==0){
				if(tel2.length !=0 || tel3.length !=0){
					alert(msg1+"¸¦ È®ÀÎÇÏ¿© ÁÖ¼¼¿ä.") ;
					ComboBox1.focus();	
					return false;
				}
			}
			return true;
		}		
		
		//(ÀÏ´Ü 2006-02-09ÀÏ asp ±×´ë·Î »ç¿ë, ÇâÈÄ º¸¿Ï ÇÊ¿ä)
		function CheckValidSSN( vSSN )
		{
			var strSSN = vSSN.toString();
			a = strSSN.substring(0, 1);
			b = strSSN.substring(1, 2);
			c = strSSN.substring(2, 3);
			d = strSSN.substring(3, 4);
			e = strSSN.substring(4, 5);
			f = strSSN.substring(5, 6);
			g = strSSN.substring(6, 7);
			h = strSSN.substring(7, 8);
			i = strSSN.substring(8, 9);
			j = strSSN.substring(9, 10);
			k = strSSN.substring(10, 11);
			l = strSSN.substring(11, 12);
			m = strSSN.substring(12, 13);
			month = strSSN.substring(2,4);
			day = strSSN.substring(4,6);
			strSSN1 = strSSN.substring(0, 7);
			strSSN2 = strSSN.substring(7, 13);
		
			// 482 ¿Ü±¹ÀÎµî·ÏÁõ check
			if(g>=5 && g<=8)
			{
				if(CheckForeignSSN(strSSN))
					return 'Y';
				else
					return 'N';
			}else{
				/* ¿ùÀÏ valid check */
				if(month <= 0 || month > 12) return 'N';
				if(day <= 0 || day > 31) return 'N';
		
			/* ÁÖ¹Îµî·ÏµÞÀÚ¸® Ã¹¹øÂ° ¹øÈ£ À¯È¿¼º Ã¼Å© (1,2,3,4) are only valid  */
				if(g > 4 || g == 0) return 'N';
			
				/* ÁÖ¹Îµî·Ï¹øÈ£¿¡ °ø¹éÀÌ µé¾î°¡µµ °¡ÀÔÀÌ µÇ´Â °æ¿ì°¡ ¹ß»ýÇÏÁö ¾Êµµ·Ï */
				if (isNaN(strSSN1) || isNaN(strSSN2))
				{
					return 'N';
				}
			
				temp=a*2+b*3+c*4+d*5+e*6+f*7+g*8+h*9+i*2+j*3+k*4+l*5;
				temp=temp%11;
				temp=11-temp;
				temp=temp%10;
			    
				if(temp == m)
					return 'Y';
				else
					return 'N'; 
			}	        
		}

		// 482 ¿Ü±¹ÀÎµî·ÏÁõ check logic(ÀÏ´Ü 2006-02-09ÀÏ asp ±×´ë·Î »ç¿ë, ÇâÈÄ º¸¿Ï ÇÊ¿ä)
		function CheckForeignSSN(fgnno)
		{
			if(fgnno.length!=13){	return false }	
			buf = new Array(13);
			for(i=0; i<13; i++) { buf[i]=parseInt(fgnno.charAt(i)); }
			if( (buf[11]!=7) && (buf[11]!=8) && (buf[11]!=9) ) {
					return false;
			}
			return true;
		}
		
		/*****************************************
			ºñ¹Ð¹øÈ£ °ËÁõ ÇÔ¼ö
			2008-02-12 ¹ÚÃ¶Áø ·ÎÁ÷ Àç±¸¼º
			2008-08-04 ¹ÚÇü¸¸ ·ÎÁ÷ Àç±¸¼º(BC1023) 
		******************************************/
		/*[ÀÔ·ÂÇÑ ºñ¹Ð¹øÈ£ À¯È¿¼º °Ë»ç]*/

		// ÆÐ½º¿öµå Å¬·¡½º
		function PasswordValidation()
		{
			this.strSecType = "" ;
			this.strHtml = "";

			this.setInit = function(){
				this.strSecType="";
				this.strHtml = "";
				if(document.getElementById("bmsgPassword1")!=null){document.getElementById("bmsgPassword1").innerHTML =objPw.getHtml("");}
				if(document.getElementById("bmsgPassword2")!=null){document.getElementById("bmsgPassword2").style.display="none";}
			}
		}

		PasswordValidation.prototype.getType = getPasswordValidateType;
		PasswordValidation.prototype.getHtml = getPasswordValidateHtml;
		
		var objPw = new PasswordValidation();

		function CheckPasswordWithIDnSSN(passwordControl, disableNullAlert, id, ssn)
		{
			if(!CheckPasswordWithID(passwordControl, disableNullAlert, id))
				return false;

			var pwd1=passwordControl.value;
			if(window.ActiveXObject && GetCookie('KeySecurity')=='Y') //Å°º¸µå º¸¾Èµ¿ÀÛ½Ã
			{
				pwd1=GetPwdValue_K(passwordControl.form,passwordControl,"KingsE2E", "", "");
			}
			
			//SSN°ú ºñ¹Ð¹øÈ£°¡ 4ÀÚ ÀÌ»ó Áßº¹µÇ´ÂÁö Ã¼Å©
			if(checkDuplicate(ssn, pwd1, 4) == false)
			{
				objPw.setInit();
				alert("¼ÒÁßÇÑ È¸¿øÁ¤º¸ º¸È£¸¦ À§ÇÏ¿©\nÈ¸¿ø´Ô ÁÖ¹Î(¹ýÀÎ)µî·Ï¹øÈ£ ÀÏºÎ°¡ Æ÷ÇÔµÈ ºñ¹Ð¹øÈ£´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
				passwordControl.value ="";
				passwordControl.value ="";
				passwordControl.focus();
				return false;
			}
			return true;
		}
		
		function CheckPasswordWithID(passwordControl, disableNullAlert, id)
		{
			if(!CheckPassword(passwordControl, disableNullAlert))
				return false;

			var pwd1=passwordControl.value;
			if(window.ActiveXObject && GetCookie('KeySecurity')=='Y') //Å°º¸µå º¸¾Èµ¿ÀÛ½Ã
			{
				pwd1=GetPwdValue_K(passwordControl.form,passwordControl,"KingsE2E", "", "");
			}
			
			//ID¿Í ºñ¹Ð¹øÈ£°¡ 4ÀÚ ÀÌ»ó Áßº¹µÇ´ÂÁö Ã¼Å©
			if(checkDuplicate(id, pwd1, 4) == false)
			{
				alert("¼ÒÁßÇÑ È¸¿øÁ¤º¸ º¸È£¸¦ À§ÇÏ¿©\nÈ¸¿ø´Ô ID ÀÏºÎ°¡ Æ÷ÇÔµÈ ºñ¹Ð¹øÈ£´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
				objPw.setInit();
				passwordControl.value ="";
				passwordControl.value ="";
				passwordControl.focus();
				return false;
			}
			return true;
		}
		
		function CheckPassword(passwordControl, disableNullAlert)
		{
			var bFlag = true ;
			if (disableNullAlert && passwordControl.value.length ==0) {return false;}

			var secType = objPw.getType(passwordControl) ; 
			if( secType.length == 2 ) 
			{				
				if(parseInt(secType.split("")[0]) < 2) //»ç¿ëºÒ°¡
				{
					bFlag=false;
				}
			}
			else
			{
				bFlag=false;
				
			}
			if(bFlag==false)
			{
				alert("ºñ¹Ð¹øÈ£´Â ¿µ¹®,¼ýÀÚ,Æ¯¼ö¹®ÀÚÁß µÎ°¡Áö¸¦ Æ÷ÇÔÇÑ\n8~15ÀÚ¸® ¹®ÀÚ·Î ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù");
				objPw.setInit();
				passwordControl.value = "" ; 
				passwordControl.focus();
				return false ; 
			}
			return true;
		}
		
		/*[ÀÔ·ÂÇÑ ºñ¹Ð¹øÈ£ ÀÏÄ¡ °Ë»ç]*/
		function CheckPasswordSync(TextBoxControl1, TextBoxControl2, disableNullAlert) 
		{
			var bFlag = true ;
			if(window.ActiveXObject && GetCookie('KeySecurity')=='Y') //Å°º¸µå º¸¾Èµ¿ÀÛ½Ã
			{
				if(stringOP_K('strcmp', TextBoxControl1, TextBoxControl2)==false) //kdefense_object.js
				{			
					bFlag=false;
				}
			}
			else
			{
				var pwd1 = TextBoxControl1.value.replace(/ /g, "") ;
				var	pwd2 = TextBoxControl2.value.replace(/ /g, "") ;

				if (disableNullAlert && pwd1.length ==0) {return false;}
				if (disableNullAlert && pwd2.length ==0) {return false;}
				if (pwd1.length == 0 || pwd1 != pwd2) 
				{
					bFlag=false;
				}
			}

			if(bFlag==false)
			{
				alert('ÀÔ·ÂÇÏ½Å µÎ°³ÀÇ ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.');
				objPw.setInit();
				TextBoxControl1.value='';
				TextBoxControl2.value='';
				TextBoxControl1.focus();
				return false;
			}
			return true;
		}
		
		
		/* 2008-08-05 BC1023 °ü·Ã ºñ¹Ð¹øÈ£Ã¼Å© TypeCode ( ¾ÕÀÚ¸® ¼ýÀÚ°¡ 2 ÀÌ»óÀÏ¶§ »ç¿ë°¡´É ) 
		
		00	PW ¼ýÀÚ°¡ 7ÀÚ ÀÌÇÏÀÏ¶§ 
		01	¼ýÀÚ¸¸ ÀÔ·ÂµÆÀ»¶§
		02	¿µ¹®¸¸ ÀÔ·ÂµÆÀ»¶§
		03	Æ¯¼ö¹®ÀÚ¸¸ ÀÔ·ÂµÆÀ»‹š
		04	¿¬¼ÓµÇ´Â ¼ýÀÚ¿Í ¹®ÀÚ¸¦ »ç¿ëÇßÀ» ¶§ (ÀÏ·Ã ÀÚÆÇ Æ÷ÇÔ)
		05	µ¿ÀÏÇÑ ¹®ÀÚ, ¼ýÀÚ°¡ 4°³ ¹Ýº¹µÆÀ»¶§
		11	8ÀÚ ÀÌ»óÀ¸·Î ¼ýÀÚ¸¸ ÀÔ·ÂµÆÀ»¶§
		12	8ÀÚ ÀÌ»óÀ¸·Î ¿µ¹®¸¸ ÀÔ·ÂµÆÀ»¶§
		13	8ÀÚ ÀÌ»óÀ¸·Î Æ¯¼ö¹®ÀÚ¸¸ ÀÔ·ÂµÆÀ»‹š
		21	8ÀÚ ÀÌ»óÀ¸·Î ¿µ¹®, ¼ýÀÚ, Æ¯¼ö¹®ÀÚ Áß 2°¡Áö ¹®ÀÚ°¡ Æ÷ÇÔµÈ °æ¿ì
		31	8ÀÚ ÀÌ»óÀ¸·Î ¿µ¹®, ¼ýÀÚ, Æ¯¼ö¹®ÀÚ°¡ ¸ðµÎ Æ÷ÇÔµÈ °æ¿ì
		*/

		// ºñ¹Ð¹øÈ£Å¸ÀÔÃ¼Å© : Å°º¸µå ÀÔ·Â½Ã ¸¶´Ù Ã¼Å© (¼ýÀÚ¿µ¹®Æ¯¼ö¹®ÀÚÆ÷ÇÔ¿©ºÎ,¿¬¼Ó¹®ÀÚÃ¼Å©¸¸)
		// Å°º¸µå º¸¾ÈÀÛµ¿½Ã(¾ÏÈ£È­) Kdefense Á¦°ø ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© À¯È¿¼º°Ë»ç
		// - ÇöÀç ¿¬¼Ó4ÀÚ¸® ¹®ÀÚ Ã¼Å©´Â Kdefense ¿¡¼­ Áö¿øÇÏÁö ¾ÊÀ½ : ÀÔ·Â°ªÀ» º¹È£È­ÇÏ¿© Ã¼Å©
		function getPasswordValidateType(objPassWord)
		{
			var pwdLength = objPassWord.value.length
			
			if(pwdLength==0)
				return "";

			//ÀüÃ¼¿©ºÎ
			var isOnlyNum = false ;
			var isOnlyEng = false ;
			var isOnlySpc = false ;
			
			//Å°º¸µå º¸¾È ÀÛµ¿½Ã
			if(window.ActiveXObject && GetCookie('KeySecurity')=='Y')
			{
				var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; // ¿µ¹®
				var nums = "0123456789"; //¼ýÀÚ
				var percul = "!@#$%^&*()\"_\/+=\-\[\]{}';:?<>.,~`|\\]";//Æ¯¼ö¹®ÀÚ
					
				isOnlyNum = hasCharsOnly_K(objPassWord, nums);  //kdfense_object.js
				isOnlyEng = hasCharsOnly_K(objPassWord, chars);
				isOnlySpc = hasCharsOnly_K(objPassWord, percul);
			}
			else //Å°º¸µå º¸¾È ¹ÌÀÛµ¿½Ã
			{
				var filterNum = /[0-9]/ ;			// ¼ýÀÚ¸¸ ÀÖÀ»°æ¿ì
				var filterEng = /[a-zA-Z]/;				// ¿µ¹®¸¸ ÀÖÀ»°æ¿ì
				var filterSpc = /[!@#$%^&*()\"_\/+=\-\[\]{}';:?<>.,~`|\\]/ ;  // Æ¯¼ö¹®ÀÚ¸¸ ÀÖÀ»°æ¿ì 

				var isIncNum = filterNum.test(objPassWord.value);
				var isIncEng = filterEng.test(objPassWord.value);
				var isIncSpc = filterSpc.test(objPassWord.value);
				
				isOnlyNum = isIncNum && !isIncEng && !isIncSpc;
				isOnlyEng = !isIncNum && isIncEng && !isIncSpc;
				isOnlySpc = !isIncNum && !isIncEng && isIncSpc;
			}
	
			//¹Ýº¹¹®ÀÚÃ¼Å©
			if( pwdLength > 3) //4ÀÚ¸® ºÎÅÍ ¿¬¼Ó¹®ÀÚ,¹Ýº¹¹®ÀÚ °Ë»ç
			{
				// Å°º¸µå º¸¾È ÀÛµ¿½Ã º¯È¯ ÇÏ¿©°Ë»ç
				var tmpValue = objPassWord.value ;
				if(window.ActiveXObject && GetCookie('KeySecurity')=='Y')
				{
					tmpValue = GetPwdValue_K(objPassWord.form,objPassWord,"KingsE2E", "", ""); //º¯È¯  //kdfense_object.js
				}
				
				if (checkSequence(tmpValue, 4)==false) //¿¬¼ÓµÈ ¼ýÀÚ,¹®ÀÚ°¡ 4¹ø ¹Ýº¹µÇ¾úÀ»¶§
					return "04";
				else if (checkRepetition(tmpValue, 4)==false) //µ¿ÀÏÇÑ ¼ýÀÚ,¹®ÀÚ°¡ 4¹ø ¹Ýº¹µÆÀ»¶§
					return "05";
			}

			//ÇÑ°¡ÁöÁ¾·ù¸¸ ÀÔ·ÂÃ¼Å©
			if( pwdLength < 8 )
			{
				if(isOnlyNum)  //¼ýÀÚ¸¸ ÀÔ·ÂµÇ¾úÀ»¶§
					return "01";  
				else if(isOnlyEng) //¿µ¹®¸¸ ÀÔ·ÂµÇ¾úÀ»¶§
					return "02";  
				else if(isOnlySpc) //Æ¯¼ö¹®ÀÚ¸¸ ÀÔ·ÂµÇ¾úÀ»¶§
					return "03";  
				else
					return "00";   //8ÀÚ ÀÌÇÏÀÏ¶§
			}
			else  
			{
				if(isOnlyNum)  //¼ýÀÚ¸¸ ÀÔ·ÂµÇ¾úÀ»¶§ //Ãë¾à
					return "11";  
				else if(isOnlyEng) //¿µ¹®¸¸ ÀÔ·ÂµÇ¾úÀ»¶§ //Ãë¾à
					return "12";  
				else if(isOnlySpc) //Æ¯¼ö¹®ÀÚ¸¸ ÀÔ·ÂµÇ¾úÀ»¶§ //Ãë¾à 
					return "13";  
			}

			//**3´Ü°è 
			if(pwdLength > 11 ) //12ÀÚ ÀÌ»óÀ¸·Î ¿µ¹®, ¼ýÀÚ, Æ¯¼ö¹®ÀÚÁß µÎ°¡Áö ÀÌ»ó Æ÷ÇÔµÈ °æ¿ì
				return "31";
			else //8ÀÚ ÀÌ»óÀ¸·Î ¿µ¹®, ¼ýÀÚ, Æ¯¼ö¹®ÀÚÁß µÎ°¡Áö ÀÌ»ó Æ÷ÇÔµÈ °æ¿ì
				return "21";
			
		}

		// ºñ¹Ð¹øÈ£TypeCode¿¡ µû¸¥ Ç³¼±µµ¿ò¸» HTML ¹ÝÈ¯
		function getPasswordValidateHtml(type)
		{
			var strBasicMsg = "ºñ¹Ð¹øÈ£´Â 8~15ÀÚ·Î<br>¿µ¹®,¼ýÀÚ,Æ¯¼ö¹®ÀÚ¸¦ Æ÷ÇÔÇØ¼­ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.";
			var strOnlyNumMsg = "<span class=\"gray\">ºñ¹Ð¹øÈ£´Â ¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.</span>";
			var strOnlyEngMsg = "<span class=\"gray\">ºñ¹Ð¹øÈ£´Â ¿µ¹®¸¸ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.</span>";
			var strOnlySpcMsg = "<span class=\"gray\">ºñ¹Ð¹øÈ£´Â Æ¯¼ö¹®ÀÚ¸¸ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.</span>";
			
			var strHeadHtml = "<strong class=\"fsm name\">º¸¾Èµî±Þ</strong> <span class=\"gray3\">I</span> <strong class=\"fsm org\">";
			
			var strNotUse = "<img src=\"https://pics.auction.co.kr/icon/pw_use_00.gif\" alt=\"»ç¿ëºÒ°¡\" class=\"vm\"></strong><br />";
			var strWeak = "<img src=\"https://pics.auction.co.kr/icon/pw_use_01.gif\" alt=\"Ãë¾à\" class=\"vm\"></strong><br />";
			var strNomal = "<img src=\"https://pics.auction.co.kr/icon/pw_use_02.gif\" alt=\"ÀûÁ¤\" class=\"vm\"></strong><br />";
			var strSafe = "<img src=\"https://pics.auction.co.kr/icon/pw_use_03.gif\" alt=\"¾ÈÀü\" class=\"vm\"></strong><br />";
			
			var strRetHtml = "";
			
			if(type=="")
				strRetHtml = strBasicMsg ;
			else if(type=="00")
				strRetHtml = strHeadHtml + strNotUse + "<span class=\"gray\">ºñ¹Ð¹øÈ£´Â 8ÀÚ ÀÌ»ó ÀÔ·ÂÇØÁÖ¼¼¿ä.</span>" ;
			else if(type=="01")
				strRetHtml = strHeadHtml + strNotUse + strOnlyNumMsg ;
			else if(type=="02")
				strRetHtml = strHeadHtml + strNotUse + strOnlyEngMsg ;
			else if(type=="03")
				strRetHtml = strHeadHtml + strNotUse + strOnlySpcMsg ;
			else if(type=="04")
				strRetHtml = strHeadHtml + strNotUse + "<span class=\"gray\">¿¬¼ÓµÇ´Â ¹®ÀÚ¿Í ¼ýÀÚ¸¦  »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.</span>"
			else if(type=="05")
				strRetHtml = strHeadHtml + strNotUse + "<span class=\"gray\">µ¿ÀÏÇÑ ¹®ÀÚ, ¼ýÀÚ¸¦ ¹Ýº¹ÇØ¼­ »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.</span>";
			else if(type=="11")
				strRetHtml = strHeadHtml + strWeak + strOnlyNumMsg;
			else if(type=="12")
				strRetHtml = strHeadHtml + strWeak + strOnlyEngMsg;
			else if(type=="13")
				strRetHtml = strHeadHtml + strWeak + strOnlySpcMsg;
			else if(type=="21")
				strRetHtml = strHeadHtml + strNomal + "<span class=\"gray\">»ç¿ë°¡´ÉÇÑ ÀûÁ¤¼öÁØÀÇ ºñ¹Ð¹øÈ£ÀÔ´Ï´Ù.</span>";
			else if(type=="31")
				strRetHtml = strHeadHtml + strSafe + "<span class=\"gray\">¸Å¿ì ¾ÈÀüÇÑ ºñ¹Ð¹øÈ£ ÀÔ´Ï´Ù.</span>" ;
			else 
				strRetHtml = strBasicMsg ;
		
			return "<p>"+strRetHtml+"</p>";
		}

		

		
		//¾ËÆÄºª°ú ¼ýÀÚ¸¦ »ç¿ëÇß´ÂÁö Ã¼Å©
		function checkAlphaNumeric(str)
		{
			//¿µ¼ýÀÚ Á¶ÇÕ¿©ºÎ Ã¼Å©
			//var filter1=/[^a-zA-Z0-9_]/	; // a~z,A-Z,0~9,"_"¿¡ ÇØ´çÇÏ´Â ¹®ÀÚ¸¸ Çã¿ëÇÑ´Ù.
			var filter3=/[a-zA-Z]{1,15}/	;    //a~z Áß ÇÏ³ª¸¦ Æ÷ÇÔÇÏ¸ç, 4~15ÀÚÀÎ Á¤±Ô Ç¥Çö½Ä
 			var filter4=/[0-9]{1,15}/	;     //0~9 Áß ÇÏ³ª¸¦ Æ÷ÇÔÇÏ¸ç, 4~15ÀÚÀÎ Á¤±Ô Ç¥Çö½Ä
 			var filter5=/[!@#$%^&*()\"_\/+=\-\[\]{}';:?<>.,~`|\\]{1,15}/	;     //Æ¯¼ö ¹®ÀÚ Æ÷ÇÔÇÑ 15ÀÚ
 			

			if((filter3.test(str) && filter4.test(str) && filter5.test(str)))
			{
				return true;
			}
			
			return false;
		}

		//¿¬¼Ó ¹®ÀÚ Ã¼Å©(¿¹-abcd, 2345)
		function checkSequence(str,len)
		{
			var seqCnt=1;
			
			for(i=0;i < str.length;i++){
				next_p = str.charAt(i);		   
				next_char = (parseInt(next_p.charCodeAt(0)))+1;

				temp_p = str.charAt(i+1);    
				temp_char = (parseInt(temp_p.charCodeAt(0)));				
				if (next_char == temp_char)
						seqCnt = seqCnt + 1;
				else
						seqCnt = 1;

				if (seqCnt > len-1)
				{
    			return false;
				}
			}
			
			return true;
		}

		//¹Ýº¹ ¹®ÀÚ Ã¼Å©(¿¹-aaaa, 1111)
		function checkRepetition(str, len) {
			var repeatCnt=1;
			
			for(i=0;i < str.length;i++){
				temp_char = str.charAt(i);
				next_char = str.charAt(i+1);

				if (temp_char == next_char)
						repeatCnt = repeatCnt + 1;
				else
						repeatCnt = 1;
		        
				if (repeatCnt > len-1)
				{
    			return false;
				}
			}
			
			return true;
		}

		//µÎ ÀÔ·Â°ªÀÇ Áßº¹ ¹®ÀÚ Ã¼Å©(¿¹-myid12, id12pwd)
		function checkDuplicate(str1, str2, len) {
			var temp="";

			if(str1.length < len)
				return true;

			for(i=0;i < str1.length-(len-1);i++)
			{
				temp = str1.substr(i, len);
				index = str2.indexOf(temp);
				
				if(index >= 0)	//Áßº¹¹®ÀÚ¸¦ °Ë»çÇÑ´Ù.
					return false;
			}

			return true;
		}

		// ÁÖ¹Î¹øÈ£, »ç¾÷ÀÚ¹øÈ£ ½Å±Ô Ã¼Å© ·ÎÁ÷(2008-06-24)
		// ÁÖ¹Î¹øÈ£ Ã¼Å©
		function CheckNewValidSSN(ssn) 
		{
			ssn = ssn.replace(/ /g, "");
			
			if(ssn=="" || ssn==null || ssn.length!=13) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ³Ö¾îÁÖ¼¼¿ä.");
				return false;
			}
			var jumin1 = ssn.substr(0,6);
			var jumin2 = ssn.substr(6,7);
			var yy = jumin1.substr(0,2);        // ³âµµ
			var mm = jumin1.substr(2,2);        // ¿ù
			var dd = jumin1.substr(4,2);        // ÀÏ
			var genda = jumin2.substr(0,1);     // ¼ºº°
			var msg, ss, cc;
			
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(jumin1)) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 6ÀÌ ¾Æ´Ñ °æ¿ì
			if (jumin1.length != 6) {
				alert("ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸® 6ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
			// Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ±âº» ±¸¼º °Ë»ç
			if (yy < "00" || yy > "99" ||
				mm < "01" || mm > "12" ||
				dd < "01" || dd > "31") {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(jumin2)) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 7ÀÌ ¾Æ´Ñ °æ¿ì
			if (jumin2.length != 7) {
				alert("ÁÖ¹Î¹øÈ£ µÞÀÚ¸® 7ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
			// ¼ºº°ºÎºÐÀÌ 1 ~ 4 °¡ ¾Æ´Ñ °æ¿ì
			if (genda < "1" || genda > "4") {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ¿¬µµ °è»ê - 1 ¶Ç´Â 2: 1900³â´ë, 3 ¶Ç´Â 4: 2000³â´ë
			cc = (genda == "1" || genda == "2") ? "19" : "20";
			// Ã¹¹øÂ° ÀÚ·á¿¡¼­ ¿¬¿ùÀÏ(YYMMDD) Çü½Ä Áß ³¯Â¥ Çü½Ä °Ë»ç
			if (isYYYYMMDD(parseInt(cc+yy), parseInt(mm), parseInt(dd)) == false) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// Check Digit °Ë»ç
			if (!isSSN(jumin1, jumin2)) {
				alert("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Î¹øÈ£ÀÔ´Ï´Ù.");
				return false;
			}
			
			return true;
		}
		
		// Àç¿Ü±¹ÀÎ ¹øÈ£ Ã¼Å©
		function CheckValidForeignSSN(ssn) 
		{
			ssn = ssn.replace(/ /g, "");
			
			if(ssn=="" || ssn==null || ssn.length!=13) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ³Ö¾îÁÖ¼¼¿ä.");
				return false;
			}
			var jumin1 = ssn.substr(0,6);
			var jumin2 = ssn.substr(6,7);
			
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(jumin1)) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 6ÀÌ ¾Æ´Ñ °æ¿ì
			if (jumin1.length != 6) {
				alert("ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸® 6ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(jumin2)) {
				alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 7ÀÌ ¾Æ´Ñ °æ¿ì
			if (jumin2.length != 7) {
				alert("ÁÖ¹Î¹øÈ£ µÞÀÚ¸® 7ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
			
			var sum=0;
			var odd=0;
			
			buf = new Array(13);
			
			for(i=0; i<13; i++) { buf[i]=parseInt(ssn.charAt(i)); }
			
			odd = buf[7]*10 + buf[8];
			
			if(odd%2 != 0)
			{ 
				alert("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Î¹øÈ£ÀÔ´Ï´Ù.");
				return false; 
			}
			
			if( (buf[11]!=6) && (buf[11]!=7) && (buf[11]!=8) && (buf[11]!=9) ) 
			{
				alert("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Î¹øÈ£ÀÔ´Ï´Ù.");
				return false;
			}
			
			multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
			
			for(i=0, sum=0; i<12; i++) { sum += (buf[i] *= multipliers[i]); }
			
			sum = 11 - (sum%11);
			if(sum >= 10) { sum -= 10; }
			sum += 2;
			if(sum >= 10) { sum -= 10; }
			
			if(sum != buf[12])
			{ 
				alert("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Î¹øÈ£ÀÔ´Ï´Ù.");
				return false 
			}
			
			return true;
		}
	
		// 14¼¼ ¹Ì¸¸ Ã¼Å©
		function CheckUnder14(ssn)
		{
			var jumin1 = ssn.substr(0,6);
			var jumin2 = ssn.substr(6,7);
			var yy     = jumin1.substr(0,2);
			var mm     = jumin1.substr(2,2);
			var dd     = jumin1.substr(4,2);
			var genda  = jumin2.substr(0,1);
	
			var today = new Date();
			var c_year  = today.getYear();
			var c_month = today.getMonth()+1;
			var c_day   = today.getDate();
			var c_yy, c_mm, c_dd;
			
			if (genda == "1" || genda == "2" || genda == "5" || genda == "6")
				c_yy = parseInt("19"+yy);
			else
				c_yy = parseInt("20"+yy);
				
			c_mm = parseInt(mm);
			c_dd = parseInt(dd);
				
			if(c_year-c_yy<14){
				alert("14¼¼ÀÌÇÏ ¹Ì¼º³âÀÚ´Â È¸¿ø°¡ÀÔÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.");
				return false;
			}
			else if((c_year-c_yy==14)&&(c_mm>c_month)){
				alert("14¼¼ÀÌÇÏ ¹Ì¼º³âÀÚ´Â È¸¿ø°¡ÀÔÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.");
				return false;
			}
			else if((c_year-c_yy==14)&&(c_mm==c_month)&&(c_dd>c_day)){
				alert("14¼¼ÀÌÇÏ ¹Ì¼º³âÀÚ´Â È¸¿ø°¡ÀÔÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.");
				return false;
			}
			
			return true;
		}
		
		// »ç¾÷ÀÚµî·Ï¹øÈ£ Ã¼Å©
		function CheckValidBusinessRegistrationNumber(regiNumber) 
		{
			regiNumber = regiNumber.replace(/ /g, "");
			
			if(regiNumber=="" || regiNumber==null || regiNumber.length!=10) {
				alert("»ç¾÷ÀÚ¹øÈ£¸¦ ³Ö¾îÁÖ¼¼¿ä.");
				return false;
			}
			var regiNumber1 = regiNumber.substr(0,3);
			var regiNumber2 = regiNumber.substr(3,2);
			var regiNumber3 = regiNumber.substr(5,5);
			
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(regiNumber1)) {
				alert("»ç¾÷ÀÚ¹øÈ£ Ã¹¹øÂ° ÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 3ÀÌ ¾Æ´Ñ °æ¿ì
			if (regiNumber1.length != 3) {
				alert("»ç¾÷ÀÚ¹øÈ£ Ã¹¹øÂ° ÀÚ¸® 3ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(regiNumber2)) {
				alert("»ç¾÷ÀÚ¹øÈ£ µÎ¹øÂ° ÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 2ÀÌ ¾Æ´Ñ °æ¿ì
			if (regiNumber2.length != 2) {
				alert("»ç¾÷ÀÚ¹øÈ£ µÎ¹øÂ° ÀÚ¸® 2ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
			// ¼ýÀÚ°¡ ¾Æ´Ñ °ÍÀ» ÀÔ·ÂÇÑ °æ¿ì
			if (!isNumeric(regiNumber3)) {
				alert("»ç¾÷ÀÚ¹øÈ£ ¼¼¹øÂ° ÀÚ¸®¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇÏ¼¼¿ä.");
				return false;
			}
			// ±æÀÌ°¡ 5ÀÌ ¾Æ´Ñ °æ¿ì
			if (regiNumber3.length != 5) {
				alert("»ç¾÷ÀÚ¹øÈ£ ¼¼¹øÂ° ÀÚ¸® 5ÀÚ¸¦ ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
				return false;
			}
	
			var sum = 0;
			var getlist =new Array(10);
			var chkvalue =new Array("1","3","7","1","3","7","1","3","5");
			
			for(var i=0; i<10; i++) { getlist[i] = regiNumber.substring(i, i+1); }
			for(var i=0; i<9; i++) { sum += getlist[i]*chkvalue[i]; }
			sum = sum + parseInt((getlist[8]*5)/10);
			sidliy = sum % 10;
			sidchk = 0;
			if(sidliy != 0) { sidchk = 10 - sidliy; }
			else { sidchk = 0; }
			if(sidchk != getlist[9]) 
			{
				alert("À¯È¿ÇÏÁö ¾ÊÀº »ç¾÷ÀÚ¹øÈ£ÀÔ´Ï´Ù.");
				return false; 
			}
			
			return true;
		}
		
		// Trim ÇÔ¼ö
		function TrimString(s)
		{
			var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
			return (m == null) ? "" : m[1];
		}
		
		function isYYYYMMDD(y, m, d) 
		{
			switch (m) {
				case 2:        // 2¿ùÀÇ °æ¿ì
					if (d > 29) return false;
					/*if (d == 29) {
							// 2¿ù 29ÀÇ °æ¿ì ´çÇØ°¡ À±³âÀÎÁö¸¦ È®ÀÎ
							if ((y % 4 != 0) || (y % 100 == 0) && (y % 400 != 0))
								return false;
					}*/
					break;
				case 4:        // ÀÛÀº ´ÞÀÇ °æ¿ì
				case 6:
				case 9:
				case 11:
					if (d == 31) return false;
			}
			// Å« ´ÞÀÇ °æ¿ì
			return true;
		}
		
		function isNumeric(s) 
		{
			for (i=0; i<s.length; i++) {
				c = s.substr(i, 1);
				if (c < "0" || c > "9") return false;
			}
			return true;
		}
		
		function isLeapYear(y) 
		{
			if (y < 100)
			y = y + 1900;
			if ( (y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0) ) {
				return true;
			} else {
				return false;
			}
		}
		
		function getNumberOfDate(yy, mm) 
		{
			month = new Array(29,31,28,31,30,31,30,31,31,30,31,30,31);
			if (mm == 2 && isLeapYear(yy)) mm = 0;
			return month[mm];
		}
		
		function isSSN(s1, s2) 
		{
			n = 2;
			sum = 0;
			for (i=0; i<s1.length; i++)
				sum += parseInt(s1.substr(i, 1)) * n++;
			for (i=0; i<s2.length-1; i++) {
				sum += parseInt(s2.substr(i, 1)) * n++;
				if (n == 10) n = 2;
			}
			c = 11 - sum % 11;
			if (c == 11) c = 1;
			if (c == 10) c = 0;
			if (c != parseInt(s2.substr(6, 1))) return false;
			else return true;
		}
	
    /*-----------------------------------------------------------------------------
    // ¹ýÀÎ µî·Ï¹øÈ£ Ã¼Å© - arguments[0] : µî·Ï¹øÈ£ ±¸ºÐÀÚ
    // XXXXXX-XXXXXXX
    // @return : boolean
    //----------------------------------------------------------------------------*/
    String.prototype.isCorporationSSN = function() {
        var arg = arguments[0] ? arguments[0] : "";
        var corpnum = eval("this.match(/[0-9]{6}" + arg + "[0-9]{7}$/)");
        if(corpnum == null) {
            return false;
        }
        else {
            corpnum = this;
        }
        
        if(corpnum.length < 13)
        	return false;
        				
        var sum = 0;
        var num = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]
        var last = parseInt(corpnum.charAt(12));
        for(var i = 0; i < 12; i++) {
            sum += parseInt(corpnum.charAt(i)) * num[i];
        }
        
        return ((10 - sum % 10) % 10 == last) ? true : false;
    }
    
    //¹ýÀÎ µî·Ï¹øÈ£ Ã¼Å©
    function ChecValidCorporationSSN(ssn)
  	{
  		return ssn.isCorporationSSN();
  	}	
  	
  	//ÃÊÁßÁ¾¼º Á¤±ÔÇ¥Çö½Ä Ã¼Å©(¤·¤·¤¤¤·¤¤¤¸¤§¤¡¤¸¤§)
	function checkRepetitionHangeul(str) 
	{
		var pattern = /(¤¡|¤¢|¤¤|¤§|¤¨|¤©|¤±|¤²|¤³|¤µ|¤¶|¤·|¤¸|¤¹|¤º|¤»|¤¼|¤½|¤¾|¤¿|¤À|¤Á|¤Â|¤Ã|¤Ä|¤Å|¤Æ|¤Ç|¤È|¤É|¤Ê|¤Ë|¤Ì|¤Í|¤Î|¤Ï|¤Ð|¤Ñ|¤Ò|¤Ó|¤¢|¤£|¤¥|¤¦|¤ª|¤«|¤¬|¤­|¤®|¤¯|¤°|¤´|¤¶){2,}/;
		var reg = new RegExp(pattern);
		return !reg.test(str)
	}
 	
 	//¹Ýº¹ ¹®ÀÚ (¿¹-aaaa) --È¸¿øÁ¤º¸ÀÇ »ó¼¼ÁÖ¼Ò À§ÇÔ
 	function checkRepetitionForAddress(str, len) {
		var repeatCnt=1;

		for(i=0;i < str.length;i++){
			temp_char = str.charAt(i);
			next_char = str.charAt(i+1);

			if (temp_char == next_char)
				repeatCnt = repeatCnt + 1;
			else
				repeatCnt = 1;
		      
			if (repeatCnt > len-1)
			{
				if (isNaN(temp_char)) //¹®ÀÚÀÎ °æ¿ì¸¸ ¹Ýº¹¹®ÀÚ Ã¼Å©
				{
					return false;
				}
			}
		}
		return true;
	}				
	
 	//¹Ýº¹ ¹®ÀÚ (¿¹- 000,0000,111,1111) --È¸¿øÁ¤º¸ÀÇ ÀüÈ­¹øÈ£ ÇÊÅÍ¸µ¸¦ À§ÇÔ
 	function checkRepetitionForTel(str, len) {
		var repeatCnt=1;

		for(i=0;i < str.length;i++){
			temp_char = str.charAt(i);
			next_char = str.charAt(i+1);
			
			if (temp_char == next_char)
			{
				repeatCnt = repeatCnt + 1;
			}
			else
				repeatCnt = 1;
		      
			if (repeatCnt > len-1)
			{
				if (temp_char == "0" || temp_char == "1") //ÀÔ·Â°ªÀÌ 0,1ÀÎ °æ¿ìÀÇ ¹Ýº¹¹®ÀÚ¸¸ Ã¼Å©
				{			
					if ((str.length > repeatCnt) && (temp_char != str.charAt(i+2))) //¹Ýº¹Á¦¾à¼öº¸´Ù ÀüÃ¼ ÀÔ·Â°ªÀÇ ±æÀÌ°¡ ±ä°æ¿ì Ã¼Å©
					{
						return true;
					}
					return false;
				}
			}
		}
		return true;
	}		
	
		
	//¹Ýº¹ ¼ýÀÚ (¿¹-1111222, 1111356)
	function checkNumRepetition(str, len) {
		var repeatCnt=0;

		for(i=0;i < str.length;i++){
			
			temp_char = str.charAt(i);
			next_char = str.charAt(i+1);
							
		  if (!isNaN(temp_char)) 
		  {
				repeatCnt = repeatCnt + 1;
				if ((isNaN(next_char) && (repeatCnt <= len-1)) || (temp_char == " "))
				{
					repeatCnt=0;
				}
			}
		  else
				repeatCnt = 0;
		      
			if (repeatCnt > len-1)
			{
				return false;
			}
		}
		return true;
	}			