//输入验证
var Verification ={
//验证出生日期
Birthday : function() {
var pattern = /^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/;
var ObjValue=CName.CBirthday.val();
if(ObjValue!="" && ObjValue!=null)
{
if (!pattern.test(ObjValue)) {
popHint(CName.CBirthday.get(0), "日期格式不对,请重新输入!");
return false;
}
else
{
return true;
}
}
else
{
return true;
}
}
};