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 長春語林科技 閱讀(178) 評論(0)  編輯  收藏 所屬分類: js

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          <2008年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

           

          長春語林科技?xì)g迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 福清市| 靖边县| 安吉县| 永顺县| 渝中区| 乌审旗| 绥中县| 南丰县| 胶州市| 通河县| 扎鲁特旗| 和林格尔县| 汉寿县| 漳州市| 江阴市| 永靖县| 赫章县| 乡城县| 习水县| 梨树县| 临泽县| 乐平市| 定结县| 荥阳市| 营口市| 重庆市| 敖汉旗| 盐亭县| 铜陵市| 卢氏县| 冕宁县| 体育| 漳州市| 合江县| 白朗县| 潞西市| 抚顺市| 九江市| 上虞市| 富裕县| 东台市|