Verify the legality of the JS organization, and the legality of the js Organization
Run the code below.
// Function orgcodevalidate (value) {if (value! = "") {Var values = value. split ("-"); var ws = [3, 7, 9, 10, 5, 8, 4, 2]; var str = '0123456789abcdefghijklmnopqrstuvwxyz '; var reg =/^ ([0-9A-Z]) {8} $/; if (! Reg. test (values [0]) {return true} var sum = 0; for (var I = 0; I <8; I ++) {sum + = str. indexOf (values [0]. charAt (I) * ws [I];} var C9 = 11-(sum % 11); var YC9 = values [1] + ''; if (C9 = 11) {C9 = '0';} else if (C9 = 10) {C9 = 'X ';} else {C9 = C9 + '';} return YC9! = C9 ;}}
Value is the value of the Organization, such as the XXXXXXXX-X format
False indicates that the Organization Code is correct.
True: Invalid Organization Code
The latest Organization Code verification js, such as the question, who has the latest Organization Code verification JS, used to verify the uniqueness of the Organization
Go to the official website of the National Organization Code Management Center and enter your organization code number or organization name. The information of the Organization to be searched is displayed below. If your organization is displayed, is unique .....
The project requires a Javascript script to verify that the characters entered by the user are valid.
Come to me and I will teach you...