posts - 325,  comments - 25,  trackbacks - 0

          function strChinese(str){
           var pattern = /[^\u4E00-\u9FA5]/;
           return !pattern.test(str);
          }
          function isPhoneValied(phone){
           for(i=0;i<phone.length;i++){
            tmpc=phone.charAt(i);
            if(tmpc>='0'&&tmpc<='9'){
            }else if(tmpc=='-'||tmpc=='#'||tmpc=='*'){
            }else{
             return false;
            }
           }
           return true;
          }
          function isRnameValied(realname){
           for(i=0;i<realname.length;i++){
            tmpc=realname.charAt(i);
            if(tmpc>='a'&&tmpc<='z'){
            }else if(tmpc>='A'&&tmpc<='Z'){
            }else if(strChinese(tmpc)){
            }else{
             return false;
            }
           }
           return true;
          }

          function isEmailValidate(emails){
           for(i=0;i<emails.length;i++){
            tmpc=emails.charAt(i);
            if(tmpc>='a'&&tmpc<='z'){ 
            }else if(tmpc>='A'&&tmpc<='Z'){
            }else if(tmpc>='0'&&tmpc<='9'){
            }else if(tmpc=='@'||tmpc=='.'||tmpc=='_'){
            }else{
             return false;
            }
           }
           return true;
          }
          function isCodeValied(code){
           for(i=0;i<code.length;i++){
            tmpc=code.charAt(i);
            if(tmpc>='0'&&tmpc<='9'){
            }else{
             return false;
            }
           }
           return true;
          }
          function isLeapYear(year){
           if(((year%4==0)&&(year%100!=0))||(year%400==0)){
           }else{
            return false;
           }
           return true;
          }

           

          posted on 2008-08-31 08:29 長春語林科技 閱讀(176) 評論(0)  編輯  收藏 所屬分類: js
          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 象山县| 浮梁县| 峡江县| 富民县| 乐山市| 临颍县| 平乐县| 平山县| 来凤县| 巫溪县| 门源| 漠河县| 易门县| 巩留县| 宜阳县| 新建县| 万州区| 平遥县| 南投县| 峨边| 台中县| 门头沟区| 高邑县| 武宣县| 新乡县| 长治县| 沐川县| 铅山县| 股票| 桐梓县| 金山区| 神木县| 望奎县| 无极县| 无为县| 宁晋县| 西乌珠穆沁旗| 曲靖市| 德令哈市| 根河市| 湘潭市|