PageSourceSearch

https://www.mbl.or.kr/submission/Source/script.js?v=2610040252

js mbl.or.kr collected 2026-10-03 17:52:14 UTC 53,804 bytes, 2,135 lines download raw bytes

1<!--
2// Blue!!		2006-04-12		의사면허번호 검색
3var ROOT_URL = "/submission";
4var FILE_URL = ROOT_URL + "/File";
5
6// #################################################
7var _SET = Array();
8	_SET[0] = "Document type";
9	_SET[1] = "Cate";
10	_SET[2] = "논문제목 (국문)";
11	_SET[3] = "Title";
12
13	_SET[4] = "간추린제목 (국문)";
14	_SET[41] = "Running Title";
15	_SET[5] = "초록 (국문)";
16	_SET[6] = "Abstract";
17
18	_SET[7] = "KeyWords (국문)";
19	_SET[8] = "KeyWords";
20
21	_SET[9] = "Acknowledgement";
22	_SET[10] = "Full text file";
23	_SET[11] = "Figure";
24
25	_SET[12] = "First Author";
26	_SET[13] = "Corresponding Author";
27	_SET[14] = "Co-Author";
28
29	_SET[15] = "Table";
30	_SET[16] = "copyright";
31	_SET[17] = "Reference";
32	_SET[18] = "File Information (Use Color)";			// 원문에 색상 사용
33	_SET[19] = "Associate Editor";						// 편집운영위원
34
35	_SET[20] = "Comments to the Author";
36	_SET[21] = "Files";
37// #################################################
38
39	//	Blue		2006-10-16		저자정보 테이블 순서
40	var grpSltArr = new Array('', '1', '2', '3', '4', '5', '6', '7', '8', '9');
41	var prefixSltArr = new Array('M.D.', 'D.', '-');
42
43	//직위 추가 
44	var positionArr = new Array('', 'Professor','Doctor','Research Professor','Post Doc','Intern','Doctor&#39;s degree','Master&#39;s degree','Researcher','Undergraduate student','Student - High school student, grade','Student - Middle school student, grade','Etc');	
45
46
47
48	// Blue !!!	2009-03-12	참고문헌 링크 배열(반드시 $Reference_LinkArr 을 확인해주세요.)
49	//var Reference_LinkArr = new Array("<img src='http://jmb.inforang.com/submission/Icon/mesh_search.gif' />", "<img src='http://jmb.inforang.com/submission/Icon/mesh_search.gif' />", "<img src='http://jmb.inforang.com/submission/Icon/mesh_search.gif' />", "<img src='http://jmb.inforang.com/submission/Icon/mesh_search.gif' />", "<img src='http://jmb.inforang.com/submission/Icon/mesh_search.gif' />");
50	var Reference_LinkArr = new Array("<img src='http://jmb.or.kr/submission/Icon/ReficonPubmed.gif' />", "<img src='http://jmb.or.kr/submission/Icon/ReficonCrossRef.gif' />", "<img src='http://jmb.or.kr/submission/Icon/ReficonPMC.gif' />");
51
52
53
54// 윈도 중앙 오픈 ^^& 2004-11-04		상단 메뉴를 포함한다....  top + 100
55function WinOpen_Fun(INS, targetUrl, constWidth, constHeight, constTop, constLeft, otherOption)
56{
57	if (constTop == '') {	var constTop = top.document.body.clientHeight/2 - constHeight/2 + 100;	}
58	if (constLeft == '') {	var constLeft = top.document.body.clientWidth/2 - constWidth/2;	}
59
60	var openOption = 'top=' + constTop + ',left=' + constLeft + ',width=' + constWidth + ',height=' + constHeight + otherOption;
61	window.open(targetUrl, INS, openOption);
62	return false;
63}
64
65// Blue !!!	2007-01-10	window.open
66function windowOpen(theURL, winName, width, height, features) {
67	var left = (screen.width - width)/2;
68	var top = (screen.height - height)/2 - 25;
69	var tmpVL = "left=" + left + ",top=" + top + ", width=" + width + ", height=" + height + features + "";
70
71	window.open(theURL, winName, tmpVL);
72	return false;
73}
74
75// Blue !!!	2007-01-10	replace
76function replace3(str, out, add) {
77	temp = "" + str;
78	while (temp.indexOf(out)>-1) {
79		pos= temp.indexOf(out);
80		temp = "" + (temp.substring(0, pos) + add +
81		temp.substring((pos + out.length), temp.length));
82	}
83	return temp;
84}
85
86//	Blue		2006-10-24		중복 등록 체크  :: 페이지 하단에 폼이 존재합니당.
87function set_Dbl_Chk(Mode, strMent) {
88	var st = document.Dbl_ChkForm;
89	var strMent = '';
90
91	switch (Mode)
92	{
93		case 'C':							// Blue !!!	2006-10-25	값이 있는지 Check
94			if (!strMent) strMent = "※ 진행중 입니다.\n\n조금만 기다려 주세요..";
95
96			if (st.Dbl_Chk.value == 'Y') {
97				alert(strMent);
98				return false;
99			} else {
100				return true;
101			}
102		break;
103
104		case 'U':							// Blue !!!	2006-10-25	Y 값을 넣어준다.
105			st.Dbl_Chk.value = 'Y';
106			return true;
107		break;
108
109		default:
110			return true;
111	}
112}
113
114//	Blue		2007-01-09		자수 체크
115function CharacterCount(strName, strLimit)
116{
117	if (strLimit <= 0) {
118		return false;
119	}
120
121	var strGet = '';
122
123	strGet = eval("document.Thesis_Form." + strName);
124	tmpStrGet = strGet.value;
125
126	if (strLimit == '') return true;						// 길이가 없다면 길이 상관 필요 없다는 뜻이므로 넘어간다.
127
128	var bodyVal = tmpStrGet;
129	var bodyLen = bodyVal.length;
130
131	if(bodyLen > strLimit)
132	{
133		document.getElementById(strName + "_Status").innerText = bodyLen + " / " + strLimit;
134		alert("Current bytes : " + bodyLen +  "\n\nThe word length was exceeded the regulation (" + strLimit + " bytes)");
135		return false;
136	} else {
137		document.getElementById(strName + "_Status").innerText = bodyLen + " / " + strLimit;
138	}
139}
140
141//	Blue		2006-06-26		바이트 체크
142function ByteCount(strName)
143{
144	var strGet = '';
145
146	strGet = eval("document.sform." + strName);
147	strLimit = eval("document.sform." + strName + "_Limit").value;					//	Blue		반드시 이름규칙을 마추자~
148
149	if (strLimit == '') return true;						// 길이가 없다면 길이 상관 필요 없다는 뜻이므로 넘어간다.
150
151	var bodyVal = strGet.value;
152	var bodyLen = bodyVal.length;
153	var bytesLen = 0;
154	var validBodyLen = 0;
155	var validBytesLen = 0;
156
157	for (var i = 0; i < bodyLen; i++)
158	{
159		var oneChar = bodyVal.charAt(i);
160
161		if (escape(oneChar).length > 4) {
162				bytesLen += 2;
163		} else if (oneChar!='\r') {
164				bytesLen++;
165		}
166
167		if(bytesLen <= strLimit)
168		{
169			validBodyLen = i + 1;
170			validBytesLen = bytesLen;
171		}
172	}
173
174	if(bytesLen > strLimit)
175	{
176		alert("Current bytes : " + bytesLen +  "\n\nThe word length was exceeded the regulation (" + strLimit + " bytes)");
177		var realBodyVal = bodyVal.substr(0, validBodyLen);
178		var bytesVal = validBytesLen;
179	} else {
180		document.getElementById(strName + "_Status").innerText = bytesLen + " / " + strLimit;
181	}
182}
183
184
185//	Blue		2006-06-26		실제 등록된 바이트수 검사 ([_] 포함 안함
186function NullCheck(strField) {
187	var strGet = strField.value;
188	var regExp = /\s+/g;
189	str = str.replace(regExp,'');
190	alert(str.length);
191}
192
193
194//	Blue		2006-06-26		단어수 체크 루틴 ^^&
195function WordCountDel(strField, strLimit) {
196	var strWordsLen = 0;
197	var returnValue = '';
198	var strGet = strField.value;
199
200	var regExp = /\s+/g;
201	str = strGet.split(regExp);
202
203	strWordsLen = str.length;
204
205//alert(strWordsLen + ' :: ' + strLimit);
206	if (strWordsLen >= strLimit)
207	{
208		alert("Current words : " + strWordsLen +  "\n\nThe word length was exceeded the regulation (" + strLimit + " words)");
209		for (k=0;k < strLimit;k++ )
210		{
211			returnValue += ' ' + str[k];
212		}
213	} else {
214		returnValue = strGet;
215	}
216
217	strField.value = returnValue;
218}
219
220//	Blue		2006-06-26		단어수 체크 루틴 ^^&
221function WordCount(strName, strLimit) {
222	if (strLimit <= 0) {
223		return false;
224	}
225
226	var strWordsLen = 0;
227
228	strGet = eval("document.Thesis_Form." + strName).value;
229
230	if (strLimit == '') {
231		return true;						// 길이가 없다면 길이 상관 필요 없다는 뜻이므로 넘어간다.
232	} else {
233		if (strGet.length == 0) {
234			document.getElementById(strName + "_Status").innerText = "0 / " + strLimit;
235			return false;
236		}
237	}
238
239	var regExp = /\s+/g;
240	str = strGet.split(regExp);
241
242	strWordsLen = str.length;
243
244	if (strWordsLen > strLimit) {
245		document.getElementById(strName + "_Status").innerText = strWordsLen + " / " + strLimit;
246		alert("Current words : " + strWordsLen +  "\n\nThe word length was exceeded the regulation (" + strLimit + " words)");
247		return false;
248	} else {
249		document.getElementById(strName + "_Status").innerText = strWordsLen + " / " + strLimit;
250	}
251}
252
253
254// Blue!!		2006-12-16		러닝 타이틀 보일락 말락
255function WordChk_View(strName, Type) {
256
257	strGet = eval("document.sform." + strName).value;
258	strLimit = eval("document.sform." + strName + "_Limit").value;
259	strLimitChk = eval("document.sform." + strName + "_LimitChk");
260	strTr = document.getElementById(strName + "_Tr");
261
262	if (strLimit == '') return true;						// 길이가 없다면 길이 상관 필요 없다는 뜻이므로 넘어간다.
263
264	switch (Type)
265	{
266		case "KOR":
267			var bodyLen = strGet.length;
268
269			if(bodyLen > strLimit)
270			{
271				strLimitChk.value = "Y";
272				strTr.style.display = '';
273				document.getElementById(strName + "_Status").innerText = "[ " + strLimit + " 자 초과일 경우 " + _SET[4] + "을 작성하셔야 합니다.";
274			} else {
275				strLimitChk.value = "";
276				strTr.style.display = 'none';
277				document.getElementById(strName + "_Status").innerText = "";
278			}
279		break;
280
281		case "ENG":
282			var strWordsLen = 0;
283
284			var regExp = /\s+/g;
285			str = strGet.split(regExp);
286
287			strWordsLen = str.length;
288
289			if (strWordsLen > strLimit) {
290				strLimitChk.value = "Y";
291				strTr.style.display = '';
292				document.getElementById(strName + "_Status").innerText = "[ " + strLimit + " Words 초과일 경우 " + _SET[41] + "을 작성하셔야 합니다.";
293			} else {
294				strLimitChk.value = "";
295				strTr.style.display = 'none';
296				document.getElementById(strName + "_Status").innerText = "";
297			}
298		break;
299
300		default:
301	}
302}
303
304
305// Blue!!		2006-05-18		기타 항목 보이기 말기~
306function TypeEtc_View(S,T) {
307	var st = document.sform;
308
309	var tmpType = eval("document.sform." + S);
310	var tmpTypeEtc = eval("document.sform." + S + "_etc");
311	var LN = tmpType.length;		// Blue!!		2006-05-18		설마 2개는 되겠죠 -_-;;
312
313	if (T == LN)
314	{
315		tmpTypeEtc.style.display = '';
316		tmpTypeEtc.focus();
317	} else {
318		tmpTypeEtc.style.display = 'none';
319		tmpTypeEtc.value = '';
320	}
321}
322
323
324// Blue!!		2006-05-18		원래 이떤것 약간 수정..
325function TypeEtc_Hide2() {
326	var st = document.sform;
327
328	st.special_part_etc.style.display = 'none';
329}
330
331//	Blue		2006-08-10		앞으로 빼놓은것.. 설마 이럴리라고는....
332function Eng_SltView(T) {
333	var st = document.Thesis_Form;
334
335	var tmpType = st.tr_EngCorrect;
336
337	f = document.Thesis_Form;
338	if(tmpType[0].checked == true) {
339		alert("※ 영문교정 진행한 논문은 증빙서류를 파일로 추가해 주시기 바랍니다.");
340		document.all.degreeTr.style.display = "";
341	} else {
342		document.all.degreeTr.style.display = "none";
343	}
344
345
346}
347
348
349// Blue!!		2006-05-18		원래 이떤것 약간 수정..
350function TypeEtc_Hide() {
351	var st = document.sform;
352
353	st.non_type_etc.style.display = 'none';
354}
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371function licenseChk(rform){
372	if(rform.license_num.value==""){
373		alert("의사면허번호를 입력해 주세요.!");
374		rform.license_num.focus();
375		return ;
376	} else {
377/*
378		if(rform.license_num.value.length<4 || rform.license_num.value.length>30){
379			alert("ID는 4자리이상 30자리이하 영문숫자조합으로 사용가능합니다.");
380			rform.id.focus();
381			return;
382		}else{
383*/
384			Win_scroll(HDIR + '/member/search_license.html?license_num=' + rform.license_num.value,380,300);
385/*
386		}
387*/
388	}
389}
390
391
392//------------------------ 병원검색 ---------------------------- 2006-04-14
393function OpenHosp(z){
394	var window_left = (screen.width-640)/2;
395	var window_top = (screen.height-480)/2;
396	murl = HDIR + "/office_search.html?field="+z
397	window.open(murl,"HosWin",'width=466,height=175,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
398}
399
400//SMS 쓰기-위원회
401/*function send_sms(tosid,toname){
402	var window_left = (screen.width-640)/2;
403	var window_top = (screen.height-480)/2;
404	var wide = 450;
405	var high = 450;
406	var theURL = "/board/message_write_2.html?tosid="+tosid+"&toname="+toname+"&fromname="+fromname+"&fromsid="+fromsid;
407	//alert(theURL);
408	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
409}*/
410function send_sms(myurl){
411	window.open (myurl, "sms", "width=174,height=352,top=20,left=20,scrollbars=no, resizable=no")
412}
413
414function Logout() {
415
416		if(confirm("로그아웃 하시겠습니까?")) {
417				window.location = HDIR + "/logout_process.php";
418		}
419}
420
421function check_ins(theForm){
422
423	if(theForm.book.value == ""){
424		alert("권을 입력하여 주십시오");
425		theForm.book.focus();
426		return false;
427	}
428	if(!Check_Num(theForm.book)){
429		return false;
430	}
431	if(theForm.number.value == ""){
432		alert("호을 입력하여 주십시오");
433		theForm.number.focus();
434		return;
435	}
436	if(!Check_Num(theForm.number)){
437		return false;
438	}
439
440	if(theForm.year.value == ""){
441		alert("년도를 입력하여 주십시오");
442		theForm.year.focus();
443		return;
444	}
445	if(!Check_Num(theForm.year)){
446		return false;
447	}
448
449	if(theForm.regnum.value == ""){
450		alert("편수를 입력하여 주십시오");
451		theForm.regnum.focus();
452		return;
453	}
454	if(!Check_Num(theForm.regnum)){
455		return false;
456	}
457	document.book_ins_form.submit();
458
459}
460
461
462
463
464function MM_swapImgRestore() { //v3.0
465  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
466}
467
468function MM_preloadImages() { //v3.0
469  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
470	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
471	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
472}
473
474function MM_findObj(n, d) { //v4.01
475  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
476	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
477  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
478  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
479  if(!x && d.getElementById) x=d.getElementById(n); return x;
480}
481
482function MM_swapImage() { //v3.0
483  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
484   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
485}
486
487function MM_showHideLayers() { //v3.0
488  var i,p,v,obj,args=MM_showHideLayers.arguments;
489  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
490	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
491	obj.visibility=v; }
492}
493
494//----------------------  메뉴바 --------------------------
495function MM_reloadPage(init) {  //reloads the window if Nav4 resized
496  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
497	document.MM_pgW = innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
498  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
499}
500MM_reloadPage(true);
501
502
503
504
505
506
507
508
509//----------------------- 검색 ----------------------------
510function Search_send(theForm)
511{
512	if(theForm.keyword.value == "")
513	{
514		alert("검색어를 입력해 주세요..");
515		theForm.keyword.focus();
516		return false;
517	}
518}
519
520//------------------ 라디오버튼 CHECK --------------
521function radioCheck(oN){
522	for(i=0;i<oN.length;i++){
523		if(oN[i].checked){ return true; }
524	}
525	return false;
526}
527
528function radioValue(oN){
529	for(i=0;i<oN.length;i++){
530		if(oN[i].checked){ return oN[i].value; }
531	}
532	return -1;
533}
534
535//-----------------------E-mail 주소확인----------------------------
536// skh1120 !!! 2013-06-19 JS 용 이메일 패턴에 문제가 있어 PHP 에서 사용하는 이메일 패턴으로 교체함.
537function isEmail(str) {
538	var reg = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/;
539	if (reg.test(str) == true) {
540		return true;
541	} else {
542		return false;
543	}
544}
545
546//----------------------- 숫자 확인 ----------------------------
547function Check_Num(theForm) {
548	t = theForm.value ;
549	for(i=0;i<t.length;i++) {
550		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
551			alert("숫자만 입력해주세요.") ;
552			theForm.value="";
553			theForm.focus();
554			return false ;
555		}
556	}
557	return true;
558}
559
560//----------------------- 숫자 확인(자리수 포함) ----------------------------
561function Check_Tel(theForm,mm) {
562	t = theForm.value;
563	for(i=0;i<t.length;i++) {
564		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
565			alert("숫자만 입력해주세요.") ;
566			theForm.value="";
567			theForm.focus() ;
568			return false ;
569		}
570	}
571	if (t.length < mm)
572	{
573		alert("숫자의 길이를 확인하십시요.");
574		theForm.focus();
575		return false;
576	}
577	return true;
578}
579
580//------------------------ 우편번호검색 ----------------------------
581function OpenZipcode(z){    //open zip code check win
582	var window_left = (screen.width-640)/2;
583	var window_top = (screen.height-480)/2;
584	zName = "/zipcode.html?zip_gubun="+z
585	window.open(zName,"ZipWin",'width=466,height=340,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
586}
587
588//------------------------ 사진 입력 ----------------------------
589function OpenPhoto(str){
590	var window_left = (screen.width-640)/2;
591	var window_top = (screen.height-480)/2;
592	murl = "/photo_up.html?num="+str;
593	window.open(murl,"PhoWin",'width=441,height=256,top=' + window_top + ',left=' + window_left + '');
594}
595
596//------------------------ 공지사항 PopUp ----------------------------
597function OpenNotify(murl){
598	var window_left = (screen.width-640)/2;
599	var window_top = (screen.height-480)/2;
600	window.open(murl,"NoticeWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
601}
602
603//------------------------ 의료계뉴스 PopUp ----------------------------
604function OpenNews(murl){
605	var window_left = (screen.width-640)/2;
606	var window_top = (screen.height-480)/2;
607	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
608}
609
610//------------------------ 행사일정 PopUp ----------------------------
611function OpenEvent(murl){
612	var window_left = (screen.width-640)/2;
613	var window_top = (screen.height-480)/2;
614	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
615}
616
617//------------------------ 삭제 ----------------------------
618function delconf(murl)
619{
620	if(confirm("정말 삭제하시겠습니까?"))
621	window.location = murl;
622}
623
624//---------------------- 쪽지 popup -------------
625function Memo_open(myurl){
626	var window_left = (screen.width-640)/2;
627	var window_top = (screen.height-480)/2;
628	window.open (myurl, "memo", 'width=414, height=268,scrollbars=yes,top=' + window_top + ',left=' + window_left + '')
629}
630
631//---------------------- 쪽지 -------------
632function Memo_wasteconf(murl){
633	if(confirm("정말 삭제하시겠습니까?\n\n휴지통로 이동됩니다."))
634	window.location = murl;
635}
636
637//---------------------- 쪽지 -------------
638function Memo_delconf(murl){
639	if(confirm("정말 삭제하시겠습니까?\n\n선택한 쪽지가 완전히 삭제됩니다."))
640	window.location = murl;
641}
642
643//---------------------- 쪽지 -------------
644function Sender_delconf(murl){
645	if(confirm("쪽지를 삭제하시겠습니까?"))
646	window.location = murl;
647}
648
649//---------------------- 쪽지 -------------
650function Memo_actconf(murl){
651	if(confirm("쪽지를 복구 하시겠습니까?"))
652	window.location = murl;
653}
654
655//---------------------- 쪽지 -------------
656function Confirm_Msg(murl,msg){
657	if(confirm(msg))
658	window.location = murl;
659}
660
661//---------------------- 심사거절시 거절사유 받기 -------------
662function Confirm_Msg_no(num,msg){
663	if(confirm(msg)) offdisplay_all(num);
664}
665//----------------------- 아이디 / 패스워드 찾기 ----------------------------
666function Find_Send(theForm)
667{
668	if (!theForm.name.value) {
669		window.alert("성명을 입력하십시요.");
670		theForm.name.focus();
671		return false;
672	}
673	if (!theForm.email.value) {
674		window.alert("이메일주소를 입력하십시요.");
675		theForm.email.focus();
676		return false;
677	}
678}
679
680
681//--------------------- 파일 포맷 CHECK -------------------------
682function formatChk(theForm)
683{
684	var fname = theForm.value;
685	sp_arry = fname.split(".");
686	sp_einx = sp_arry.length - 1;
687	sp_arry[sp_einx] = sp_arry[sp_einx].toLowerCase();
688
689	return sp_arry[sp_einx];
690}
691//----------------------- 회원검색 ----------------------------
692function User_send(theForm)
693{
694	var cnt = 0;
695	for( var i=0; i< theForm.elements.length; i++)
696	{
697		var temp = theForm.elements[i];
698		if(temp.value != "")
699		cnt += 1;
700	}
701	if (cnt == 0)
702	{
703		window.alert("한가지 이상의 검색조건과 검색어를 선택,입력하십시요.");
704		theForm.key.focus();
705		return false;
706	}else{
707		if(theForm.key.value != "" && !theForm.keyword.value){
708			window.alert("검색어를 입력하십시요.");
709			theForm.keyword.focus();
710			return false;
711		}
712		if(theForm.keyword.value != "" && !theForm.key.value){
713			window.alert("검색조건을 선택하십시요.");
714			theForm.key.focus();
715			return false;
716		}
717	}
718}
719
720function goQuiz()
721{
722	document.times_form.submit();
723}
724
725
726function MM_popupMsg2(msg,url) { //v1.0
727  if(confirm(msg))
728	location.href = url;
729}
730
731function MM_goToURL() { //v3.0
732  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
733  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
734}
735
736//----------------- 팝업 -------------------------
737function MM_openBrWindow(theURL,winName,features) { //v2.0
738  window.open(theURL,winName,features);
739}
740
741function MM_popupMsg(msg) { //v1.0
742  alert(msg);
743}
744
745//----------------- 퀴즈 팝업 -------------------------
746function openWin(murl,msize){
747	window.open(murl,"popup",msize)
748}
749//------------------ 로그인 CHECK --------------
750function Loginsubmit()
751{
752	window.alert("회원전용공간입니다.");
753	return false;
754}
755
756
757function ZipWindow(ref,what)
758{
759	var window_left = (screen.width-640)/2;
760	var window_top = (screen.height-480)/2;
761	ref = ref + "?what=" + what;
762	window.open(ref,"zipWin",'width=400,height=400,status=no,resizable=yes,top=' + window_top + ',left=' + window_left + '');
763}
764function put_postno(p_code,p_juso)
765{
766	document.signform.office_zip.value = p_code;
767	document.signform.office_addr.value = p_juso ;
768	//document.signform.office_addr.focus();
769	return;
770}
771
772function put_postno2(p_code,p_juso)
773{
774	document.signform.home_zip.value = p_code ;
775	document.signform.home_addr.value = p_juso ;
776	//document.signform.home_addr2.focus();
777	return;
778}
779
780function put_postno3(p_code,p_juso) {
781	var code_arr = p_code.split("-");
782	document.checkform.addr_num1.value = code_arr[0];
783	document.checkform.addr_num2.value = code_arr[1];
784	document.checkform.addr.value = p_juso;
785	return;
786}
787
788
789// Blue!!		2006-04-12	의사면허번호로 부터 불러오기
790function put_license_num(id,kname,ename,email,o_zip,o_addr,o_tel1,o_tel2,o_tel3)
791{
792	document.signform.id.value = id ;
793	document.signform.kname.value = kname ;
794	document.signform.ename.value = ename ;
795	document.signform.email.value = email ;
796	document.signform.office_zip.value = o_zip ;
797	document.signform.office_addr.value = o_addr ;
798	document.signform.phone_1.value = o_tel1 ;
799	document.signform.phone_2.value = o_tel2 ;
800	document.signform.phone_3.value = o_tel3 ;
801	return;
802}
803
804
805function IsNumber(formname)
806{
807	var form = eval("document.signform." + formname);
808
809	for(var i = 0; i < form.value.length; i++)
810	{
811		var chr = form.value.substr(i,1);
812		if(chr < '0' || chr > '9')
813		{
814			return false;
815		}
816	}
817	return true;
818}
819
820
821function regist_Frm(theForm){
822	theForm.action = "register.php";
823	return true;
824}
825
826function back_Frm(theForm){
827	theForm.action = "register_detail.html";
828	theForm.submit();
829}
830
831
832function jCheck(rform){
833	if(rform.jumin1.value=="" || rform.jumin2.value==""){
834		alert("주민번호를 입력해 주세요.!");
835		rform.jumin1.focus();
836		return ;
837	}else{
838		if(!CheckNum(rform.jumin1)){
839			return false;
840		}
841		if(!CheckNum(rform.jumin2)){
842			return false;
843		}
844		Win_scroll('/member/check_jumin.html?jumin1='+rform.jumin1.value+'&jumin2='+rform.jumin2.value,380,300);
845	}
846}
847
848//----------------------- 숫자 확인 ----------------------------
849function CheckNum(theForm) {
850	t = theForm.value ;
851	for(i=0;i<t.length;i++) {
852		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
853			alert("숫자만 입력해주세요.") ;
854			theForm.value="";
855			theForm.focus();
856			return false ;
857		}
858	}
859	return true;
860}
861
862
863// 메인페이지 배너 슬라이딩 //////////////////////////////////////////////////
864function start(){
865 if (document.all)  scroller.start();
866}
867function stop(){
868 if (document.all)  scroller.stop();
869}
870
871//꼬리글 달기
872function Tail_Frm(theForm){
873	if (!theForm.tbody.value)
874	{
875		alert("글내용을 입력해 주세요.!");
876		theForm.tbody.focus();
877		return false;
878	}
879	if(theForm.tbody.value.length > 50){
880		alert("50자 이내로 작성해주세요.");
881		theForm.tbody.focus();
882		return false;
883	}
884
885	return true;
886}
887
888//삭제하기
889function all_del(path){
890	if(confirm('삭제하시겠습니까?')){
891		location.href=path;
892	}
893}
894
895
896//메일쓰기-위원회 여러사람에게
897function send_mail_total(sect,Brd_Frm,cname){
898	var sid="";
899	//------------------------ 전체체크 ----------------------------
900	alert(Brd_Frm.elements.length);
901	for( var i=1; i<Brd_Frm.elements.length; i++)
902	{
903		var check = Brd_Frm.elements[i];
904		if (check.checked)
905		{
906			//to=eval("document.Brd_Frm.to"+i+".value");
907			to=check.value;
908			if(sid==""){
909				sid=to;
910			}else{
911				sid=sid+","+to;
912			}
913
914		}
915	}
916
917	var window_left = (screen.width-640)/2;
918	var window_top = (screen.height-480)/2;
919	var wide = 500;
920	var high = 500;
921	var theURL = "/wewon/message_write.html?section="+sect+"&cname="+cname+"&sid_list="+sid+"&mode=M";
922	//alert(theURL);
923	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
924}
925
926
927
928//메세지 쓰기-위원회
929function send_msg(tosid,toname,fromsid,fromname){
930	var window_left = (screen.width-640)/2;
931	var window_top = (screen.height-480)/2;
932	var wide = 450;
933	var high = 400;
934	var theURL = "/board/message_write_2.html?tosid="+tosid+"&toname="+toname+"&fromname="+fromname+"&fromsid="+fromsid;
935	//alert(theURL);
936	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
937}
938
939
940
941function checkItboard(form){
942	if (!form.thesis_id.value)
943	{
944		alert('논문번호을 입력해 주세요');
945		form.thesis_id.focus();
946		return false;
947	}
948
949	if (!form.author.value)
950	{
951		alert(_SET[13] + '명을 입력해 주세요');
952		form.author.focus();
953		return false;
954	}
955	return true;
956}
957
958//------------------------ 검색후 쪽지 보내기 PopUp ----------------------------
959function Memo_Win(murl,wth,ht){
960	var window_left = (screen.width-640)/2;
961	var window_top = (screen.height-480)/2;
962	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
963}
964
965function SMS_open(myurl){
966	window.open (myurl, "sms", "width=174,height=352,top=20,left=20,scrollbars=no, resizable=no")
967}
968
969
970function checkword(word)
971{
972	var charword;
973	for(var i = 0; i < word.length; i++)
974	{
975		charword = word.charAt(i);
976		if(charword.indexOf(" ") == -1) return true;
977	}
978	return false;
979}
980
981/*if(!radioCheck(form))
982	{
983		alert("결혼유무를 선택해주세요!");
984		form.marry[0].focus();
985		return false;
986   }
987*/
988
989
990// 2006-12-29 단지 페이지 이동.. -_-;
991function JS_Move(url) {
992	location.href = url;
993}
994
995function JS_Confirm_Msg(url,msg) {
996	if(confirm(msg)) {
997		window.location = url;
998	}
999}
1000
1001function JS_Form_Msg(form,msg) {
1002	theForm = eval("document."+form);
1003	if(confirm(msg)) {
1004		theForm.submit();
1005	}
1006}
1007
1008// 2007-01-15 더블클릭 방지???
1009function JS_DoubleChk(f) {
1010	if(f.doubleChk.value==1) {
1011		alert("지금 처리중입니다. 잠시 기다려 주세요.");
1012		return false;
1013	}else{
1014		f.doubleChk.value=1;
1015		return true;
1016	}
1017}
1018
1019// 2007-01-03 팝업창 띄우기
1020function JS_Window_Open(theURL,wide,high,wname) {
1021	var window_left = (screen.width-640)/2;
1022	var window_top = (screen.height-480)/2;
1023	window.open(theURL,wname,'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
1024}
1025
1026
1027// 2007-01-02 심사 내용 입력 페이지 Form 검사 Edit by. jsp
1028function ReviewChk(form)
1029{
1030
1031	var statusCnt = form.Rstatus.length;
1032	var statusNum = 0;
1033	var tinyContent = tinyMCE.get("rev_Comm").getContent();
1034
1035	for(var k=0; k<statusCnt; k++) {
1036		if(form.Rstatus[k].checked==false) {
1037			statusNum++;
1038		}
1039	}
1040
1041	if (statusCnt == statusNum) {
1042		alert("Please select review result.");
1043		form.Rstatus[0].focus();
1044		return false;
1045	}
1046
1047	if (form.engReq[0].checked == false && form.engReq[1].checked == false) {
1048		alert("Please mark English proof-reading section.");
1049		form.engReq[0].focus();
1050		return false;
1051	}
1052	tinyMCE.triggerSave();   // 반드시 기술해야 함.
1053	if (trim_tags(tinyContent) == "") {
1054		alert("Please enter review contents.");
1055		return false;
1056	}
1057
1058	// 2019-09-30 계좌정보 필수로 변경함.
1059	// 2020-02-11 다시 필수 제거 선택으로 변경적용
1060	/*
1061	if(form.bank_Name.value == "") {
1062		alert("Please enter bank name.");
1063		form.bank_Name.focus();
1064		return false;
1065	}
1066
1067	if(form.bank_Account.value == "") {
1068		alert("Please enter bank account.");
1069		form.bank_Account.focus();
1070		return false;
1071	}
1072	*/
1073
1074	if(confirm("Do you want to complete review?") ) {
1075		return true;
1076	}
1077
1078	return false;
1079}
1080
1081
1082// 2007-01-02 심사 내용 입력 페이지 Form 검사 편집위원용
1083function Edit_reviewChk(form)
1084{
1085
1086	var statusCnt = form.Rstatus.length;
1087	var statusNum = 0;
1088	var tinyContent = tinyMCE.get("rev_MailComm").getContent();
1089	var tinyContent2 = tinyMCE.get("rev_Comm").getContent();
1090
1091	for(var k=0; k<statusCnt; k++) {
1092		if(form.Rstatus[k].checked==false) {
1093			statusNum++;
1094		}
1095	}
1096
1097	if(statusCnt == statusNum) {
1098		alert("Please select review result.");
1099		form.Rstatus[0].focus();
1100		return false;
1101	}
1102	
1103	if (form.tr_Degree.value=="1"){
1104		if (form.engReq[0].checked == false && form.engReq[1].checked == false) {
1105			alert("Please mark English proof-reading section.");
1106			form.engReq[0].focus();
1107			return false;
1108		}
1109
1110		if (form.irbChk[0].checked == false && form.irbChk[1].checked == false) {
1111			alert("You must answer the question If this manuscript contain any data from human subjects performed by any of the authors? Before proceeding.");
1112			form.irbChk[0].focus();
1113			return false;
1114		}
1115
1116		if (form.iacucChk[0].checked == false && form.iacucChk[1].checked == false) {
1117			alert("You must answer the question If this manuscript contain any data from animal subjects performed by any of the authors? Before proceeding.");
1118			form.iacucChk[0].focus();
1119			return false;
1120		}
1121
1122
1123	}
1124
1125	tinyMCE.triggerSave();   // 반드시 기술해야 함.
1126	if (trim_tags(tinyContent) == "") {
1127		alert("Please enter review contents.(Auto Mail)");
1128		return false;
1129	}
1130	
1131	/* 2020-11-09 필수에서 선택으로 변경 
1132	if (trim_tags(tinyContent2) == "") {
1133		alert("Please enter review contents.");
1134		return false;
1135	}
1136	*/
1137
1138	if(confirm("Do you want to complete review?") ) {
1139		return true;
1140	}
1141
1142	return false;
1143}
1144
1145
1146// Blue !!!	2009-03-19	편집위원 메일 미리보기 체크
1147function Admin_ProofChk() {
1148	var st = document.Thesis_Form;
1149	var statusCnt = st.Rstatus.length;
1150	var statusNum = 0;
1151	var tinyID = tinyMCE.getInstanceById("rev_Comm");
1152	var tinyID2 = tinyMCE.getInstanceById("mail_Content");
1153
1154	for(var k=0; k<statusCnt; k++) {
1155		if(st.Rstatus[k].checked==false) {
1156			statusNum++;
1157		}
1158	}
1159
1160	if(statusCnt == statusNum) {
1161		alert("Please select review result.");
1162		st.Rstatus[0].focus();
1163		return false;
1164	}
1165
1166	tinyMCE.triggerSave();			// 반드시 기술해야 함.
1167	/*2020-11-09 필수에서 선택으로 변경 
1168	if (tinyID.getContent() == "") {
1169		alert("Please enter review contents.");
1170		tinyID.setContent("");
1171		tinyID.focus();
1172		return false;
1173	}
1174	*/
1175
1176
1177	if (st.mail_Title.value == '')
1178	{
1179		alert('Please enter mail title.');
1180		return false;
1181	}
1182
1183	if (tinyID2.getContent() == "") {
1184		alert("Please enter mail message.");
1185		tinyID2.setContent("");
1186		tinyID2.focus();
1187		return false;
1188	}
1189
1190	if(confirm("Will you send it?") ) {
1191		return true;
1192	}
1193
1194	return false;
1195}
1196
1197
1198// 2007-08-30 관리자용.
1199function Adm_reviewChk(form)
1200{
1201
1202	var statusCnt = form.Rstatus.length;
1203	var statusNum = 0;
1204	var tinyContent = tinyMCE.get("rev_MailComm").getContent();
1205	var tinyContent2 = tinyMCE.get("rev_Comm").getContent();
1206
1207	for(var k=0; k<statusCnt; k++) {
1208		if(form.Rstatus[k].checked==false) {
1209			statusNum++;
1210		}
1211	}
1212
1213	if(statusCnt == statusNum) {
1214		alert("Please select review result.");
1215		form.Rstatus[0].focus();
1216		return false;
1217	}
1218
1219	if (form.tr_Degree.value=="1"){
1220		if (form.engReq[0].checked == false && form.engReq[1].checked == false) {
1221			alert("Please mark English proof-reading section.");
1222			form.engReq[0].focus();
1223			return false;
1224		}
1225
1226	}
1227
1228
1229	tinyMCE.triggerSave();   // 반드시 기술해야 함.
1230	if (trim_tags(tinyContent) == "") {
1231		alert("Please enter review contents.(Auto Mail)");
1232		document.getElementById("PreviewChk").style.display = "none";
1233		document.getElementById("temp_PreChk").value = "";	// 프리뷰 체크를 초기화
1234		return false;
1235	}
1236	if (trim_tags(tinyContent2) == "") {
1237		alert("Please enter review contents.");
1238		document.getElementById("PreviewChk").style.display = "none";
1239		document.getElementById("temp_PreChk").value = "";	// 프리뷰 체크를 초기화
1240
1241		return false;
1242	}
1243
1244	if(confirm("Do you want to complete review?") ) {
1245		return true;
1246	}
1247
1248	return false;
1249}
1250
1251
1252
1253
1254// Blue !!!	2007-04-09	trim
1255function trim_tags(value) {
1256	value = value.replace(/<\/?[^>]+>/gi, '');
1257	value = value.replace(/&nbsp;/g, '');
1258	value = value.replace(/\s/gi,"");
1259	return value;
1260}
1261
1262
1263
1264
1265// Blue !!!	2007-05-10	저자 삭제.
1266function Admin_Author_Del(id, TG, linkURL) {
1267	if (confirm('Delete user? [' + id + ']'))
1268	{
1269		linkURL = linkURL.replace(/=/gi,"[@@]");
1270		linkURL = linkURL.replace(/&/gi,"[AND]");
1271		location.href = 'Authors_Del.rang?user_id=' + id + '&TG=' + TG + '&linkURL=' + linkURL;
1272	} else {
1273		return false;
1274	}
1275}
1276
1277
1278// Blue !!!	2007-05-10	깜빡이~
1279function doBlink() {
1280	var blink = document.all.tags("BLINK")
1281	for (var i=0; i < blink.length; i++)
1282	blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
1283}
1284
1285
1286// Blue !!!	2007-05-22	관리자용 검색부분
1287function Adm_Search_FormChk() {
1288	var st = document.Search_Form;
1289
1290	st.submit();
1291}
1292
1293// Blue !!!	2007-05-22	관리자용 검색부분
1294function Adm_Search_FormChk2() {
1295	var st = document.Search_Form;
1296
1297	st.target = "";
1298	st.action = "Reviewer_Select.html";
1299	st.submit();
1300}
1301
1302// Blue !!!	2007-05-22	관리자용 검색부분
1303function Adm_Search_FormChk3() {
1304	var st = document.Search_Form;
1305
1306	st.target = "";
1307	st.action = "Editor_Select.html";
1308	st.submit();
1309}
1310
1311// Blue !!!	2009-11-27	관리자용 검색부분
1312function Adm_Search_FormPaperChk() {
1313	var st = document.Search_Form;
1314
1315//	if (st.StartVol.selectedIndex == 0) {
1316//		return false;
1317//	}
1318
1319	st.target = "";
1320
1321	st.action = "Paper_Press.html";
1322	st.submit();
1323}
1324
1325// Blue !!!	2007-08-13			메일 날리기
1326function Comm_Msg_Mail_Fun(NM)
1327{
1328	var st = document.sform;
1329
1330	if (st.strTitle.value =='')
1331	{
1332		alert('Please check title.');
1333		st.strTitle.focus();
1334		return false;
1335	}
1336
1337	if (st.strContent.value =='')
1338	{
1339		alert('Please check message.');
1340		st.strContent.focus();
1341		return false;
1342	}
1343
1344	if(!confirm('Do you want to send e-mail to ' + NM + '?')) {
1345		return false;
1346	}
1347}
1348
1349
1350// Blue !!!	2007-08-14	비밀번호 변경에 관한 스크립
1351function Chg_PasswordFun(URL) {
1352	if (confirm('Change the password?')) {
1353		location.href = URL;
1354	} else {
1355		return false;
1356	}
1357}
1358
1359
1360// Blue !!!	2007-08-29	관리자 직접 검색부분
1361function History_FormFun() {
1362	var st = document.History_Form;
1363
1364	if (st.keyword.value == false) {
1365		alert('Please enter keyword.');
1366		return false;
1367	}
1368}
1369
1370
1371
1372
1373//	2008-05-16	메모등록
1374function Memo_AdmitConfirm(mode, type, no) {
1375	var f, note_obj, addText = '';
1376	f = document.frm_layer_submit;
1377	if (mode == "Info") addText = "_Info";
1378	note_obj = eval("document.frmList.finish_note" + addText + no);
1379
1380	f.num.value = no;
1381	f.mode.value = mode;
1382	f.type.value = type;
1383	f.finish_note.value = note_obj.value;
1384
1385	if (!confirm("저장하시겠습니까?")) return;
1386	f.submit();
1387}
1388
1389
1390// Blue !!!	2008-06-05	날짜추가
1391function Memo_DateAppend(mode, no) {
1392	var f, note_obj, addText = '';
1393	f = document.frm_layer_submit;
1394	now = new Date();
1395
1396	if (mode == "Info") addText = "_Info";
1397	note_obj = eval("document.frmList.finish_note" + addText + no);
1398	if (note_obj.value)
1399	{
1400		note_obj.value += "\n\n=======================================\n# " + now.toLocaleString() + " \n";
1401	} else {
1402		note_obj.value = "# " + now.toLocaleString() + " \n";
1403	}
1404	note_obj.focus();
1405}
1406
1407
1408
1409
1410// ##################################################################
1411// Blue !!!	2010-11-04	관리자 메모 - 개선판
1412// IE 는 8.0 이라고 하여도 6.0 에 대한 호환성이 되기 때문에 최신버전 순으로 표시하였고, 현 9.0 까지이지만 추후 10까지 변경하였음. IE 6.0 미만은 알아서..
1413function Memo_ondisplay(id, e) {
1414	var x = 0;
1415	var y = 0;
1416
1417	switch (navigator.appName) {
1418		case "Microsoft Internet Explorer":				// IE 6.0 미만은 안쳐줌..
1419			if (navigator.appVersion.indexOf("MSIE 10") != -1) {
1420				x = e.pageX;
1421				y = e.pageY;
1422			} else if (navigator.appVersion.indexOf("MSIE 9") != -1) {
1423				x = e.pageX;
1424				y = e.pageY;
1425			} else if (navigator.appVersion.indexOf("MSIE 8") != -1) {
1426				x = e.x;
1427				y = e.y;
1428			} else if (navigator.appVersion.indexOf("MSIE 7") != -1) {
1429				x = e.x;
1430				y = e.y + Math.max(document.documentElement.scrollTop, document.body.scrollTop);
1431			} else {			// IE 6.0 처리 부분.
1432				x = e.x;
1433				y = e.y + Math.max(document.documentElement.scrollTop, document.body.scrollTop);
1434			}
1435		break;
1436
1437		case "Netscape":			// FireFox, Safari, Chrome
1438			x = e.pageX;
1439			y = e.pageY;
1440		break;
1441
1442		case "Opera":
1443			x = e.pageX;
1444			y = e.pageY;
1445		break;
1446
1447		default:
1448			x = e.pageX;
1449			y = e.pageY;
1450	}
1451
1452	var obj = document.getElementById(id);
1453
1454	obj.style.left = x + "px";
1455	obj.style.top = y + "px";
1456
1457	obj.style.display = 'block';
1458	obj.style.visibility = 'visible';
1459}
1460
1461
1462
1463//------------- 레이어 닫기 -----------------
1464function Memo_offdisplay(id) {
1465	var obj = document.getElementById(id);
1466	dd = obj.style;
1467	dd.display = 'none';
1468	dd.visibility = 'hidden';
1469}
1470
1471
1472function doWinSize(obj) {
1473	var h = 0;
1474 
1475	if (event.wheelDelta > 0) {
1476		if (parseInt(obj.style.height) >= 100) {
1477			h = parseInt(obj.style.height) - 50;
1478			obj.style.height = h + 'px';
1479		}
1480	} else {
1481		h = parseInt(obj.style.height) + 50;
1482		obj.style.height = h + 'px';
1483	}
1484}
1485
1486
1487// Blue !!!	2008-06-11	미니메뉴용 클릭 이벤트 처리
1488var MiniMenu_View = -1;		// 현재 보이는 것과 다른것을 클릭하였는지 체크 (idx 로 확인함)
1489function MiniMenu_Display(idx) {
1490	var obj = document.getElementsByName("MiniMenu_Layer");
1491	dd = obj[idx].style;
1492
1493	if (MiniMenu_View == idx)						// 같을 경우엔 보이지 않도록 수정함.
1494	{
1495		MiniMenu_View = -1;							// 초기화 (아무것도 선택하지 않았음. idx => 0 부터 시작합니다.)
1496		dd.display = 'none';
1497		dd.visibility = 'hidden';
1498	} else {										// 다를경우 기존것을 숨기고, 현재것을 보여줍니다.
1499		dd.display = 'block';
1500		dd.visibility = 'visible';
1501
1502		if (MiniMenu_View == -1) {					// 초기치 일경우 객체가 존재하지 않으므로 처리에서 제외함.
1503		} else {
1504			obj[MiniMenu_View].style.display = 'none';
1505			obj[MiniMenu_View].style.visibility = 'hidden';
1506		}
1507
1508		MiniMenu_View = idx;						// 현재 인덱스 값을 가지고 있음.
1509	}
1510}
1511
1512
1513
1514
1515// Blue !!!	2008-09-23	유저 권한 변경.
1516function GetSelect_SessionChange(TG) {
1517	var retUrl;
1518
1519	switch (TG)
1520	{
1521		case "R":
1522			retUrl = ROOT_URL + "/Source/Reviewer/Main.html";
1523		break;
1524
1525		case "E":
1526			retUrl = ROOT_URL + "/Source/Editor/Main.html";
1527		break;
1528
1529		case "EC":
1530//			retUrl = ROOT_URL + "/Source/Chief/Main.html";
1531			retUrl = ROOT_URL + "/Source/Admin/Main.html";
1531		// 2009-01-15 관리자와 동일한 페이지를 보여줍니다.
1532		break;
1533
1534		case "A":
1535			retUrl = ROOT_URL + "/Source/Admin/Main.html";
1536		break;
1537
1538		default:
1539			retUrl = ROOT_URL + "/Source/Author/Main.html";
1540	}
1541
1542	location.href = retUrl;
1543}
1544
1545
1546// Blue !!!	2008-11-27	거절사유 작성.
1547function Editor_ReasonChk() {
1548	var st = document.Thesis_Form;
1549
1550	if (st.rev_Reason.value == '') {
1551		alert('Reason for Refusal. Please check.');
1552		st.rev_Reason.focus();
1553		return false;
1554	}
1555
1556	if (!confirm('Will you send an e-mail?')) {
1557		return false;
1558	}
1559}
1560
1561
1562// Blue !!!	2009-01-15	심사거절시 거절사유 작성
1563function Reviewer_ReasonChk() {
1564	var st = document.Thesis_Form;
1565
1566	if (st.rev_ReasonNominate.value == '') {
1567		alert('Please recommend a reviewer. Thanks.');
1568		st.rev_ReasonNominate.focus();
1569		return false;
1570	}
1571
1572	if (st.rev_Reason.value == '') {
1573		alert('Reason for Refusal. Please check.');
1574		st.rev_Reason.focus();
1575		return false;
1576	}
1577
1578	if (!confirm('Will you send an e-mail?')) {
1579		return false;
1580	}
1581}
1582
1583
1584
1585
1586// Blue !!!	2009-01-08	게재허가 이후 처리내용
1587function Accept_ModChk(MD) {
1588	var st = document.Thesis_Form;
1589	var title = "";
1590	var txtMsg = "";
1591	var confirmMsg = "";
1592
1593	switch (MD)
1594	{
1595		case "G":	// reference
1596			txtMsg = '파일을 선택해 주세요.';
1597			confirmMsg = '교정본 파일을 등록 하시겠습니까?';
1598		break;
1599
1600		case "E":	// eng correct
1601			txtMsg = '파일을 선택해 주세요.';
1602			confirmMsg = '영문교정 파일을 등록 하시겠습니까?';
1603		break;
1604
1605		case "F":	// final
1606			txtMsg = '파일을 선택해 주세요.';
1607			confirmMsg = '최종본 파일을 등록 하시겠습니까?';
1608		break;
1609
1610		default:
1611
1612	}
1613
1614
1615	if (st.file_Name.value == '') {
1616		alert(txtMsg);
1617		st.file_Name.focus();
1618		return false;
1619	}
1620
1621	if (!confirm(confirmMsg)) {
1622		return false;
1623	}
1624}
1625
1626
1627
1628
1629
1630// Blue !!!	2007-01-23
1631/*
1632특수문자 넣기 입니다.
1633클릭된 위치, 드래그 된 항목을 변경 할때 사용하실 수 있습니다.
1634*/
1635
1636function addSpecial_Character() {
1637	window.open(ROOT_URL + '/Include/Special_Character.html','Special_Character', 'width=400, height=600, scrollbars=yes');
1638	return false;
1639}
1640
1641var currentArea = '';
1642
1643function checkArea(current) {
1644	if (current.name) {
1645		currentArea = current;
1646	}
1647}
1648
1649function insertText(sCode)
1650{
1651	if (currentArea == "") {
1652		alert('Please select item to insert special character.');
1653		return;
1654	} else {
1655		insertAtCursor(currentArea, sCode);
1656	}
1657}
1658
1659
1660function insertAtCursor(myField, myValue) {
1661	if (document.selection) {
1662		myField.focus();
1663		sel = document.selection.createRange();
1664		sel.text = myValue;
1665	} else if (myField.selectionStart || myField.selectionStart == 0) {
1666		var startPos = myField.selectionStart;
1667		var endPos = myField.selectionEnd;
1668		myField.value = myField.value.substring(0, startPos)+myValue
1669		+ myField.value.substring(endPos, myField.value.length);
1670	} else {
1671		myField.value += myValue;
1672	}
1673}
1674
1675
1676
1677
1678
1679
1680// Blue !!!	2009-02-16	Paper in Press
1681function Paper_ModChk() {
1682	var st = document.Thesis_Form;
1683	var title = "";
1684	var txtMsg = "";
1685	var confirmMsg = "";
1686
1687	txtMsg = '파일을 선택해 주세요.';
1688	confirmMsg = '최종본 파일을 등록 하시겠습니까?';
1689
1690	if (st.file_Name.value == '') {
1691		alert(txtMsg);
1692		st.file_Name.focus();
1693		return false;
1694	}
1695
1696	if (!confirm(confirmMsg)) {
1697		return false;
1698	} else {
1699		st.target = "";
1700		st.action = "Paper_Press_Edit.rang";
1701		st.submit();
1702	}
1703}
1704
1705
1706// Blue !!!	2009-02-16	File Delete
1707function Paper_FileDelete(M, N, O, P) {
1708	if (!M) {
1709		return false;
1710	}
1711
1712	if (!confirm('Do you wish to delete this file?')) {
1713		return false;
1714	} else {
1715		location.href = "Paper_Press_FileDelete.rang?MD=D&j_num=" + M + "&file_num=" + N + "&StartVol=" + O + "&StartNum=" + P;
1716	}
1717}
1718
1719// Blue !!!	2009-02-16	Paper in Press
1720function Paper_ModChange(MD, IDX, IDX2, PG) {
1721	if (!MD) {
1722		return false;
1723	}
1724
1725	if (!confirm('Do you wish to delete this paper?')) {
1726		return false;
1727	} else {
1728		location.href = "Paper_Press.rang?MD=" + MD + "&j_num=" + IDX + "&tr_num=" + IDX2 + '&start=' + PG;
1729	}
1730}
1731
1732
1733// Blue !!!	2009-02-16	관리자 Paper in Press 전체 체크
1734function Paper_allChk(T) {
1735	var st = document.getElementsByName('chknum[]');
1736	var LN = st.length, cnt = 0;
1737
1738	for (k=0; k < LN;k++ ) {
1739		if (T.checked == true) {
1740			st[k].checked = true;
1741		} else {
1742			st[k].checked = false;
1743		}
1744	}
1745}
1746
1747// Blue !!!	2009-02-16	관리자 Paper in Press 선택 후 액션
1748function Paper_Action(T) {
1749	var st = document.frmList;
1750	var chk1 = document.getElementsByName('chknum[]');
1751	var LN = chk1.length, cnt = 0, strTitle = '';
1752
1753	for (k=0; k < LN;k++ ) {
1754		if (chk1[k].checked == true) {
1755			cnt++;
1756			break;
1757		}
1758	}
1759
1760	if (cnt == 0) {
1761		alert('선택 후 사용하세요.');
1762		return false;
1763	}
1764
1765	switch (T)
1766	{
1767		case 'S':
1768			strTitle = '선택한 항목을 보이도록 하시겠습니까?\n\n[Paper in Press 페이지]';
1769		break;
1770
1771		case 'C':
1772			strTitle = '선택한 항목을 보이지 않도록 하시겠습니까?\n\n[Paper in Press 페이지]';
1773		break;
1774
1775		case 'P':
1776			strTitle = '선택한 항목을 간행물로 등록 하시겠습니까?\n\n[간행물 목록] 으로 이동합니다.';
1777		break;
1778	}
1779
1780	if (!confirm(strTitle)) {
1781		return false;
1782	} else {
1783		st.MD.value = T;
1784		st.submit();
1785	}
1786}
1787
1788
1789
1790
1791// Blue !!!	2008-11-05	전공분야 선택하기
1792function Subject_SelectFunc (VL, CNT) {
1793	var st = document.Thesis_Form;
1794	var cnt = 0, strText = "";
1795
1796	for (k = 1; k < CNT ; k++) {
1797		document.getElementById("user_SubjectEtc").style.display = "none";
1798
1799		if (document.getElementById("user_Subject" + k).checked == true) {
1800			document.getElementById("user_Subject" + k).style.background = "#C8DBF9";
1801			cnt++;
1802			if ((k + 1) == CNT) document.getElementById("user_SubjectEtc").style.display = "";
1803		} else {
1804			document.getElementById("user_Subject" + k).style.background = "#FFFFFF";
1805		}
1806	}
1807
1808	if (cnt == 0) {
1809		strText = "※ Tick off your specialty on the list.";
1810	} else {
1811		if (cnt > 10) {
1812			alert('ten or less');
1813			VL = VL.replace(/^[0]*/, "");
1814			if ((eval(VL) + 1) == eval(CNT)) document.getElementById("user_SubjectEtc").style.display = "none";
1815			return false;
1816		}
1817
1818//		strText = "※ 전공분야를 " + cnt + " 가지 선택하셨습니다.";
1819		strText = "※ Numbers of areas of expertise selected is " + cnt + ".";
1820	}
1821
1822	document.getElementById("Subject_CheckText").innerText = strText;
1823
1824	reviewSelectCnt = cnt;
1825}
1826
1827
1828// Blue !!!	2010-03-09	Mesh 검색 부분
1829function MeshChk(IDX) {
1830	var st = document.Thesis_Form;
1831
1832	if (st.E_KeyWord[IDX].value == '') {
1833		alert(_Lang_Eng["Please enter your keyword"]);
1834		st.E_KeyWord[IDX].focus();
1835		return false;
1836	} else {
1837		windowOpen('https://www.ncbi.nlm.nih.gov/sites/entrez?db=mesh&term=' + st.E_KeyWord[IDX].value, 'Mesh', 900, 750, ',scrollbars=yes');
1838		return false;
1839	}
1840}
1841
1842
1843// Blue !!!	2010-03-09	Mesh 검색 부분 View (이건 공통부분입니다.)
1844function MeshView(KeyWord) {
1845	windowOpen('https://www.ncbi.nlm.nih.gov/sites/entrez?db=mesh&term=' + KeyWord, 'Mesh', 900, 750, ',scrollbars=yes');
1846}
1847
1848
1849
1850// Blue !!!	2009-05-18	버전 확인용
1851function getNavigatorInfoStr()
1852{
1853    var name = navigator.appName, ver = navigator.appVersion,
1854        ver_int = parseInt(navigator.appVersion), ua = navigator.userAgent, infostr;
1855    if(name == "Microsoft Internet Explorer")
1856    {
1857        if(ver.indexOf("MSIE 3.0") != -1) return "Internet Explorer 3.0x";
1858        if(ver_int != 4) return "Internet Explorer " + ver.substring(0, ver.indexOf(" "));
1859
1860        var real_ver = parseInt(ua.substring(ua.indexOf("MSIE ") + 5));
1861        if(real_ver >= 7) infostr = "Windows Internet Explorer ";
1862        else infostr = "Microsoft Internet Explorer ";
1863
1864        if(ua.indexOf("MSIE 5.5") != -1) return infostr + "5.5";
1865        else return infostr + real_ver + ".x";
1866
1867        return "Internet Explorer";
1868    }
1869    else if(name == "Netscape")
1870    {
1871        if(parseInt(ua.substring(8, 8)) <= 4)
1872          return "Netscape " + ver.substring(0, ver.indexOf(" "));
1873        else if(ua.lastIndexOf(" ") > ua.lastIndexOf("/"))
1874          return ua.substring(ua.lastIndexOf(" "));
1875        else return "Netscape";
1876    }
1877    else return name;
1878}
1879
1880//2010-11-29 skh1120 published List 수정화면에서 중요논문 타이틀 클릭으로 직접지정.
1881function vest_TitleSet(){
1882		document.getElementById("vest_title").value="Featured Article";
1883}
1884
1885// Blue !!!	2007-09-13	편집위원장 게재불가 
1886function thesis_Reject_UpDate(tr_num, AT, MD) {
1887	var Ment, linkUrl;
1888
1889	Ment = "해당 논문을 게재불가(KJMB recommend)로 발송하시겠습니까?";
1890	
1891	linkUrl = ROOT_URL + "/Source/Admin/Admin_thesis_Reject.rang";
1892
1893	if (!confirm(Ment)) {
1894		return false;
1895	} else {
1896		return false;
1897		//location.href = linkUrl + '?tr_num=' + tr_num + '&AT=' + AT + '&MD=' + MD;
1898	}
1899}
1900
1901function Editorial_preViewChk() {
1902	var st = document.sform;
1903	var Recommand = document.getElementsByName("Rstatus");
1904	var LN = Recommand.length;
1905	var Chk = false;
1906	var statusNum = 1;
1907
1908	for (k=0;k < LN;k++) {
1909		if (Recommand[k].checked == true) {
1910			Chk = true;
1911			break;
1912		}
1913		statusNum++;
1914	}
1915
1916	
1917
1918	if (Chk == true) {
1919
1920		document.getElementById("PreviewChk").style.display = "";
1921
1922		document.getElementById("temp_PreChk").value = "Y";		//프리뷰 버튼을 클릭했을 경우!
1923		
1924		var AuthorID = $("#rev_Comm").val();
1925		var ReviewerID = $("#rev_CommText").val();
1926		var MailTextID = $("#rev_MailComm").val();
1927
1928		var focusObj = tinyMCE.getInstanceById("temp_preReview");
1929		var val = st.tr_num.value;
1930		var rev_ListNo = st.rev_ListNo.value;
1931		var rev_Class = st.temp_Class.value;
1932
1933		
1934
1935		var url = ROOT_URL + "/Source/Admin/Command_Preview.rang?tr_num=" + val + "&Rstatus="+ statusNum + "&CK=" + k + "&rev_ListNo=" + rev_ListNo + "&rev_Class=" + rev_Class;
1936		new Ajax.Request(url, {
1937			method: 'get',
1938			onSuccess: function(transport) {
1939				var el = transport.responseText.split("||");
1940
1941				
1942				document.getElementById('temp_Title').value = el[0];
1943				if(!el[1]) el[1] = '';
1944
1945				if(ReviewerID) {
1946					AuthorText = AuthorID + '<div style=\"height:40px\">&nbsp;</div>' + ReviewerID;
1947					AuthorText = AuthorID + '<br />' + ReviewerID;
1948					//AuthorText = ReviewerID;
1949				} else {
1950					AuthorText = AuthorID;
1951				}
1952
1953				TextADD = el[1].replace('#AUTHOR_COMMENT#', AuthorText);
1954				TextADD = TextADD.replace('#EDITOR_COMMENT#', AuthorText);
1955				TextADD = TextADD.replace('#MAIL_COMMENT#', AuthorID);
1956
1957				focusObj.setContent(TextADD);
1958			},
1959			onFailure: function() {
1960				alert("Ajax를 실행할 수 없습니다.");
1961			}
1962		});
1963
1964	} else {
1965		alert("Please select review result.");
1966		st.Rstatus[0].focus();
1967	}
1968
1969}
1970
1971function Editorial_preViewValueChk() {
1972	if (document.getElementById("PreviewChk").style.display==""){  // 미리보기 창이 열려있을경우 
1973		
1974		Editorial_preViewChk();
1975		//document.getElementById("PreviewChk").style.display = "none";
1976	}
1977}
1978
1979
1980// Blue !!!	2009-12-08	편집위원 판정 게재불가시
1981function Editorial_Reject_Chk(num) {
1982	st = document.sform;
1983
1984	document.getElementById("PreviewChk").style.display = "none";
1985
1986	document.getElementById("temp_PreChk").value = "";	// 프리뷰 체크를 초기화
1987
1988	
1989	/*
1990	if (st.Rstatus[4].checked == true) {
1991		document.getElementById("degreeTr").style.display = "";
1992		document.getElementById("degreeTr2").style.display = "none";
1993
1994		var tinyID = tinyMCE.getInstanceById("rev_Comm");
1995		tinyID.setContent("");
1996
1997	} else {
1998		document.getElementById("degreeTr").style.display = "none";
1999		document.getElementById("degreeTr2").style.display = "none";
2000
2001		var tinyID = tinyMCE.getInstanceById("rev_Comm");
2002		tinyID.setContent(preResultCheckArr[num-1]);
2003
2004	}
2005	*/
2006	var tinyID = tinyMCE.getInstanceById("rev_MailComm");
2007	tinyID.setContent(preResultCheckArr[num-1]);
2008}
2009
2010
2011
2012// Blue !!!	2009-10-15	관리자용 검색부분 : 카테고리 검색이 포함된 부분은 이렇게 처리해줍니다. 2단 select
2013function Adm_Search_FormChk_Cate(MD) {
2014	var st = document.Search_Form;
2015
2016	st.target = "";
2017
2018	switch (MD)
2019	{
2020		case "RL":			// Reviewer List
2021			st.action = "Reviewers.html";
2022		break;
2023
2024		case "RS":			// Reviewer Select List
2025			st.action = "Reviewer_Select.html";
2026		break;
2027
2028		case "ES":			// Editor Select List
2029			st.action = "Editor_Select.html";
2030		break;
2031		case "RSS":
2032
2033			if(!st.Search_email.value) {
2034				alert("Please enter your e-mail address.");
2035				st.Search_email.focus();
2036				return false;
2037			} else {
2038				EmailValue= trim_tags(st.Search_email.value);
2039				chk = isEmail(EmailValue);
2040
2041				if (chk == false)
2042				{
2043					alert("You did not enter a valid e-mail address.");
2044					st.Search_email.select();
2045					return false;
2046				}
2047			}
2048
2049			st.action = "Reviewer_GetRegist_Search.html";
2050		break;
2051
2052		default:
2053	}
2054
2055	st.submit();
2056}
2057
2058
2059// Blue !!!	2015-02-11	파일업로드에서 Figure/Table/Supple 선택시 처리되는 부분입니다.
2060// 설정된 index 값에 따라 분기 하기 때문에 Comm_Arr.inc 에서 설정한 인덱스와 맞아야 합니다. // $_SET['thesis']['Figure'] = 4;
2061function fileType_ChangeAll_Fun() {
2062	var chkAll = "none";					// 전체
2063	var chk1 = "none";					// Number
2064	var chk2 = "none";					// caption
2065
2066	var LN = document.getElementsByName("file_Type[]").length;
2067
2068	for (i=0;i < LN;i++) {
2069		switch (document.getElementsByName("file_Type[]")[i].selectedIndex) {
2070			case 2:						// table : 순서와 이미지 일 경우 캡션을 보여줌.
2071			//case 3:						// figure : 순서와 이미지 일 경우 캡션을 보여줌.
2072				chkAll = "";
2073				chk1 = "";
2074				switch (formatChk(document.getElementsByName("file_Name[]")[i])) {
2075					case 'jpg':
2076					case 'jpeg':
2077					case 'gif':
2078					case 'tif':
2079					case 'tiff':
2080					case 'bmp':
2081					case 'png':
2082					case 'eps':
2083						chk2 = "";
2084					break;
2085
2086					default:
2087						chk2 = "none";
2088				}
2089			break;
2090
2091			case 5:						// supple : 순서만 보여줌
2092				chkAll = "";
2093				chk1 = "";
2094				chk2 = "none";
2095			break;
2096
2097			default:
2098				chkAll = "none";
2099				chk1 = "none";
2100				chk2 = "none";
2101		}
2102
2103		// 초기화
2104		if (chk1 == "none") document.getElementsByName("file_SubSeq[]")[i].value = "";
2105		if (chk2 == "none") document.getElementsByName("file_Memo[]")[i].value = "";
2106
2107		document.getElementsByName("file_Name_View")[i].style.display = chkAll;
2108		document.getElementsByName("file_Name_Number")[i].style.display = chk1;
2109		document.getElementsByName("file_Name_Caption")[i].style.display = chk2;
2110	}
2111}
2112
2113// Blue !!!	2012-04-24	파일 업로드
2114function CrossCheck_File_Upload() {
2115	var st = document.Thesis_Form;
2116
2117	if (st.file_Name.value == '') {
2118		alert('Please select your upload files.');
2119		st.file_Name.focus();
2120		return false;
2121	}
2122
2123	switch (formatChk(st.file_Name)) {
2124		case 'html':
2125		case 'pdf':
2126		break;
2127
2128		default:
2129			alert('Please check file type.');
2130			return false;
2131	}
2132
2133	st.submit();
2134}
2135//-->

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.