사업자 등록번호 검사하기 입니다.
function check_companynum(saup1,saup2,saup3)
{
var checkID = new Array(1, 3, 7, 1, 3, 7, 1, 3, 5, 1);
var bizID = ""+ saup1 + saup2 + saup3;
var i, Sum=0, c2, remander;
for (i=0; i<=7; i++) Sum += checkID[i] * bizID.charAt(i);
c2 = "0" + (checkID[8] * bizID.charAt(8));
c2 = c2.substring(c2.length - 2, c2.length);
Sum += Math.floor(c2.charAt(0)) + Math.floor(c2.charAt(1));
remander = (10 - (Sum % 10)) % 10 ;
if (Math.floor(bizID.charAt(9)) != remander)
{
alert ("정확한 사업자 등록번호를 입력하세요");
return false;
}else{
return true;
}
}
게시판 목록
토크
개발과 관련된 어떤 얘기도 괜찮습니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2851 | 9년 전 | 850 | ||
| 2850 |
핫디자인1
|
9년 전 | 812 | |
| 2849 |
핫디자인1
|
9년 전 | 1127 | |
| 2848 | 9년 전 | 951 | ||
| 2847 | 9년 전 | 1052 | ||
| 2846 | 9년 전 | 939 | ||
| 2845 |
jakeeeeel
|
9년 전 | 887 | |
| 2844 | 9년 전 | 1597 | ||
| 2843 | 9년 전 | 1489 | ||
| 2842 |
seul194
|
9년 전 | 1124 | |
| 2841 | 9년 전 | 1196 | ||
| 2840 |
프로그래머7
|
9년 전 | 943 | |
| 2839 | 9년 전 | 1097 | ||
| 2838 |
ssir1159
|
9년 전 | 1493 | |
| 2837 | 9년 전 | 1606 | ||
| 2836 |
프로그래머7
|
9년 전 | 1199 | |
| 2835 | 9년 전 | 801 | ||
| 2834 |
|
9년 전 | 1110 | |
| 2833 | 9년 전 | 1068 | ||
| 2832 | 9년 전 | 723 | ||
| 2831 | 9년 전 | 1142 | ||
| 2830 | 9년 전 | 1243 | ||
| 2829 | 10년 전 | 1111 | ||
| 2828 | 10년 전 | 691 | ||
| 2827 | 10년 전 | 1723 | ||
| 2826 |
헤이하치대머리
|
10년 전 | 971 | |
| 2825 |
패션리스트
|
10년 전 | 2896 | |
| 2824 | 10년 전 | 2944 | ||
| 2823 |
efniadif00
|
10년 전 | 2826 | |
| 2822 | 10년 전 | 1251 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기