亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? jsinclude.js

?? 基于JSP的網上購物系統,包含數據庫DB設計文檔
?? JS
?? 第 1 頁 / 共 5 頁
字號:
        var c = s.charAt(i);

        if (! (isLetter(c) || isDigit(c) ) )
        return false;
    }

    // All characters are numbers or letters.
    return true;
}




// reformat (TARGETSTRING, STRING, INTEGER, STRING, INTEGER ... )       
//
// Handy function for arbitrarily inserting formatting characters
// or delimiters of various kinds within TARGETSTRING.
//
// reformat takes one named argument, a string s, and any number
// of other arguments.  The other arguments must be integers or
// strings.  These other arguments specify how string s is to be
// reformatted and how and where other strings are to be inserted
// into it.
//
// reformat processes the other arguments in order one by one.
// * If the argument is an integer, reformat appends that number 
//   of sequential characters from s to the resultString.
// * If the argument is a string, reformat appends the string
//   to the resultString.
//
// NOTE: The first argument after TARGETSTRING must be a string.
// (It can be empty.)  The second argument must be an integer.
// Thereafter, integers and strings must alternate.  This is to
// provide backward compatibility to Navigator 2.0.2 JavaScript
// by avoiding use of the typeof operator.
//
// It is the caller's responsibility to make sure that we do not
// try to copy more characters from s than s.length.
//
// EXAMPLES:
//
// * To reformat a 10-digit U.S. phone number from "1234567890"
//   to "(123) 456-7890" make this function call:
//   reformat("1234567890", "(", 3, ") ", 3, "-", 4)
//
// * To reformat a 9-digit U.S. Social Security number from
//   "123456789" to "123-45-6789" make this function call:
//   reformat("123456789", "", 3, "-", 2, "-", 4)
//
// HINT:
//
// If you have a string which is already delimited in one way
// (example: a phone number delimited with spaces as "123 456 7890")
// and you want to delimit it in another way using function reformat,
// call function stripCharsNotInBag to remove the unwanted 
// characters, THEN call function reformat to delimit as desired.
//
// EXAMPLE:
//
// reformat (stripCharsNotInBag ("123 456 7890", digits),
//           "(", 3, ") ", 3, "-", 4)

function reformat (s)

{   var arg;
    var sPos = 0;
    var resultString = "";

    for (var i = 1; i < reformat.arguments.length; i++) {
       arg = reformat.arguments[i];
       if (i % 2 == 1) resultString += arg;
       else {
           resultString += s.substring(sPos, sPos + arg);
           sPos += arg;
       }
    }
    return resultString;
}




// isSSN (STRING s [, BOOLEAN emptyOK])
// 
// isSSN returns true if string s is a valid U.S. Social
// Security Number.  Must be 9 digits.
//
// NOTE: Strip out any delimiters (spaces, hyphens, etc.)
// from string s before calling this function.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isSSN (s)
{   if (isEmpty(s)) 
       if (isSSN.arguments.length == 1) return defaultEmptyOK;
       else return (isSSN.arguments[1] == true);
    return (isInteger(s) && s.length == digitsInSocialSecurityNumber)
}




// isUSPhoneNumber (STRING s [, BOOLEAN emptyOK])
// 
// isUSPhoneNumber returns true if string s is a valid U.S. Phone
// Number.  Must be 10 digits.
//
// NOTE: Strip out any delimiters (spaces, hyphens, parentheses, etc.)
// from string s before calling this function.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isUSPhoneNumber (s)
{   if (isEmpty(s)) 
       if (isUSPhoneNumber.arguments.length == 1) return defaultEmptyOK;
       else return (isUSPhoneNumber.arguments[1] == true);
    return (isInteger(s) && s.length == digitsInUSPhoneNumber)
}




// isInternationalPhoneNumber (STRING s [, BOOLEAN emptyOK])
// 
// isInternationalPhoneNumber returns true if string s is a valid 
// international phone number.  Must be digits only; any length OK.
// May be prefixed by + character.
//
// NOTE: A phone number of all zeros would not be accepted.
// I don't think that is a valid phone number anyway.
//
// NOTE: Strip out any delimiters (spaces, hyphens, parentheses, etc.)
// from string s before calling this function.  You may leave in 
// leading + character if you wish.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isInternationalPhoneNumber (s)
{   if (isEmpty(s)) 
       if (isInternationalPhoneNumber.arguments.length == 1) return defaultEmptyOK;
       else return (isInternationalPhoneNumber.arguments[1] == true);
    return (isPositiveInteger(s))
}




