規則見http://www.zhanglihai.com/article/2004/11/29/H176H3G0100200G0M060HE8DKUXYWJNE.Html
#region 大陸身份證號碼驗證
private bool CheckIDCard_CHS(string IDCard)
{
string[] arrVarifyCode=("1,0,x,9,8,7,6,5,4,3,2").Split('','');
string[] Wi=("7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2").Split('','');
string[] Checker=("1,9,8,7,6,5,4,3,2,1,1").Split('','');
int intLength=IDCard.Length;
int i=0,TotalmulAiWi=0;
int modValue=0;
string strVerifyCode="";
string Ai="";
string BirthDay="";
int intYear=0;
int intMonth=0;
int intDay=0;
if(intLength<15||intLength==16||intLength==17||intLength>18)
{
return false;
}
if(intLength==18)
{
Ai=IDCard.Substring(0,17);
}
else if(intLength==15)
{
Ai=IDCard;
Ai=Ai.Substring(0,6)+"19"+Ai.Substring(6,9);
}