function custValidate_DenyMobileMail(source, arguments) {

	arguments.IsValid = !arguments.Value.match( "(docomo.ne.jp|ezweb.ne.jp|vodafone.ne.jp|pdx.ne.jp){1}$" );

	return;
}

function custValidate_DenyPCMail(source, arguments) {

	arguments.IsValid = arguments.Value.match( "(docomo.ne.jp|ezweb.ne.jp|vodafone.ne.jp|pdx.ne.jp){1}$" );

	return;
}

function custValidate_DropDownList(source, arguments) {

	arguments.IsValid = (arguments.Value!=="0");

	return;
}


function custValidate_NickName(source, arguments) {
   len = 0;
 
   str = escape(arguments.Value);
   for (i = 0; i < str.length; i++, len++) {
      if (str.charAt(i) == "%") {
         if (str.charAt(++i) == "u") {
            i += 3;
            len++;
         }
         i++;
      }
   }

	arguments.IsValid = (len<=20) && (len>0);

	return;
}


function custValidate_NickName_Pangya(source, arguments) {
   len = 0;
 
   str = escape(arguments.Value);
   for (i = 0; i < str.length; i++, len++) {
      if (str.charAt(i) == "%") {
         if (str.charAt(++i) == "u") {
            i += 3;
            len++;
         }
         i++;
      }
   }

	arguments.IsValid = (len<=16) && (len>0);

	return;
}


function custValidate_Password_SameLetter(source, arguments) {

	arguments.IsValid
		= !arguments.Value.match(
			"^("
			+ "[0]+" + "|"
			+ "[1]+" + "|"
			+ "[2]+" + "|"
			+ "[3]+" + "|"
			+ "[4]+" + "|"
			+ "[5]+" + "|"
			+ "[6]+" + "|"
			+ "[7]+" + "|"
			+ "[8]+" + "|"
			+ "[9]+" + "|"
			+ "[a]+" + "|"
			+ "[b]+" + "|"
			+ "[c]+" + "|"
			+ "[d]+" + "|"
			+ "[e]+" + "|"
			+ "[f]+" + "|"
			+ "[g]+" + "|"
			+ "[h]+" + "|"
			+ "[i]+" + "|"
			+ "[j]+" + "|"
			+ "[k]+" + "|"
			+ "[l]+" + "|"
			+ "[m]+" + "|"
			+ "[n]+" + "|"
			+ "[o]+" + "|"
			+ "[p]+" + "|"
			+ "[q]+" + "|"
			+ "[r]+" + "|"
			+ "[s]+" + "|"
			+ "[t]+" + "|"
			+ "[u]+" + "|"
			+ "[v]+" + "|"
			+ "[w]+" + "|"
			+ "[x]+" + "|"
			+ "[y]+" + "|"
			+ "[z]+" + ")$"
		);

	return;
}


function CheckLiteralVulnerable( Literal ) {

	if( Literal.match("^([0-9]+|[a-z]+)$") ) {

		return confirm('数字だけや英字だけのパスワードは\r\n脆弱な可能性があるためおすすめいたしません\r\nこのパスワードを使いますか？');

	} else {

		return true;

	}

}