// isZIPCode (STRING s [, BOOLEAN emptyOK])
// 
// isZIPCode returns true if string s is a valid 
// U.S. ZIP code.  Must be 5 or 9 digits only.
//
// NOTE: Strip out any delimiters (spaces, hyphens, etc.)
// from string s before calling this function.  
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isZIPCode (s)
{  if (isEmpty(s)) 
       if (isZIPCode.arguments.length == 1) return defaultEmptyOK;
       else return (isZIPCode.arguments[1] == true);
   return (isInteger(s) && 
            ((s.length == digitsInZIPCode1) ||
             (s.length == digitsInZIPCode2)))
}





// isStateCode (STRING s [, BOOLEAN emptyOK])
// 
// Return true if s is a valid U.S. Postal Code 
// (abbreviation for state).
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isStateCode(s)
{   if (isEmpty(s)) 
       if (isStateCode.arguments.length == 1) return defaultEmptyOK;
       else return (isStateCode.arguments[1] == true);
    return ( (USStateCodes.indexOf(s) != -1) &&
             (s.indexOf(USStateCodeDelimiter) == -1) )
}




// isEmail (STRING s [, BOOLEAN emptyOK])
// 
// Email address must be of form a@b.c -- in other words:
// * there must be at least one character before the @
// * there must be at least one character before and after the .
// * the characters @ and . are both required
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isEmail (s)
{   if (isEmpty(s)) 
       if (isEmail.arguments.length == 1) return defaultEmptyOK;
       else return (isEmail.arguments[1] == true);
   
    // is s whitespace?
    if (isWhitespace(s)) return false;
    
    // there must be >= 1 character before @, so we
    // start looking at character position 1 
    // (i.e. second character)
    var i = 1;
    var sLength = s.length;

    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++
    }

    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;

    // look for .
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    }

    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
}





// isYear (STRING s [, BOOLEAN emptyOK])
// 
// isYear returns true if string s is a valid 
// Year number.  Must be 2 or 4 digits only.
// 
// For Year 2000 compliance, you are advised
// to use 4-digit year numbers everywhere.
//
// And yes, this function is not Year 10000 compliant, but 
// because I am giving you 8003 years of advance notice,
// I don't feel very guilty about this ...
//
// For B.C. compliance, write your own function. ;->
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isYear (s)
{   if (isEmpty(s)) 
       if (isYear.arguments.length == 1) return defaultEmptyOK;
       else return (isYear.arguments[1] == true);
    if (!isNonnegativeInteger(s)) return false;
    return ((s.length == 2) || (s.length == 4));
}



// isIntegerInRange (STRING s, INTEGER a, INTEGER b [, BOOLEAN emptyOK])
// 
// isIntegerInRange returns true if string s is an integer 
// within the range of integer arguments a and b, inclusive.
// 
// For explanation of optional argument emptyOK,
// see comments of function isInteger.


function isIntegerInRange (s, a, b)
{   if (isEmpty(s)) 
       if (isIntegerInRange.arguments.length == 1) return defaultEmptyOK;
       else return (isIntegerInRange.arguments[1] == true);

    // Catch non-integer strings to avoid creating a NaN below,
    // which isn't available on JavaScript 1.0 for Windows.
    if (!isInteger(s, false)) return false;

    // Now, explicitly change the type to integer via parseInt
    // so that the comparison code below will work both on 
    // JavaScript 1.2 (which typechecks in equality comparisons)
    // and JavaScript 1.1 and before (which doesn't).
    var num = parseInt (s);
    return ((num >= a) && (num <= b));
}



// isMonth (STRING s [, BOOLEAN emptyOK])
// 
// isMonth returns true if string s is a valid 
// month number between 1 and 12.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isMonth (s)
{   if (isEmpty(s)) 
       if (isMonth.arguments.length == 1) return defaultEmptyOK;
       else return (isMonth.arguments[1] == true);
    return isIntegerInRange (s, 1, 12);
}



// isDay (STRING s [, BOOLEAN emptyOK])
// 
// isDay returns true if string s is a valid 
// day number between 1 and 31.
// 
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isDay (s)
{   if (isEmpty(s)) 
       if (isDay.arguments.length == 1) return defaultEmptyOK;
       else return (isDay.arguments[1] == true);   
    return isIntegerInRange (s, 1, 31);
}



// daysInFebruary (INTEGER year)
// 
// Given integer argument year,
// returns number of days in February of that year.

function daysInFebruary (year)
{   // February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (  ((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0) ) ) ? 29 : 28 );
}



// isDate (STRING year, STRING month, STRING day)
//
// isDate returns true if string arguments year, month, and day 
// form a valid date.
// 

