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)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 武邑县| 太保市| 佛教| 兴山县| 平远县| 龙泉市| 囊谦县| 乐安县| 平顺县| 安庆市| 商丘市| 织金县| 汤原县| 淮阳县| 建宁县| 信丰县| 西青区| 阿鲁科尔沁旗| 宕昌县| 通辽市| 隆化县| 东台市| 阿荣旗| 鲜城| 汉阴县| 德钦县| 游戏| 宣恩县| 马边| 德庆县| 凤阳县| 柘城县| 开远市| 邮箱| 阜南县| 施秉县| 宁明县| 奈曼旗| 报价| 河西区| 淳化县|