function CheckTel(s) { var patrn=/^0(([1,2]\d)|([3-9]\d{2}))\d{8}$/; if (!patrn.exec(s)) return false return true }