function isDate (year, month, day)
{   // catch invalid years (not 2- or 4-digit) and invalid months and days.
    if (! (isYear(year, false) && isMonth(month, false) && isDay(day, false))) return "1";

    // Explicitly change type to integer to make code work in both
    // JavaScript 1.1 and JavaScript 1.2.
    var intYear = parseInt(year);
    var intMonth = parseInt(month);
    var intDay = parseInt(day);

    // catch invalid days, except for February
    if (intDay > daysInMonth[intMonth]) return "1"; 

    if ((intMonth == 2) && (intDay > daysInFebruary(intYear))) return "1";

    return "0";
}




/* FUNCTIONS TO NOTIFY USER OF INPUT REQUIREMENTS OR MISTAKES. */


// Display prompt string s in status bar.

function prompt (s)
{   window.status = s
}



// Display data entry prompt string s in status bar.

function promptEntry (s)
{   window.status = pEntryPrompt + s
}




// Notify user that required field theField is empty.
// String s describes expected contents of theField.value.
// Put focus in theField and return false.

function warnEmpty (theField, s)
{   theField.focus()
    alert(mPrefix + s + mSuffix)
    return false
}



// Notify user that contents of field theField are invalid.
// String s describes expected contents of theField.value.
// Put select theField, pu focus in it, and return false.

function warnInvalid (theField, s)
{   theField.focus()
    theField.select()
    //alert(s)
    return false
}




/* FUNCTIONS TO INTERACTIVELY CHECK VARIOUS FIELDS. */

// checkString (TEXTFIELD theField, STRING s, [, BOOLEAN emptyOK==false])
//
// Check that string theField.value is not all whitespace.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function checkString (theField, s, emptyOK)
{   // Next line is needed on NN3 to avoid "undefined is not a number" error
    // in equality comparison below.
    if (checkString.arguments.length == 2) emptyOK = defaultEmptyOK;
    if ((emptyOK == true) && (isEmpty(theField.value))) return true;
    if (isWhitespace(theField.value)) 
       return warnEmpty (theField, s);
    else return true;
}



