var identity = document.getElementById( "ctl00_ContentPlaceHolder1_tbidentity").value;
if(identity.gblen()>18)
{
showAlert("身份证号最多为18位!");
return false;
}
if (!identity.match(/^(:\d{15}|\d{18}|\d{17}x)$/))
{
showAlert("请输入正确的身份证号!");
return false;
}
}