¾È±Ô °øºÎ¹æ

Javascript & JQuery & CSS > example - »ç¾÷ÀÚ¹øÈ£ À¯È¿¼º °Ë»ç

µî·ÏÀÏ : 2017-07-04 19:21 Á¶È¸¼ö : 53,911

¾Æ·¡ function Àº »ç¾÷ÀÚ¹øÈ£ À¯È¿¼ºÀ» °Ë»çÇÏ´Â ÇÔ¼ö ÀÔ´Ï´Ù.

		function checkbusino(vencod)
		{
			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] = vencod.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]) 
			{
				return false;
			}
			return true;
		} 

¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.