PageSourceSearch

https://www.journalomp.org/js/script.js

js journalomp.org collected 2026-10-06 01:46:21 UTC 1,152 bytes, 37 lines download raw bytes

1// 빈값 검사 (메세지 출력 / 공백을 제외하고 빈값이면 true 아니면 false)
2function chkBlank_msg(box, msg) {
3	var valid = box.value.replace(/\s/gi,"");
4	if (valid=="") {
5		if (!msg) msg = "빈 값입니다. 값을 입력하세요.";
6		alert(msg); box.focus();
7		return true;
8	}
9	return false;
10}
11
12// 라디오버튼 체크 (선택된 것이 있으면 false 선택된 것이 없으면 true값 리턴하고 메세지 출력)
13function chkRadio_msg(box, msg) {
14	var cnt = 0;
15	for (var i=0; i<box.length; i++) {
16		if (box[i].checked) return false;
17	}
18	if (!msg) msg = "선택항목을 하나 이상 선택하십시오.";
19	alert(msg);
20	box[0].focus();
21	return true;
22}
23
24// 이메일 주소 형식 체크
25function isEmail(str) {
26	var supported = 0;
27	if (window.RegExp) {
28		var tempStr = "a";
29		var tempReg = new RegExp(tempStr);
30		if (tempReg.test(tempStr)) supported = 1;
31	}
32	if (!supported)
33	return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
34	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
35	var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
36	return (!r1.test(str) && r2.test(str));
37}

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.