jQuery.validator.addMethod("chinese", function(value) { 

  return value.length <= 0 || /^[\u0391-\uFFE5]+$/.test(value); 

}, "??????");


jQuery.validator.addMethod("id_card", function(value) { 

  return value.length == 18 ;

}, "?????????");


jQuery.validator.addMethod("bank_card", function(value) { 

  return value.length == 16 || value.length == 19;

}, "??????????");



jQuery.validator.addMethod("phone", function(value) {

  return value.length <= 0 || /(^(\d{1,5}-)?(\d{1,5}-)?\d{2,15})$|([0-9]{15})$/.test(value);
  
}, "The telephone format is incorrect ?");



jQuery.validator.addMethod("qq", function(value) {

  return value.length <= 0 || /^[1-9]\d{4,8}$/.test(value);

}, "??qq???????");


  



jQuery.validator.addMethod("spassword", function(value, element, param) {

  return value.length <= 0 || !/^(([-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/.test(value);

}, "????????????????");