Silakan masukkan nomor ID Anda: var aCity={11:"Beijing",12:"Tianjin",13:"Hebei",14:"Shanxi",15:"Mongolia Dalam",21:"Liaoning",22:"Jilin",23:" Heilongjiang ",31:"Shanghai",32:"Jiangsu",33:"Zhejiang",34:"Anhui",35:"Fujian",36:"Jiangxi",37:"Shandong",41:"Henan" , 42:"Hubei",43:"Hunan",44:"Guangdong",45:"Guangxi",46:"Hainan",50:"Chongqing",51:"Sichuan",52:"Guizhou",53 : "Yunnan",54:"Tibet",61:"Shaanxi",62:"Gansu",63:"Qinghai",64:"Ningxia",65:"Xinjiang",71:"Taiwan",81:" Hong Kong ",82:"Makau",91:"Luar Negeri"} fungsi cidInfo(sId){ var iJumlah=0 var info="" if(!/^d{17}(d|x)$/i.test(sId))mengembalikan salah; sId=sId.replace(/x$/i,"a"); if(aCity[parseInt(sId.substr(0,2))]==null)return "Kesalahan: Area ilegal"; sUlang Tahun=sId.substr(6,4)+"-"+Nomor(sId.substr(10,2))+"-"+Nomor(sId.substr(12,2)); var d=Tanggal Baru(sUlang Tahun.ganti(/-/g,"/")) if(sBirthday!=(d.getFullYear()+"-"+ (d.getMonth()+1) + "-" + d.getDate()))return "Kesalahan: Ulang tahun ilegal"; for(var i = 17;i>=0;i --) iSum += (Matematika.pow(2,i) % 11) * parseInt(sId.charAt(17 - i),11) if(iSum%11!=1)return "Kesalahan: Nomor sertifikat ilegal"; return aCity[parseInt(sId.substr(0,2))]+","+sBirthday+","+(sId.substr(16,1)%2?"Male":"Female") }