/*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);

}, "the password is too simple,please change for another!");