// checkStateCode (TEXTFIELD theField [, BOOLEAN emptyOK==false])
//
// Check that string theField.value is a valid U.S. state code.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function checkStateCode (theField, emptyOK)
{   if (checkStateCode.arguments.length == 1) emptyOK = defaultEmptyOK;
    if ((emptyOK == true) && (isEmpty(theField.value))) return true;
    else
    {  theField.value = theField.value.toUpperCase();
       if (!isStateCode(theField.value, false)) 
          return warnInvalid (theField, iStateCode);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线成人av影院| 精品在线一区二区| 欧美一二三四在线| 玖玖九九国产精品| 久久午夜国产精品| 欧美视频精品在线观看| 久久国产视频网| 亚洲综合自拍偷拍| 亚洲精品国产一区二区三区四区在线 | 国产精品亚洲第一区在线暖暖韩国| 综合久久综合久久| 日韩1区2区3区| 99久久精品免费看| 日本韩国精品一区二区在线观看| 久久精品国产在热久久| 亚洲精品日日夜夜| 亚洲欧美日韩一区二区| 久久久久久一二三区| 国产精品久久久久天堂| 日本在线播放一区二区三区| 日本成人中文字幕在线视频| 亚洲少妇30p| 自拍偷拍亚洲综合| 最新欧美精品一区二区三区| 中文字幕一区二区5566日韩| 国模大尺度一区二区三区| 欧美精品乱码久久久久久| 日韩理论在线观看| 国产一区不卡在线| 国产露脸91国语对白| 国产寡妇亲子伦一区二区| 国产精品77777竹菊影视小说| 国产精品综合二区| 日本韩国一区二区| 欧美一区二区三区小说| 欧美一级午夜免费电影| 久久先锋影音av| 国产精品不卡在线| 亚洲一区二区三区激情| 久久99精品久久久久久动态图| 精品一区二区影视| 欧美精品久久一区二区三区| 久久综合久久鬼色| 丝袜诱惑亚洲看片| 在线亚洲免费视频| 久久综合久久综合亚洲| 久久精品国产精品亚洲综合| 97se亚洲国产综合自在线不卡 | 精品国产污网站| 亚洲欧美成aⅴ人在线观看| 看电影不卡的网站| 欧美日本一道本在线视频| 亚洲欧美综合另类在线卡通| 蜜臀精品一区二区三区在线观看| av网站一区二区三区| 26uuu色噜噜精品一区二区| 亚洲国产精品精华液网站| av在线免费不卡| 久久精品人人做| 国产一区不卡精品| 精品国产自在久精品国产| 亚洲国产精品一区二区久久| 成人听书哪个软件好| 2021国产精品久久精品| 午夜电影网一区| 9191久久久久久久久久久| 亚洲一区二区三区国产| 欧美日韩国产综合一区二区| 国产精品乱码人人做人人爱| 国产99久久久精品| 国产精品久久久久久久午夜片| 国产经典欧美精品| 久久精品夜夜夜夜久久| 国产99久久久国产精品| 国产亚洲精品bt天堂精选| 成人激情综合网站| 国产精品成人午夜| 日韩一区二区视频| 午夜电影网一区| 色婷婷一区二区三区四区| 久久久久9999亚洲精品| 成人自拍视频在线| 亚洲靠逼com| 91精品国产综合久久精品app| 亚洲线精品一区二区三区八戒| 欧美日韩精品电影| 国产福利一区在线| 亚洲永久免费视频| 精品国产乱码久久久久久老虎 | 亚洲一区二区美女| 精品欧美乱码久久久久久| 成人综合婷婷国产精品久久蜜臀| 亚洲少妇屁股交4| 日韩一本二本av| 在线观看区一区二| 日本视频中文字幕一区二区三区| 久久精品日产第一区二区三区高清版 | 欧美猛男超大videosgay| 黄色日韩网站视频| 五月天一区二区| 国产精品欧美一区喷水| 日韩视频中午一区| 欧美性大战久久久久久久蜜臀 | 中文字幕五月欧美| 精品成人a区在线观看| 欧美日韩色综合| 99久久久免费精品国产一区二区| 日韩成人免费看| 一区二区三区四区在线免费观看 | 不卡视频在线看| 综合久久久久综合| 国产欧美一区二区精品仙草咪| 欧美性猛交xxxxxx富婆| 99精品久久久久久| 成人美女视频在线观看18| 韩国一区二区三区| 极品少妇一区二区三区精品视频| 亚洲国产精品一区二区久久| 亚洲人成网站影音先锋播放| 中文字幕中文字幕中文字幕亚洲无线| 欧美不卡激情三级在线观看| 欧美一区二区女人| 欧美一区二区三区在线视频| 91精品国产综合久久精品图片| 欧美天天综合网| 日韩欧美二区三区| 久久在线免费观看| 国产片一区二区三区| 精品国产99国产精品| xvideos.蜜桃一区二区| 久久伊人中文字幕| 亚洲国产成人自拍| 中文字幕亚洲欧美在线不卡| 一区二区三区精品视频| 日日欢夜夜爽一区| 国产精品 日产精品 欧美精品| 成人成人成人在线视频| 欧美性猛交一区二区三区精品| 91精品国产品国语在线不卡| 久久久久国产免费免费 | av激情成人网| 欧美日韩精品专区| 久久久亚洲精华液精华液精华液| 国产精品色在线观看| 亚洲高清在线精品| 狠狠狠色丁香婷婷综合激情| 93久久精品日日躁夜夜躁欧美| 欧美日韩精品一区二区三区| 久久嫩草精品久久久精品| 亚洲精品视频在线看| 久久精品国产一区二区| 在线一区二区三区四区五区 | 精品国产一区二区三区久久久蜜月| 国产拍欧美日韩视频二区| 午夜亚洲国产au精品一区二区| 国产成人小视频| 精品久久久久99| 亚洲国产精品久久人人爱蜜臀| 国产尤物一区二区在线| 欧美日韩中字一区| 亚洲欧美一区二区三区孕妇| 国产在线日韩欧美| 欧美一区二区三区在线观看| 亚洲天天做日日做天天谢日日欢| 国内成人免费视频| 精品国产在天天线2019| 麻豆91在线观看| 欧美一级午夜免费电影| 亚洲国产精品一区二区尤物区| 不卡一区在线观看| 中文字幕一区三区| 不卡视频在线看| 国产精品福利一区二区| 国产成人免费xxxxxxxx| 中文字幕乱码亚洲精品一区| 韩国欧美一区二区| 欧美国产精品一区二区| 成人一区二区三区视频在线观看| 久久久欧美精品sm网站| 精品一区二区三区免费毛片爱| 日韩欧美一级特黄在线播放| 蜜桃av一区二区三区电影| 欧美sm美女调教| 成人午夜私人影院| 亚洲视频香蕉人妖| 欧美日韩一区二区三区在线| 亚洲图片欧美一区| 久久综合久色欧美综合狠狠| 成人亚洲精品久久久久软件| 自拍偷拍国产亚洲| 欧美日韩国产经典色站一区二区三区 | 日本伊人午夜精品| 欧美国产97人人爽人人喊| 色94色欧美sute亚洲线路一ni| 午夜影视日本亚洲欧洲精品| 精品国产1区二区| www.激情成人| 精品在线一区二区| 一区二区三区免费在线观看| 精品裸体舞一区二区三区|