PageSourceSearch

https://www.soken.ac.jp/contact/js/validation.js

js soken.ac.jp collected 2026-10-01 11:24:48 UTC 44,841 bytes, 1,723 lines download raw bytes

1var validation = function(config){
2	this.jsonFileName = $("input[name=form_code]").val();
3	this.validationFilePath = '';
4	this.validate = {};
5	this.zipObj1 = $("#Q2469_3992");
6	this.prefObj1 = $("#Q2469_3993");
7	this.address1Obj1 = $("#Q2469_3994");
8	this.address2Obj1 = $("#Q2469_3995");
9
10	// this.zipObj1 = $("#Q10_13");
11	// this.prefObj1 = $("#Q10_14");
12	// this.address1Obj1 = $("#Q10_15");
13	// this.address2Obj1 = $("#Q10_16");
14
15	this.zipObj2 = $("#Q31_31");
16	this.prefObj2 = $("#Q31_32");
17	this.address1Obj2 = $("#Q31_33");
18	this.address2Obj2 = $("#Q31_34");
19	
20	this.zipObj3 = $("#Q322_579");
21	this.prefObj3 = $("#Q322_580");
22	this.address1Obj3 = $("#Q322_581");
23	this.address2Obj3 = $("#Q322_582");
24
25	this.blockedEmailP = '';
26}
27
28validation.prototype = {
29	init:function(){
30		var _this = this;
31		if(_this.jsonFileName){
32			_this.zipEventSet();
33			_this.validationFilePath = '../jsons/' + _this.jsonFileName + '.json';
34			// _this.sendButtonSet(); reChaptcha対応で無効化
35			_this.clickJiValidation();
36			_this.validationFileRead();
37			_this.setCheckoClickEvent();
38		}
39
40	},
41	sendButtonSet:function(){
42		$("#sendButton").click(function(e){
43			$("#vali").val("");
44			ret = $("#vali").trigger("click");
45			$("#vali").val("");
46		});
47	},
48	pushSendButton:function(){
49		$("#vali").val("");
50		ret = $("#vali").trigger("click");
51		$("#vali").val("");
52	},
53
54	clickJiValidation:function(){
55		$("#vali").click(function(){
56			setTimeout(function(vali){
57				var cnt = 0;
58				var topError = "";
59				$(".error").each(function(){
60					if(cnt == 0){
61						topError = $(this);
62					}
63					cnt++;
64				});
65				if(cnt == 0){
66					vali.attr("class","");
67					vali.addClass("ok");
68				}else{
69					var targetOffset = topError.offset().top;
70					var targetScrollOffset = $(window).scrollTop();
71					targetOffset1 = targetScrollOffset * 2 / 3;
72					targetOffset2 = targetOffset - 120;
73					if(targetOffset1 > targetOffset2){
74						$('html,body').animate({scrollTop: targetOffset2}, 200);
75					}else{
76						$('html,body').animate({scrollTop: targetOffset1}, 200).animate({scrollTop: targetOffset2}, 200);
77					}
78					vali.attr("class","");
79					vali.addClass("ng");
80				}
81				if($("#vali").hasClass("ok")){
82				    var orgAction = $("form").attr("action");
83					nextAction = $("#nextActionHtml").val();
84				    $("#form").attr("action",nextAction);
85				    $("#form").submit();
86
87				}else{
88					return false;
89				}
90
91			},500,$(this));
92		});
93	},
94	validationFileRead:function(){
95		var _this = this;
96		$.ajax({
97			type: "GET",
98			cache: false,
99		    url: _this.validationFilePath,
100		}).done(function(json){
101
102		    _this.parseValid(json);
103		}).fail(function(json){
104
105		});
106
107		// 2022
108		// $("#vali").click(function(){
109		// 	if($("#Q2325_3706").val() != $("#Q2326_3707").val()){
110		// 		$("input[title='メールアドレス']").addClass("error");
111		// 		_this.errert("メールアドレス(確認)と異なります",'Q2325_3706','Q2325_3706',"","above");
112		// 		_this.errert("メールアドレスと異なります",'Q2326_3707','Q2326_3707',"","above");
113		// 	}
114		// });
115	},
116	multiClickCheck:function(){
117		var _this = this;
118		var preName = "#";
119		var cnt = 0;
120		var multies = [];
121		$('input[type="radio"]').each(function(){
122			var leftValue = $(this).attr('name').split("_");
123			if(preName != leftValue[0]){
124				multies[cnt] = leftValue[0];
125				preName = leftValue[0];
126				cnt++;
127			}
128
129		});
130		for(var i=0;i<multies.length;i++){
131			$("#" + multies[i]).val($('input[name=' + multies[i] + ']:checked').val());
132		}
133
134		var preName = "#";
135		var cnt = 0;
136		var multies = [];
137
138
139		$('input[type="checkbox"]').each(function(){
140			if(
141				$(this).attr("id") != 'pCheck' &&
142				$(this).attr("id") != 'checkSearch'
143			){
144				var leftValue = $(this).attr('name');
145				if(leftValue){
146					if(preName != leftValue){
147						multies[cnt] = leftValue;
148						preName = leftValue;
149						cnt++;
150					}
151				}
152			}
153
154		});
155		for(var i=0;i<multies.length;i++){
156			var checkValue = $('input[name="' + multies[i] + '"]:checked').val();
157			var leftValue = multies[i].split("[");
158			$("#" + leftValue[0]).val(checkValue);
159		}
160
161	},
162	setCheckoClickEvent:function(){
163		var _this = this;
164		$("input[type=radio]").each(function(){
165			$(this).click(function(){
166				var erId = $(this).attr("name");
167				$("#" + erId + "-error").empty();
168				$("#" + erId + "-error").removeClass("error");
169			});
170			
171		});
172		$("input[type=checkbox]").each(function(){
173			$(this).click(function(){
174				
175				var erId = $(this).attr("name");
176				erId = erId.replace(/\[\]/g, "");
177				$("#" + erId + "-error").empty();
178				$("#" + erId + "-error").removeClass("error");
179			});
180			
181		});
182	},
183	zipEventSet:function(){
184		var _this = this;
185		_this.zipObj1.focusout(function(){
186			setTimeout(function(){
187				_this.getAddress1();
188			},200);
189		});
190		_this.zipObj2.focusout(function(){
191			setTimeout(function(){
192				_this.getAddress2();
193			},200);
194		});
195		_this.zipObj3.focusout(function(){
196			setTimeout(function(){
197				_this.getAddress3();
198			},200);
199		});
200	},
201	getAddress1:function(){
202		var _this = this;
203		var zip = _this.zipObj1.val();
204		zip = _this.zenNum2han(zip);
205		this.zipObj1.val(zip);
206		zip = zip.replace(/-/g, "");
207		var subject = _this.zipObj1.attr("id");
208		if(
209			(zip)	&&
210			(_this.isNum(zip) != true)
211		){
212			if(_this.errert("数字のみ入力してください",subject,subject,"","rightSide")){
213				return "error";
214			}else{
215				return false;
216			}
217		}
218		if(
219			(7 != zip.length)
220		){
221			if(_this.errert("数字7文字で入力してください",subject,subject,"","rightSide")){
222				return "error";
223			}else{
224				return false;
225			}
226		}
227		$.ajax({
228			type: 'GET',
229			url: 'https://www.web-meister.jp/apps/zip/?zipcd='+zip,
230			dataType: 'jsonp',
231			jsonpCallback: 'pref',
232		}).done(function(data) {
233			if(!data[0]){
234				alert("郵便番号から住所を取得できませんでした");
235			}else{
236				_this.setAddressFromZip1(data[0]);
237			}
238		}).fail(function(jqXHR, textStatus, errorThrown) {
239
240		});
241	},
242	getAddress2:function(){
243		var _this = this;
244		var zip = _this.zipObj2.val();
245		zip = _this.zenNum2han(zip);
246		this.zipObj2.val(zip);
247		zip = zip.replace(/-/g, "");
248		var subject = _this.zipObj2.attr("id");
249		if(
250			(zip)	&&
251			(_this.isNum(zip) != true)
252		){
253			if(_this.errert("数字のみ入力してください",subject,subject,"","rightSide")){
254				return "error";
255			}else{
256				return false;
257			}
258		}
259		if(
260			(7 != zip.length)
261		){
262			if(_this.errert("数字7文字で入力してください",subject,subject,"","rightSide")){
263				return "error";
264			}else{
265				return false;
266			}
267		}
268		$.ajax({
269			type: 'GET',
270			url: 'https://www.web-meister.jp/apps/zip/?zipcd='+zip,
271			dataType: 'jsonp',
272			jsonpCallback: 'pref',
273		}).done(function(data) {
274			if(!data[0]){
275				alert("郵便番号から住所を取得できませんでした");
276			}else{
277				_this.setAddressFromZip2(data[0]);
278			}
279		}).fail(function(jqXHR, textStatus, errorThrown) {
280
281		});
282	},
283	getAddress3:function(){
284		var _this = this;
285		var zip = _this.zipObj3.val();
286		zip = _this.zenNum2han(zip);
287		this.zipObj3.val(zip);
288		zip = zip.replace(/-/g, "");
289		var subject = _this.zipObj3.attr("id");
290		if(
291			(zip)	&&
292			(_this.isNum(zip) != true)
293		){
294			if(_this.errert("数字のみ入力してください",subject,subject,"","rightSide")){
295				return "error";
296			}else{
297				return false;
298			}
299		}
300		if(
301			(zip)	&&
302			(7 != zip.length)
303		){
304			if(_this.errert("数字7文字で入力してください",subject,subject,"","rightSide")){
305				return "error";
306			}else{
307				return false;
308			}
309		}else{
310			$("#" + subject + "-error").empty();
311			$("#" + subject + "-error").removeClass("error");
312		}
313		$.ajax({
314			type: 'GET',
315			url: 'https://www.web-meister.jp/apps/zip/?zipcd='+zip,
316			dataType: 'jsonp',
317			jsonpCallback: 'pref',
318		}).done(function(data) {
319			if(!data[0]){
320				alert("郵便番号から住所を取得できませんでした");
321			}else{
322				_this.setAddressFromZip3(data[0]);
323			}
324		}).fail(function(jqXHR, textStatus, errorThrown) {
325
326		});
327	},
328	setAddressFromZip1:function(data){
329		var _this=this;
330		var pref = data.pref;
331		var address1 = data.address1;
332		var address2 = data.address2;
333
334		this.prefObj1.val(pref);
335		this.address1Obj1.val(address1 + " " + address2);
336
337	},
338	setAddressFromZip2:function(data){
339		var _this=this;
340		var pref = data.pref;
341		var address1 = data.address1;
342		var address2 = data.address2;
343
344		this.prefObj2.val(pref);
345		this.address1Obj2.val(address1 + " " + address2);
346
347	},
348	setAddressFromZip3:function(data){
349		var _this=this;
350		var pref = data.pref;
351		var address1 = data.address1;
352		var address2 = data.address2;
353
354		this.prefObj3.val(pref);
355		this.address1Obj3.val(address1 + " " + address2);
356
357	},
358	parseValid:function(json){
359		var _this = this;
360		if(json.blocked_email_pattern){
361			_this.blockedEmailP = json.blocked_email_pattern;
362		}
363		for(i=0;i<json.blocks.length;i++){
364			if(json.blocks[i].items.length > 0){
365				for(k=0;k<json.blocks[i].items.length;k++){
366					var vali_def_ary = [];
367					var multiHissuFlg = false;
368					var parentHissu = json.blocks[i].required;
369					//zip id hard coding
370					if(json.blocks[i].id == 92){
371						if(json.blocks[i].items[k].id == 104){
372							json.blocks[i].items[k].id
373							json.blocks[i].items[k].validation_zip = 1;
374						}
375					}
376
377					if(json.blocks[i].items[k].validation_required){
378						var hissuColuId = json.blocks[i].id;
379						if($("#TH" + hissuColuId + " > strong").length > 0){
380						}else{
381							if(
382								json.blocks[i].items[k].item_type_id != 4 &&
383								json.blocks[i].items[k].item_type_id != 6
384							){
385								// $("#TH" + hissuColuId).append('<br/><span class="hissuMark" style="color: rgb(255, 0, 0);">[必須]</span>');
386								$("#TH" + hissuColuId).append('<strong>(必須)</strong>');
387							}
388						}
389
390
391					}
392
393
394
395					$.each(json.blocks[i].items[k], function(key, value){
396						if(key.match(/validation/)){
397						    vali_def_ary.push(key + '=' + value);
398						}
399						if(key == 'item_type_id'){
400							if(
401								value == 3 ||
402								//value == 4 ||
403								value == 5
404								//value == 6
405							){
406								multiHissuFlg = true;
407							}
408						}
409					});
410					var ret_arry = _this.valiMinMax2Length(vali_def_ary);
411					var ret_arry = _this.valiHanNumEi(ret_arry);
412					if(multiHissuFlg){
413						if(parentHissu){
414							_this.validate['Q' + json.blocks[i].id] = ["validation_required=1"];
415						}else{
416							_this.validate['Q' + json.blocks[i].id] = ret_arry;
417						}
418					}else{
419						_this.validate['Q' + json.blocks[i].id + '_' + json.blocks[i].items[k].id] = ret_arry;
420					}
421				}
422
423				if(json.blocks[i].items.length > 1){
424				var concatName = '';
425					for(k=0;k<json.blocks[i].items.length;k++){
426						if(concatName){
427							concatName += ',';
428						}
429						concatName += 'Q' + json.blocks[i].id + '_' + json.blocks[i].items[k].id ;
430					}
431					if(json.blocks[i].required == 1){
432						_this.validate[concatName] = ['includeHissuError=1'];
433					}
434				}else{
435					if(json.blocks[i].required == 1){
436
437					}
438				}
439
440			}
441		}
442		// console.log(JSON.stringify(_this.validate));
443		_this.eventSet();
444		_this.oyaHissuSet();
445	},
446	oyaHissuSet:function(){
447		var _this = this;
448		$.each(_this.validate,function(key,value){
449			if(key.match(/_/)){
450			}else{
451				var id = key.replace(/Q/g, "");
452				if(value[0]=="validation_required=1"){
453					if(!$("#TH" + id + " > strong").length){
454						// $("#TH" + id).append('<br/><span class="hissuMark" style="color: rgb(255, 0, 0);">[必須]</span>');
455						$("#TH" + id).append('<strong>(必須)</strong>');
456					}
457				}
458			}
459		});
460	},
461	valiHanNumEi:function(arry){
462		var ret_Arry = [];
463		var check = 0;
464		for(var i=0;i<arry.length;i++){
465			var leftValue = arry[i].split("=");
466			if(leftValue[0] == "validation_number"){
467				check = check + 1;
468			}else if(leftValue[0] == "validation_alphabet"){
469				check = check + 5;
470			}else{
471				ret_Arry.push(arry[i]);
472			}
473		}
474		if(check == 6){
475			ret_Arry.push("validation_alnum=1");
476		}else{
477			return arry;
478		}
479		return ret_Arry;
480	},
481	valiMinMax2Length:function(arry){
482		var ret_Arry = [];
483		var minVal = 0;
484		var maxVal= 0;
485		for(var i=0;i<arry.length;i++){
486			var leftValue = arry[i].split("=");
487			if(leftValue[0] == "validation_min"){
488				minVal = leftValue[1];
489			}else if(leftValue[0] == "validation_max"){
490				maxVal = leftValue[1];
491			}else{
492				ret_Arry.push(arry[i]);
493			}
494		}
495		if(minVal&&maxVal){
496			ret_Arry.push("validation_lenfth=" + minVal + "-" +  maxVal);
497		}
498		if(minVal&&!maxVal){
499			ret_Arry.push("validation_lenfth=" + minVal + "-");
500		}
501		if(!minVal&&maxVal){
502			ret_Arry.push("validation_lenfth=-" +  maxVal);
503		}
504		return ret_Arry;
505	},
506	eventSet:function(){
507		var _this = this;
508
509		$.each(_this.validate,function(key,value){
510			subject = key;
511			n_subject = subject.split(",");
512			if(n_subject.length == 1){
513				$("#" + subject).change((function(subject){
514					return function() {
515						if(subject){
516							if(!$("#" + subject).hasClass("datepicker")){
517								ret = _this.ruleExe(_this.validate[subject],$(this).val(),subject,subject);
518							}
519						}
520					}
521				})(subject));
522				$("#vali").click((function(subject){
523					return function() {
524						_this.multiClickCheck();
525						if(subject){
526							ret = _this.ruleExe(_this.validate[subject],$("#" + subject).val(),subject,subject);
527						}
528
529					}
530				})(subject));
531			}else if(n_subject.length >1){
532				trigger_subject = n_subject[n_subject.length - 1];
533				for(n=0;n<n_subject.length;n++){
534					trigger_subject = n_subject[n];
535					if(n == n_subject.length - 1){
536						$("#" + trigger_subject).focusout((function(n_subject,trigger_subject){
537							return function() {
538								var vals = "";
539								for(i=0;
539i<n_subject.length;i++){
540									vals = vals + $("#" + n_subject[i]).val();
541								}
542								ret = _this.ruleExe(_this.validate[n_subject],vals,n_subject,trigger_subject);
543							}
544						})(n_subject,trigger_subject));
545						$("#vali").click((function(n_subject,trigger_subject){
546							return function() {
547								var vals = "";
548								for(i=0;i<n_subject.length;i++){
549									vals = vals + $("#" + n_subject[i]).val();
550								}
551								ret = _this.ruleExe(_this.validate[n_subject],vals,n_subject,trigger_subject);
552							}
553						})(n_subject,trigger_subject));
554					}else{
555						$("#" + trigger_subject).focusout((function(n_subject,trigger_subject){
556							return function() {
557								if($("#" + n_subject[n_subject.length - 1]).hasClass("onceFout")){
558									var vals = "";
559									for(i=0;i<n_subject.length;i++){
560										vals = vals + $("#" + n_subject[i]).val();
561									}
562									ret = _this.ruleExe(_this.validate[n_subject],vals,n_subject,trigger_subject);
563								}
564							}
565						})(n_subject,trigger_subject));
566						$("#vali").click((function(n_subject,trigger_subject){
567							return function() {
568								if($("#" + n_subject[n_subject.length - 1]).hasClass("onceFout")){
569									var vals = "";
570									for(i=0;i<n_subject.length;i++){
571										vals = vals + $("#" + n_subject[i]).val();
572									}
573									ret = _this.ruleExe(_this.validate[n_subject],vals,n_subject,trigger_subject);
574								}
575							}
576						})(n_subject,trigger_subject));
577					}
578				}
579			}
580		});
581		_this.privacyCheckSet();
582
583	},
584	privacyCheckSet:function(){
585		var _this = this;
586		$("#vali").click((function(){
587			return function() {
588				if($("#pCheck").length > 0){
589					var subject = 'pCheck';
590					ret = _this.ruleExe(["validation_required=1"],$("#pCheck:checked").val(),subject,subject);
591				}
592
593			}
594		})());
595	},
596	ruleExe:function(subjectRules,inputValue,subject,trigger_subject){
597		var _this = this;
598		ret = true;
599		check_error = "off";
600		for(k=0;k<subjectRules.length;k++){
601			defs = subjectRules[k].split("=");
602			var checkText = true;
603			if($("#" + subject + 'P').length > 0){
604				checkText = $("#" + subject + 'P').prop('checked');
605			}
606			if(checkText){
607				ret = _this.ruleDefPG(defs[0],defs[1],inputValue,subject,trigger_subject);
608			}
609			if(ret == "error"){
610				check_error = "on";
611			}else if(ret == "exit"){
612				return false;
613			}else if(ret == false){
614				return false;
615			}else if(ret == "filterRt"){
616				inputValue = $("#" + subject).val();
617			}else{
618				_this.ok(subject,trigger_subject,check_error);
619			}
620		}
621	},
622	ok:function(subject,trigger_subject,check_error){
623		var _this = this;
624		if(check_error != "on"){
625			if(subject instanceof Array){
626			var message_id  = "";
627				for(i=0;i<subject.length;i++){
628
629					valiObj = $("#" + subject[i]);
630					if(valiObj.hasClass("hissuError")){
631					}else{
632						_this.recoveryWaku(valiObj);
633					}
634					message_id += subject[i] + "-";
635				}
636				if($("#" + message_id + "error").hasClass("aboveSideErrorMsg")){
637					$("#" + message_id + "error").remove();
638				}
639				if($("#" + message_id + "error").hasClass("rightSideErrorMsg")){
640					$("#" + message_id + "error").html("");
641					$("#" + message_id + "error").removeClass("errorMsgY");
642					$("#" + message_id + "error").removeClass("error");
643				}
644			}else{
645				valiObj = $("#" + subject);
646				_this.recoveryWaku(valiObj);
647				if($("#" + subject + "-error").hasClass("aboveSideErrorMsg")){
648					$("#" + subject + "-error").remove();
649				}
650				if($("#" + subject + "-error").hasClass("rightSideErrorMsg")){
651					$("#" + subject + "-error").html("");
652					$("#" + subject + "-error").removeClass("errorMsgY");
653					$("#" + subject + "-error").removeClass("error");
654				}
655			}
656			$("#" + trigger_subject).addClass("onceFout");
657		}
658
659	},
660	recoveryWaku:function(valiObj){
661		var _this = this;
662		// valiObj.removeClass("error_input");
663		valiObj.removeClass("error");
664		return true;
665	},
666	errert:function(mesg,subject,trigger_subject,defName,msgPosition){
667		var _this = this;
668		if($("#vali").val()){
669		}else{
670		}
671		var message_id  = "";
672		if(subject instanceof Array){
673			for(i=0;i<subject.length;i++){
674				message_id += subject[i] + "-";
675			}
676		}else{
677			message_id = subject + "-";
678		}
679		message_id_check = message_id.replace(/\./g, "\.");
680		message_id = message_id.replace(/\\/g, "");
681		if($("#" + message_id_check + "error").length){
682			var mesgObj  = $("#" + message_id_check + "error");
683		}else{
684			if(msgPosition == "above"){
685				var mesgObj     = document.createElement("span");
686				var body = document.getElementsByTagName("body")[0];
687				mesgObj 		= $(mesgObj);
688				mesgObj.css("position","absolute");
689				mesgObj.addClass("aboveSideErrorMsg");
690			}
691			if(mesgObj){
692				mesgObj.attr("id",message_id + "error");
693			}else{
694				return false;
695			}
696		}
697		if(mesgObj.hasClass("errorMsgY")){
698		}else{
699			mesgObj.addClass("errorMsgY");
700			if(mesgObj.hasClass("rightSideErrorMsg")){
701				mesgObj.addClass("error");
702			}
703		}
704		if(msgPosition == "rightSide"){
705		}
706		if(subject instanceof Array){
707			for(i=0;i<subject.length;i++){
708				valiObj = $("#" + subject[i]);
709				_this.errorWaku(valiObj);
710			}
711		}else{
712			valiObj = $("#" + subject);
713			_this.errorWaku(valiObj);
714			if(msgPosition == "above"){
715			}
716		}
717		if(mesgObj.hasClass("rightSideErrorMsg")){
718		}
719		mesgObj.addClass("errorMsgY");
720		if(mesgObj.hasClass("rightSideErrorMsg")){
721			mesgObj.addClass("error");
722		}
723		mesgObj.html(mesg);
724		mesgObj.after("<br />");
725		$("#" + trigger_subject).addClass("onceFout");
726		grecaptcha.reset();
727		return false;
728	},
729	errorWaku:function(valiObj){
730		// valiObj.addClass("error_input");
731		valiObj.addClass("error");
732		return true;
733	},
734	ruleDefPG:function(defName,defvalue,inputValue,subject,trigger_subject){
735		var _this = this;
736		disabledCheck = true;
737		if(subject instanceof Array){
738			for(i=0;i<subject.length;i++){
739				valiObj = $("#" + subject[i]);
740				if(valiObj.attr("disabled")){
741					disabledCheck = false;
742				}
743			}
744		}else{
745			if($("#" + subject).attr("disabled")){
746				disabledCheck = false;
747			}
748		}
749		if(disabledCheck != true){
750			return disabledCheck;
751		}
752		if(defName == "validation_required"){
753
754			if($("#" + subject).hasClass("datepicker")){
755				if($("#" + subject + '_hour').length > 0){
756					inputValue = $("#" + subject + '_hour').val();
757				}
758				if($("#" + subject + '_minute').length > 0){
759					inputValue = $("#" + subject + '_minute').val();
760				}
761			}
762
763			if(inputValue){
764				$("#" + subject).removeClass("hissuError");
765			}else{
766				$("#" + subject).addClass("hissuError");
767				var erMongon = '';
768				if(
769					$("#" + subject).hasClass("T3") ||
770					$("#" + subject).hasClass("T4") ||
771					$("#" + subject).hasClass("T5") ||
772					$("#" + subject).hasClass("T6") ||
773					$("#" + subject).hasClass("T7") ||
774					$("#" + subject).hasClass("T8") ||
775					$("#" + subject).hasClass("T9")
776				){
777					erMongon = '必須選択です ';
778				}else{
779					erMongon = '必須入力項目です ';
780				}
781
782				_this.errert(erMongon,subject,trigger_subject,defName,"above");
783				return "exit";
784			}
785		}
786		if(defName == "includeHissuError"){
787			if(subject instanceof Array){
788				for(i=0;i<subject.length;i++){
789					if($("#" + subject[i]).hasClass("hissuError")){
790						_this.errert("必須入力項目です ",subject,trigger_subject,defName,"rightSide");
791						return "exit";
792					}
793				}
794			}else{
795				if($("#" + subject).hasClass("hissuError")){
796					_this.errert("必須入力",subject,trigger_subject,defName,"rightSide");
797				}
798			}
799		}
800		if(defName == "zenNumHan"){
801			if(
802				(inputValue)
803			){
804				$("#" + subject).val(zenNum2han(inputValue));
805				return "filterRt";
806			}
807		}
808		if(defName == "hiraKana"){
809			if(
810				(inputValue)
811			){
812				$("#" + subject).val(hira2kana(inputValue));
813				return "filterRt";
814			}
815		}
816		if(defName == "zenMailHanMail"){
817			if(
818				(inputValue)
819			){
820				$("#" + subject).val(zenMail2hanMail(inputValue));
821				return "filterRt";
822			}
823		}
824		if(defName == "nullIs0"){
825			if(
826				(inputValue)
827			){
828			}else{
829				$("#" + subject).val(nullIs0(inputValue));
830				return "filterRt";
831			}
832
833		}
834		if(defName == "verify"){
835			if(
836				(inputValue)	&&
837				(isMatch(inputValue,defvalue) != true)
838			){
839				errert("入力内容が一致しません。再度ご入力ください",subject,trigger_subject,defName,"rightSide");
840				return "filterRt";
841			}
842		}
843		if(defName == "hebonHenakn"){
844			if(
845				(inputValue)
846			){
847				var hebonValue = inputValue;
848				$("#" + defvalue).val($.hebon(hebonValue));
849				$("#" + defvalue).trigger("focusout");
850				return "filterRt";
851			}
852		}
853		if(defName == "hebonSync"){
854			if(
855				(inputValue)
856			){
857				$("#" + defvalue).trigger("focusout");
858				return "filterRt";
859			}
860		}
861		if(defName == "spaceRemove"){
862			if(
863				(inputValue)
864			){
865				inputValue = inputValue.replace(/	/g,"");
866				inputValue = inputValue.replace(/ /g,"");
867				inputValue = inputValue.replace(/ /g,"");
868				$("#" + subject).val(inputValue);
869				return "filterRt";
870			}
871		}
872		if(defName == "validation_lenfth"){
873			if(inputValue){
874			}else{
875				return "error";
876			}
877			stLen = defvalue.split("-");
878			if(
879				(stLen[0] >= 1) &&
880				(inputValue.length == 0)
881			){
882				return "error";
883			}else{
884				if(
885					(stLen[0] == stLen[1]) &&
886					(stLen[0] != inputValue.length)
887				){
888					if(_this.errert(stLen[0] + "文字で入力してください",subject,trigger_subject,defName,"rightSide")){
889						return "error";
890					}else{
891						return false;
892					}
893				}else if(inputValue.length < stLen[0]){
894					if(_this.errert(stLen[0] + "文字以上で入力してください",subject,trigger_subject,defName,"rightSide")){
895						return "error";
896					}else{
897						return false;
898					}
899				}else if(inputValue.length > stLen[1] && stLen[1].length > 0){
900					if(_this.errert(stLen[1] + "文字以下で入力してください",subject,trigger_subject,defName,"rightSide")){
901						return "error";
902					}else{
903						return false;
904					}
905				}
906			}
907			if(inputValue.length == 0){
908				return false;
909			}else{
910				return true;
911			}
912		}
913		if(defName == "validation_number"){
914			inputValue = _this.zenNum2han(inputValue);
915			$("#" + subject).val(inputValue);
916			if(
917				(inputValue)	&&
918				(_this.isNum(inputValue) != true)
919			){
920				if(_this.errert("数字のみ入力してください",subject,trigger_subject,defName,"rightSide")){
921					return "error";
922				}else{
923					return false;
924				}
925			}else{
926				return true;
927			}
928		}
929		if(defName == "is11Number"){
930			if(
931				(inputValue)	&&
932				(is11Number(inputValue,$("#" + defvalue).val()) != true)
933			){
934				if(errert("0*0で始まる番号は11桁で入力してください",subject,trigger_subject,defName,"rightSide")){
935					return "error";
936				}else{
937					return false;
938				}
939			}else{
940				return true;
941			}
942		}
943		if(defName == "validation_zip"){
944			inputValue = _this.zenNum2han(inputValue);
945			$("#" + subject).val(inputValue);
946
947			if(
948				(inputValue)	&&
949				(_this.zipNumber(inputValue) != true)
950			){
951				if(_this.errert("数字7桁を入力してください",subject,trigger_subject,defName,"rightSide")){
952					return "error";
953				}else{
954					return false;
955				}
956			}else{
957				return true;
958			}
959		}
960		if(defName == "validation_tel"){
961			inputValue = _this.zenNum2han(inputValue);
962			$("#" + subject).val(inputValue);
963
964			if(
965				(inputValue)	&&
966				(_this.telNumber(inputValue) != true)
967			){
968				if(_this.errert("ただしい電話番号を入力してください",subject,trigger_subject,defName,"rightSide")){
969					return "error";
970				}else{
971					return false;
972				}
973			}else{
974				return true;
975			}
976		}
977		if(defName == "validation_tel_overseas"){
978			inputValue = _this.zenNum2han(inputValue);
979			$("#" + subject).val(inputValue);
980
981			if(
982				(inputValue)	&&
983				(_this.telNumberOverseas(inputValue) != true)
984			){
985				if(_this.errert("ただしい電話番号を入力してください",subject,trigger_subject,defName,"rightSide")){
986					return "error";
987				}else{
988					return false;
989				}
990			}else{
991				return true;
992			}
993		}
994		if(defName == "ifKanjiNotNullisHiss"){
995			if(
996				(ifKanjiNotNullisHiss(inputValue,defvalue) != true)
997			){
998				if(errert("カナを入力してください",subject,trigger_subject,defName,"rightSide")){
999					return "error";
1000				}else{
1001					return false;
1002				}
1003			}else{
1004				return true;
1005			}
1006		}
1007		if(defName == "ifKanaNotNullisHiss"){
1008			if(
1009				(ifKanaNotNullisHiss(inputValue,defvalue) != true)
1010			){
1011				if(errert("漢字を入力してください",subject,trigger_subject,defName,"rightSide")){
1012					return "error";
1013				}else{
1014					return false;
1015				}
1016			}else{
1017				return true;
1018			}
1019		}
1020		if(defName == "ifKeitaiAppPersonalCellNoDisabled"){
1021			if(
1022				(inputValue)	&&
1023				(ifKeitaiAppPersonalCellNoDisabled(defvalue) == true)
1024			){
1025				return true;
1026			}else{
1027				return true;
1028			}
1029		}
1030		if(defName == "is10Number"){
1031			if(
1032				(inputValue)	&&
1033				(is10Number(inputValue,$("#" + defvalue).val()) != true)
1034			){
1035				if(errert("0*0以外で始まる番号は10桁で入力してください",subject,trigger_subject,defName,"rightSide")){
1036					return "error";
1037				}else{
1038					return false;
1039				}
1040			}else{
1041				return true;
1042			}
1043		}
1044		if(defName == "isKinmuTelNG"){
1045			if(
1046				(inputValue)	&&
1047				(isKinmuTelNG($("#" + defvalue).val()) != true)
1048			){
1049				if(errert("携帯の番号は入力できません",subject,trigger_subject,defName,"rightSide")){
1050					return "error";
1051				}else{
1052					return false;
1053				}
1054			}else{
1055				return true;
1056			}
1057		}
1058		if(defName == "isNgNumber"){
1059			if(
1060				(inputValue)	&&
1061				(isNgNumber($("#" + defvalue).val()) != true)
1062			){
1063				if(errert("0120,0570で始まる番号は入力できません",subject,trigger_subject,defName,"rightSide")){
1064					return "error";
1065				}else{
1066					return false;
1067				}
1068			}else{
1069				return true;
1070			}
1071		}
1072		if(defName == "isChecked"){
1073			if(
1074				(isChecked(subject) != true)
1075			){
1076				if(errert("チェックしてください",subject,trigger_subject,defName,"rightSide")){
1077					return "error";
1078				}else{
1079					return false;
1080				}
1081			}else{
1082				return true;
1083			}
1084		}
1085		if(defName == "isStep2SchoolTypeChecked"){
1086			if(
1087				(isChecked(subject) != true)
1088			){
1089				if(errert("選択してください","icEntryDO\\.application\\.schoolType",trigger_subject,defName,"rightSide")){
1090					return "error";
1091				}else{
1092					return false;
1093				}
1094			}else{
1095				$("#icEntryDO\\.application\\.schoolType-error").removeClass("errorMsgY");
1096				$("#icEntryDO\\.application\\.schoolType-error").removeClass("error");
1097				$("#icEntryDO\\.application\\.schoolType-error").html("");
1098				return true;
1099			}
1100		}
1101		if(defName == "isStep2CashingLimitChecked"){
1102			if(
1103				(isChecked(subject) != true)
1104			){
1105				if(errert("選択してください","icEntryDO\\.application\\.cashingLimit",trigger_subject,defName,"rightSide")){
1106					return "error";
1107				}else{
1108					return false;
1109				}
1110			}else{
1111				$("#icEntryDO\\.application\\.cashingLimit-error").removeClass("errorMsgY");
1112				$("#icEntryDO\\.application\\.cashingLimit-error").removeClass("error");
1113				$("#icEntryDO\\.application\\.cashingLimit-error").html("");
1114				return true;
1115			}
1116		}
1117		if(defName == "isStep2SharingDivisionChecked"){
1118			if(
1119				(isChecked(subject) != true)
1120			){
1121				if(errert("選択してください","icEntryDO\\.appOther\\.sharingDivision",trigger_subject,defName,"rightSide")){
1122					return "error";
1123				}else{
1124					return false;
1125				}
1126			}else{
1127				$("#icEntryDO\\.appOther\\.sharingDivision-error").removeClass("errorMsgY");
1128				$("#icEntryDO\\.appOther\\.sharingDivision-error").removeClass("error");
1129				$("#icEntryDO\\.appOther\\.sharingDivision-error").html("");
1130				return true;
1131			}
1132		}
1133		if(defName == "isSeiSeisu"){
1134			if(
1135				(inputValue)	&&
1136				(isSeiSeisu(inputValue) != true)
1137			){
1138				if(errert("正しい数字を入れてください",subject,trigger_subject,defName,"rightSide")){
1139					return "error";
1140				}else{
1141					return false;
1142				}
1143			}else{
1144				return true;
1145			}
1146		}
1147		if(defName == "dwellDateMmCheck"){
1148			if(
1149				(inputValue)
1150			){
1151			mm = $("#" + subject[1]).val();
1152				if(mm){
1153					if(mm > 11){
1154						if(errert("月は0から11の間で入力してください",subject,trigger_subject,defName,"rightSide")){
1155							return "error";
1156						}else{
1157							return false;
1158						}
1159					}
1160				}
1161			}else{
1162				return true;
1163			}
1164		}
1165		if(defName == "isNGWord"){
1166			chWord = isNGWord(inputValue);
1167			if(
1168				(inputValue)	&&
1169				(chWord != false)
1170			){
1171				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1172					return "error";
1173				}else{
1174					return false;
1175				}
1176			}else{
1177				return true;
1178			}
1179		}
1180		if(defName == "isDate"){
1181			if(
1182				(inputValue)	&&
1183				(isDate($("#" + subject[0]).val(),$("#" + subject[1]).val(),$("#" + subject[2]).val()) != true)
1184			){
1185				if(errert("正しい日付を入力してください",subject,trigger_subject,defName,"rightSide")){
1186					return "error";
1187				}else{
1188					return false;
1189				}
1190			}else{
1191				return true;
1192			}
1193		}
1194		if(defName == "isMonth"){
1195			if(
1196				(inputValue)	&&
1197				(isMonth(inputValue) != true)
1198			){
1199				if(errert("正しい月を入力してください",subject,trigger_subject,defName,"rightSide")){
1200					return "error";
1201				}else{
1202					return false;
1203				}
1204			}else{
1205				return true;
1206			}
1207		}
1208		if(defName == "isMinDate"){
1209			if(
1210				(inputValue)	&&
1211				(isMinDate($("#" + subject[0]).val(),$("#" + subject[1]).val(),$("#" + subject[2]).val(),defvalue) != true)
1212			){
1213				if(errert("正しい日付を入力してください",subject,trigger_subject,defName,"rightSide")){
1214					return "error";
1215				}else{
1216					return false;
1217				}
1218			}else{
1219				return true;
1220			}
1221		}
1222		if(defName == "isUnderSystemDate"){
1223			if(
1224				(inputValue)	&&
1225				(isUnderSystemDate($("#" + subject[0]).val(),$("#" + subject[1]).val(),$("#" + subject[2]).val()) != true)
1226			){
1227				if(errert("正しい日付を入力してください",subject,trigger_subject,defName,"rightSide")){
1228					return "error";
1229				}else{
1230					return false;
1231				}
1232			}else{
1233				return true;
1234			}
1235		}
1236		if(defName == "isDateYYYYMM"){
1237			if(
1238				(inputValue)	&&
1239				(isDateYYYYMM($("#" + subject[0]).val(),$("#" + subject[1]).val()) != true)
1240			){
1241				if(errert("正しい日付を入力してください",subject,trigger_subject,defName,"rightSide")){
1242					return "error";
1243				}else{
1244					return false;
1245				}
1246			}else{
1247				return true;
1248			}
1249		}
1250		if(defName == "isHanKana"){
1251			chWord = isHanKana(inputValue);
1252			if(
1253				(inputValue)	&&
1254				(chWord != false)
1255			){
1256				if(errert("半角カナ文字は使用できません",subject,trigger_subject,defName,"rightSide")){
1257					return "error";
1258				}else{
1259					return false;
1260				}
1261			}else{
1262				return true;
1263			}
1264		}
1265		if(defName == "isKigou"){
1266			chWord = isKigou(inputValue);
1267			if(
1268				(inputValue)	&&
1269				(chWord != false)
1270			){
1271				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1272					return "error";
1273				}else{
1274					return false;
1275				}
1276			}else{
1277				return true;
1278			}
1279		}
1280		if(defName == "isNameNg"){
1281			chWord = isNameNg(inputValue);
1282			if(
1283				(inputValue)	&&
1284				(chWord != false)
1285			){
1286				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1287					return "error";
1288				}else{
1289					return false;
1290				}
1291			}else{
1292				return true;
1293			}
1294		}
1295		if(defName == "isKinsoku"){
1296			chWord = isKinsoku(inputValue);
1297			if(
1298				(inputValue)	&&
1299				(chWord != false)
1300			){
1301				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1302					return "error";
1303				}else{
1304					return false;
1305				}
1306			}else{
1307				return true;
1308			}
1309		}
1310		if(defName == "isEisuNG"){
1311			chWord = isEisuNG(inputValue);
1312			if(
1313				(inputValue)	&&
1314				(chWord != false)
1315			){
1316				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1317					return "error";
1318				}else{
1319					return false;
1320				}
1321			}else{
1322				return true;
1323			}
1324		}
1325		if(defName == "isOnlyOEi"){
1326			chWord = _this.isOnlyOEi(inputValue);
1327			if(
1328				(inputValue)	&&
1329				(chWord == false)
1330			){
1331				if(_this.errert("大文字英字のみでお願いします",subject,trigger_subject,defName,"rightSide")){
1332					return "error";
1333				}else{
1334					return false;
1335				}
1336			}else{
1337				return true;
1338			}
1339		}
1340		if(defName == "validation_alphabet"){
1341			inputValue = _this.zenEi2han(inputValue);
1342			$("#" + subject).val(inputValue);
1343			chWord = _this.isOnlyKoEi(inputValue);
1344			if(
1345				(inputValue)	&&
1346				(chWord == false)
1347			){
1348				if(_this.errert("半角英字のみでお願いします",subject,trigger_subject,defName,"rightSide")){
1349					return "error";
1350				}else{
1351					return false;
1352				}
1353			}else{
1354				return true;
1355			}
1356		}
1357		if(defName == "validation_alnum"){
1358			inputValue = _this.zenEi2han(inputValue);
1359			$("#" + subject).val(inputValue);
1360
1361			inputValue = _this.zenNum2han(inputValue);
1362			$("#" + subject).val(inputValue);
1363
1364
1365			chWord = _this.isOnlyAlNum(inputValue);
1366			if(
1367				(inputValue)	&&
1368				(chWord == false)
1369			){
1370				if(_this.errert("半角英数字のみでお願いします",subject,trigger_subject,defName,"rightSide")){
1371					return "error";
1372				}else{
1373					return false;
1374				}
1375			}else{
1376				return true;
1377			}
1378		}
1379		if(defName == "isZenEisuNG"){
1380			chWord = isZenEisuNG(inputValue);
1381			if(
1382				(inputValue)	&&
1383				(chWord != false)
1384			){
1385				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1386					return "error";
1387				}else{
1388					return false;
1389				}
1390			}else{
1391				return true;
1392			}
1393		}
1394		if(defName == "isNGWordName"){
1395			chWord = isNGWordName(inputValue);
1396			if(
1397				(inputValue)	&&
1398				(chWord != false)
1399			){
1400				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1401					return "error";
1402				}else{
1403					return false;
1404				}
1405			}else{
1406				return true;
1407			}
1408		}
1409		if(defName == "validation_email"){
1410
1411			if(_this.blockedEmailP.length > 0){
1412				var ngMailAr = _this.blockedEmailP.split(",");
1413				var ngFlg = false;
1414				for( var i=0 ; i<ngMailAr.length ; i++ ) {
1415				   re = new RegExp("." + ngMailAr[i], "i");
1416					if (inputValue.match(re)) {
1417						ngFlg = true;
1418					}
1419				}
1420
1421				if (ngFlg) {
1422				    if(_this.errert("このメールアドレスはご使用できません",subject,trigger_subject,defName,"rightSide")){
1423						return "error";
1424					}else{
1425						return false;
1426					}
1427				}
1428			}
1429
1430			inputValue = _this.zenMail2hanMail(inputValue);
1431			$("#" + subject).val(inputValue);
1432			if(
1433				(inputValue)	&&
1434				(_this.isEmail(inputValue) != true)
1435			){
1436				if(_this.errert("無効なメールアドレスです",subject,trigger_subject,defName,"rightSide")){
1437					return "error";
1438				}else{
1439					return false;
1440				}
1441			}else{
1442				return true;
1443			}
1444		}
1445		if(defName == "isMailNG"){
1446			chWord = isMailNG(inputValue);
1447			if(
1448				(inputValue)	&&
1449				(chWord != false)
1450			){
1451				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1452					return "error";
1453				}else{
1454					return false;
1455				}
1456			}else{
1457				return true;
1458			}
1459		}
1460		if(defName == "validation_katakana"){
1461			inputValue = _this.hira2kana(inputValue);
1462			$("#" + subject).val(inputValue);
1463			if(
1464				(inputValue)	&&
1465				(_this.isZenKana(inputValue) != true)
1466			){
1467				if(_this.errert("全角カナで入力してください",subject,trigger_subject,defName,"rightSide")){
1468					return "error";
1469				}else{
1470					return false;
1471				}
1472			}else{
1473				return true;
1474			}
1475		}
1476		if(defName == "validation_hirakana"){
1477			inputValue = inputValue.replace(/	/g,"");
1478			inputValue = inputValue.replace(/ /g,"");
1479			inputValue = inputValue.replace(/ /g,"");
1480			if(
1481				(inputValue)	&&
1482				(_this.isZenHiraKana(inputValue) != true)
1483			){
1484				if(_this.errert("全角ひらがなで入力してください",subject,trigger_subject,defName,"rightSide")){
1485					return "error";
1486				}else{
1487					return false;
1488				}
1489			}else{
1490				return true;
1491			}
1492		}
1493		if(defName == "validation_multibyte"){
1494			inputValue = inputValue.replace(/	/g,"");
1495			inputValue = inputValue.replace(/ /g,"");
1496			inputValue = inputValue.replace(/ /g,"");
1497			if(
1498				(inputValue)	&&
1499				(_this.isZenKaku(inputValue) != true)
1500			){
1501				if(_this.errert("全角文字で入力してください",subject,trigger_subject,defName,"rightSide")){
1502					return "error";
1503				}else{
1504					return false;
1505				}
1506			}else{
1507				return true;
1508			}
1509		}
1510		if(defName == "addressKana"){
1511			if(
1512				(inputValue)	&&
1513				(addressKana(inputValue) != true)
1514			){
1515				if(errert("不正な文字が含まれています",subject,trigger_subject,defName,"rightSide")){
1516					return "error";
1517				}else{
1518					return false;
1519				}
1520			}else{
1521				return true;
1522			}
1523		}
1524		if(defName == "atama0"){
1525			if(
1526				(inputValue)	&&
1527				(inputValue.charAt(0) != "0")
1528			){
1529				if(errert("頭の数字は0でお願いします",subject,trigger_subject,defName,"rightSide")){
1530					return "error";
1531				}else{
1532					return false;
1533				}
1534			}else{
1535				return true;
1536			}
1537		}
1538		if(defName == "atamaKeitai"){
1539			if(
1540				(inputValue)	&&
1541				(atamaKeitai(inputValue) != true)
1542			){
1543				if(errert("最初の3桁は070,080,090のみ入力してください",subject,trigger_subject,defName,"rightSide")){
1544					return "error";
1545				}else{
1546					return false;
1547				}
1548			}else{
1549				return true;
1550			}
1551		}
1552		if(defName == "contactTel"){
1553			var tel = $("#icEntryDO\\.appPersonal\\.tel\\.no1").val();
1554			var age = $("#icEntryDO\\.appPersonal\\.age").val();
1555			if ((age != null && age < 26) && (tel != null && atamaKeitai(tel))) {
1556				if(inputValue){
1557					$("#" + subject).removeClass("hissuError");
1558				}else{
1559					$("#" + subject).addClass("hissuError");
1560					errert("必須入力項目です",subject,trigger_subject,defName,"above");
1561					return "exit";
1562				}
1563			} else {
1564				$("#" + subject).removeClass("hissuError");
1565			}
1566		}
1567	},
1568	isEmail:function(str) {
1569		if (str.match(/^([A-Za-z0-9_\-\.])+@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/)){
1570			return true;
1571		}else{
1572			return false;
1573		}
1574	},
1575	isNum:function(value){
1576		return (value.match(/[0-9]+/g) == value);
1577	},
1578	isJpTelMoji:function(value){
1579		chWord = str.match(/[0-9-]/g);
1580		if (chWord) {
1581			return true;
1582		}else{
1583			return false;
1584		}
1585	},
1586	isJpTelLen:function(value){
1587		return (value.match(/[0-9]+/g) == value);
1588	},
1589	isZenKana:function(str) {
1590		var _this=this;
1591	 	if (str.match(/^[\u30A0-\u30FF ー  ]+$/)) {
1592			return true;
1593		}else{
1594			return false;
1595		}
1596	},
1597	isZenHiraKana:function(str) {
1598		var _this=this;
1599	 	if (str.match(/^[ぁ-ん]+$/)) {
1600			return true;
1601		}else{
1602			return false;
1603		}
1604	},
1605	hira2kana:function(str){
1606		var _this=this;
1607		var zenNum = new Array("ぁ","あ","ぃ","い","ぅ","う","ぇ","え","ぉ","お","か","が","き","ぎ","く","ぐ","け","げ","こ","ご","さ","ざ","し","じ","す","ず","せ","ぜ","そ","ぞ","た","だ","ち","ぢ","っ","つ","づ","て","で","と","ど","な","に","ぬ","ね","の","は","ば","ぱ","ひ","び","ぴ","ふ","ぶ","ぷ","へ","べ","ぺ","ほ","ぼ","ぽ","ま","み","む","め","も","ゃ","や","ゅ","ゆ","ょ","よ","ら","り","る","れ","ろ","ゎ","わ","ゐ","ゑ","を","ん");
1608		var hanNum = new Array("ァ","ア","ィ","イ","ゥ","ウ","ェ","エ","ォ","オ","カ","ガ","キ","ギ","ク","グ","ケ","ゲ","コ","ゴ","サ","ザ","シ","ジ","ス","ズ","セ","ゼ","ソ","ゾ","タ","ダ","チ","ヂ","ッ","ツ","ヅ","テ","デ","ト","ド","ナ","ニ","ヌ","ネ","ノ","ハ","バ","パ","ヒ","ビ","ピ","フ","ブ","プ","ヘ","ベ","ペ","ホ","ボ","ポ","マ","ミ","ム","メ","モ","ャ","ヤ","ュ","ユ","ョ","ヨ","ラ","リ","ル","レ","ロ","ヮ","ワ","ヰ","ヱ","ヲ","ン");
1609		while(str.match(/[ぁ-ん]/)){
1610			for(i=0;i<zenNum.length; i++){
1611				str= str.replace(zenNum[i],hanNum[i]);
1612			}
1613		}
1614		return str;
1615	},
1616	zenNum2han:function(str){
1617		var zenNum = new Array("1","2","3","4","5","6","7","8","9","0","ー","ー","-","+");
1618		var hanNum = new Array("1","2","3","4","5","6","7","8","9","0","-","-","-","+");
1619		while(str.match(/[0-9ー]/)){
1620			for(i=0;i<zenNum.length; i++){
1621				str= str.replace(zenNum[i],hanNum[i]);
1622			}
1623		}
1624		return str;
1625	},
1626	zenMail2hanMail:function(str){
1627		var zenNum = new Array("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","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","0","1","2","3","4","5","6","7","8","9","ー","_",".","@");
1628		var hanNum = new Array("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","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","0","1","2","3","4","5","6","7","8","9","-","_",".","@");
1629		//while(str.match(/[A-Z,a-z,0-9,ー_.@]/)){
1630			for(i=0;i<zenNum.length; i++){
1631				str= str.replace(zenNum[i],hanNum[i]);
1632			}
1633		//}
1634		return str;
1635	},
1636	zenEi2han:function(str){
1637		var zenNum = new Array("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","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","0","1","2","3","4","5","6","7","8","9");
1638		var hanNum = new Array("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","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","0","1","2","3","4","5","6","7","8","9");
1639		while(str.match(/[A-Za-z0-9]/)){
1640			for(i=0;i<zenNum.length; i++){
1641				str= str.replace(zenNum[i],hanNum[i]);
1642			}
1643		}
1644		return str;
1645	},
1646	zipNumber:function(str) {
1647		str= str.replace(/-/g,"");
1648		str= str.replace(/-/g,"");
1649		str= str.replace(/−/g,"");
1650		if (str.match(/^\d{7}$/)) {
1651			return true;
1652		}else{
1653			return false;
1654		}
1655	},
1656	telNumber:function(str) {
1657		str= str.replace(/-/g,"");
1658		str= str.replace(/-/g,"");
1659		str= str.replace(/−/g,"");
1660		if (str.match(/^0\d{10}$/)) {
1661			return true;
1662		}else{
1663			if (str.match(/^0\d{9}$/)) {
1664				return true;
1665			}else{
1666				return false;
1667			}
1668			return false;
1669		}
1670	},
1671	telNumberOverseas:function(str) {
1672		str= str.replace(/-/g,"");
1673		str= str.replace(/-/g,"");
1674		str= str.replace(/−/g,"");
1675		str= str.replace(/+/g,"");
1676		str= str.replace(/\+/g,"");
1677		return (str.match(/[0-9]+/g) == str);
1678	},
1679	isZenKaku:function(str){
1680		if (str.match(/^[^ -~。-゚]*$/)) {
1681	    	return true;
1682		} else {
1683		    return false;
1684		}
1685	},
1686	isOnlyKoEi:function(str){
1687		chWord = str.match(/[^a-zA-Z]/g);
1688		if (chWord) {
1689			return false;
1690		}else{
1691			return true;
1692		}
1693	},
1694	isOnlyAlNum:function(str){
1695		chWord = str.match(/[^0-9a-zA-Z]/g);
1696		if (chWord) {
1697			return false;
1698		}else{
1699			return true;
1700		}
1701	}
1702
1703}
1704
1705
1706var Validation;
1707$(document).ready(function(){
1708  Validation = new validation();
1709
1710  var form_code = 'inquiry';
1711  var script = document.createElement('script'); 
1712  script.src = "./js/form_"+form_code+".js"; 
1713  document.head.appendChild(script); 
1714
1715  Validation.init();
1716});
1717
1718
1719// reChptcha用起動func
1720function onSubmit(token) {
1721	// alert("A");
1722	Validation.pushSendButton();
1723}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.