PageSourceSearch

https://www.fyf.or.kr/share/js/js_common.js

js fyf.or.kr collected 2026-10-05 09:38:17 UTC 1,907 bytes, 72 lines download raw bytes

1	function moveFocus(num,fromform,toform)
2	{
3		var str = fromform.value.length;
4		if(str == num)
5		toform.focus();
6	}
7
8	function enter_press(){
9		var key	= event.keyCode;
10		if(key == 13) {	//javascript에서는 13이 enter키를 의미함
11			document.searchForm.submit(); //formname에 사용자가 지정한 form의 name입력
12		}
13	}
14
15	function CheckNumLength(no, length) {
16		var nNum = String(no).replace(/\..*|[^\d]/g, "");
17		if (nNum.length > parseInt(length, 10)) {
18			nNum = nNum.substring(0, nNum.length - 1);
19		}
20		return nNum;
21	}
22
23	function Only_ChangeNum(val) {
24		var nNum = String(val).replace(/\..*|[^\d]/g, "");
25		return nNum;
26	}
27
28	// 공백 제거
29	function trim(str) {
30		i = 0;
31		if(str.charAt(i) == " ") {
32			for(; i<str.length && str.charAt(i) == " "; i++) ;
33			str = str.substring(i, str.length);
34		}
35		else str = str.substring(i, str.length);
36
37		i=str.length-1;
38		if(str.charAt(i) == " ") {
39			for(; i >= 0 && str.charAt(i) == " "; i--) ;
40			str = str.substring(0, i+1);
41		}
42		else str = str.substring(0, i+1);
43
44		return str;
45	}
46
47	// 새창 띄우는 함수		last modify : 2011-09-28
48	function openWindow(url,name,width,height,scroll)
49	{
50		var x = (window.screen.width - width) / 2;
51		var y = (window.screen.height - height) / 2;
52
53		if (!scroll)
54		{
55			scroll = "no";
56		}
57
58		window.open(url,name,'width=' + width + ',height=' + height + ',left=' + x + ',top=' + y + ',scrollbars=' + scroll);
59//		window.open(url,name,'Status=yes, Tpplbar=yes, Menubar=yes','width=' + width + ',height=' + height + ',left=' + x + ',top=' + y + ',scrollbars=' + scroll);
60	}
61
62	function email_checked(f) {
63		if (f.value.length > 0) {
64			if (f.value.search(/(\S+)@(\S+)\.(\S+)/)== -1 ) {
65				alert("올바른 e-mail형식이 아닙니다.\n다시입력하세요.")
66				f.value="";
67				f.focus();
68				return false;
69			}
70		}
71		return true;
72	}

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.