1function hd_open(nFileNum) { 2 vod_win = window.open('http://www.gcntv.org/KO/Media/Viewer/hd_popup.asp?FileNum='+nFileNum,'vod','left=0,top=0,width=1024,height=768,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); 3 vod_win.focus(); 4} 5 6function media_vod_Open2(timenum, f_nm, playtype, p_codenum) 7{ 8 var mediaVOD_player = window.open('http://www.gcntv.org/KO/Media/Viewer/fms.asp?PlayType='+playtype+'&FileNum='+f_nm+"&timenum="+timenum+"&p_codenum="+p_codenum,'fms','left=0,top=0,width=1024,height=800,status=no,scrollbars=no,resizable=no'); 9 mediaVOD_player.focus(); 10} 11 12function media_flive_Open() 13{ 14 var mediaVOD_player = window.open("../Media/FLiveFile.asp",'mediaVOD','left=50,top=50,width=889,height=575,status=yes,scrollbars=no,resizable=no'); 15 mediaVOD_player.focus(); 16} 17 18function media_flive_Open2() 19{ 20 var mediaVOD_player = window.open(mLang+"/Media/FLiveFile.asp",'mediaVOD','left=50,top=50,width=889,height=570,status=yes,scrollbars=no,resizable=no'); 21 mediaVOD_player.focus(); 22} 23 24/* ìëì° ë¯¸ëì´ íë ì´ì´ ì¬ì©ì : íë¡ê·¸ë¨ */ 25function media_vod_Open( filenum) 26{ 27 var vodfile_player = window.open("../Media/default.asp?FileNum="+filenum,'pgm','width=680,height=410,status=yes,scrollbars = no,resizable=no'); 28 vodfile_player.focus(); 29} 30 31/* ìëì° ë¯¸ëì´ íë ì´ì´ ì¬ì©ì : VODFile */ 32function media_Open( f_nm , speed , playtype) 33{ 34 var mediaVOD_player = window.open('http://www.gcntv.org/KO/Media/Viewer/fms.asp?PlayType='+playtype+'&FileNum='+f_nm+"&Speed="+speed,'fms','left=0,top=0,width=1024,height=700,status=no,scrollbars=no,resizable=no'); 35 mediaVOD_player.focus(); 36} 37 38 39/* íëì¬ ê³ íì§ */ 40function fms_vod(tempArg,tempCodeNum) { 41 var flash_player = window.open('/manmin_sermon_test/Media/fms_live.asp?FileNum='+tempArg + '&CodeNum=' + tempCodeNum,'flashHighVOD','left=10,top=10,width=853,height=809,toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no'); 42 flash_player.focus(); 43} 44 45 46/* ìë°°ìë°©ì¡, 24ìê° ë°©ì¡ */ 47function live_popup(f_live) { 48 49 var win_open = window.open('http://www.gcntv.org/KO/Media/Viewer/FmsLive.asp?live='+f_live,'fms','left=0,top=0,width=400,height=300,scrollbars=no,status=no,resizable=no'); 50 51 /*if (f_live == "flash") { 52 var win_open = window.open('http://www.gcntv.org/KO/Media/Viewer/FmsLive.asp?live='+f_live,'fms','left=0,top=0,width=400,height=300,scrollbars=no,status=no,resizable=no'); 53 } else { 54 var win_open = window.open('http://www.gcntv.org/KO/Media/Viewer/LiveFile.asp?live='+f_live,'fms','left=0,top=0,width=400,height=300,scrollbars=no,status=no,resizable=no'); 55 } 56 */ 57 win_open.focus(); 58} 59 60function live_popup_24h(f_live) { 61 var win_open = window.open('http://www.gcntv.org/KO/Media/Viewer/Live24File.asp?live='+f_live,'fms','left=0,top=0,width=400,height=300,scrollbars=no,status=no,resizable=no'); 62 win_open.focus(); 63} 64 65var g_LANG_DIR = "/KO"; 66try { 67 g_LANG_DIR = document.URL.substring( parseURL(0).length, parseURL(1).length ); 68 g_LANG_DIR = g_LANG_DIR.toUpperCase().substring(0,3); 69 70}catch(e){} 71 72function parseURL(u_Cnt) 73{ 74 var openURL = ""; 75 var tmStr = ""; 76 var tmCnt = -2; 77 78 var cURL = document.URL; 79 80 for (var i=0; i<cURL.length; i++) 81 { 82 if(cURL.substring(i, i+1) == "/") 83 { 84 openURL += tmStr; 85 tmStr = ""; 86 87 if(tmCnt >= u_Cnt && u_Cnt > -1) break; 88 89 tmCnt++; 90 } 91 92 tmStr += cURL.substring(i, i+1); 93 } 94 95 return openURL; 96} 97 98function WritePageList() 99{ 100 101 try 102 { 103 //alert( PageSize + " "+ TotalRow ); 104 if (PageListArea) 105 { 106 if (TotalRow > 1 ) 107 { 108 var tm = parseInt(TotalRow/PageSize) ; 109 tm = (TotalRow%PageSize) > 0 ? tm+1 : tm ; 110 PageListArea.innerHTML = getPageList( "gotoPage", NowPage, tm, TotalRow ) ; 111 } 112 } 113 114 if (PageListArea) { 115 116 var tmN = ( NowPage * PageSize) < TotalRow ? PageSize :(( ((NowPage-1) * PageSize) - TotalRow)*-1) ; 117 118 var tmPage = "<b><font color='#9A9292'>Total:</font><font color='#FF8643'>
118"+TotalRow +"</font></b> <b><font color='#9A9292'>Current:</font><font color='#FF8643'>"+tmN +"</font></b>"; 119 120 tmPage = ""; 121 tmPage = (TotalPage ==0 ) ? tmPage+ "" : tmPage + " [<b><font color='#FF8643'>"+NowPage +"</font></b>/" + TotalPage+"]"; 122 PageListArea.innerHTML += " "+tmPage ; 123 } 124 } 125 catch(e) 126 { 127 alert (' Error Page Info '); 128 } 129 130} 131 132 133var mPopup = ""; 134 135 136function getPageList( FunctioName, NowPage, TotalPage, TotalRow) 137{ 138 139 if (mGubun=='WORLDMISSION') { 140 141 imgArrowLeft1 = "btn3_arrow_left1.jpg"; //ì¼ìª½ 142 imgArrowRight1 = "btn3_arrow_right2.jpg"; //ì¤ë¥¸ìª½ 143 144 imgArrowLeft2 = "btn3_arrow_left.jpg"; //맨ì¼ìª½ 145 imgArrowRight2 = "btn3_arrow_right1.jpg"; //맨ì¤ë¥¸ìª½ 146 147 var imgURL = "../"; 148 149 } else if (mGubun=='VIEWER' || mGubun=='COMMUNITY' || mGubun=='INTRODUCTION' || mGubun=='SEARCH') { 150 151 imgArrowLeft1 = "btn2_arrow_left1.gif"; //ì¼ìª½ 152 imgArrowRight1 = "btn2_arrow_right1.gif"; //ì¤ë¥¸ìª½ 153 154 imgArrowLeft2 = "btn2_arrow_left.gif"; //맨ì¼ìª½ 155 imgArrowRight2 = "btn2_arrow_right2.gif"; //맨ì¤ë¥¸ìª½ 156 157 var imgURL = ""; 158 159 } 160 161 else { 162 163 imgArrowLeft1 = "btn_arrow_left1.gif"; //ì¼ìª½ 164 imgArrowRight1 = "btn_arrow_right1.gif"; //ì¤ë¥¸ìª½ 165 166 imgArrowLeft2 = "btn_arrow_left2.gif"; //맨ì¼ìª½ 167 imgArrowRight2 = "btn_arrow_right2.gif"; //맨ì¤ë¥¸ìª½ 168 169 var imgURL = "/image/00_sub/"; 170 171 } 172 173 174 if (mPopup == "FMS_MEDIA") { 175 i_KeyVal = 5; // 5íì´ì§ì©ë§ ë³´ì¬ì¤ (ê³ íì§ ë·°ì´) 176 } else { 177 i_KeyVal = 10; 178 } 179 180 181 if (TotalPage < 1) 182 return ""; 183 var str =""; 184 var KeyVal = i_KeyVal; 185 var StartPageNum =1 ; 186 187 //try { 188 if (NowPage >=KeyVal) 189 { 190 if ( parseInt(NowPage%KeyVal) == 0 ) { // ì)10ì ë°°ì 191 StartPageNum = parseInt(NowPage - (i_KeyVal-1)) ; 192 } else { 193 StartPageNum = (NowPage < KeyVal) ? NowPage : (parseInt(NowPage/KeyVal) *i_KeyVal +1) ; 194 } 195 } 196 197 var EndPageNum = (StartPageNum + KeyVal - 1) < TotalPage ? (StartPageNum + KeyVal - 1) : TotalPage ; 198 199 //alert( FunctioName + " "+ NowPage + " "+ TotalPage + " "+ TotalRow + " "+ EndPageNum); 200 201 202 if ( EndPageNum > 1 ) 203 { 204 205 for (var i=StartPageNum ; i <= EndPageNum ; i++) 206 { 207 if (NowPage == i) 208 str += "<a href=javascript:"+FunctioName+"("+i+") class='PAGE sect'>"+i+"</a> " ; 209 else 210 str += "<a href=javascript:"+FunctioName+"("+i+") class=PAGE>"+i+"</a> " ; 211 } 212 213 if ( StartPageNum > i_KeyVal ) 214 str = "<a href=javascript:"+FunctioName+"("+parseInt(StartPageNum-1)+") class=PAGE1><img src='"+ imgURL + imgArrowLeft1 +"' border='0'></a> " + str ; 215 216 if ( EndPageNum < TotalPage ) 217 str = str + "<a href=javascript:"+FunctioName+"("+parseInt(EndPageNum+1)+") class=PAGE1><img src='"+ imgURL + imgArrowRight1 +"' border='0'></a> " ; 218 219 //맨ì²ì 220 if (1 != StartPageNum) 221 str = "<a href=javascript:"+FunctioName+"(1) class=PAGE1><img src='"+ imgURL + imgArrowLeft2 +"' border='0'></a> " + str ; 222 else 223 str = "<img src='"+ imgURL + imgArrowLeft2 +"' border='0'> " + str ; 224 //맨ëì¤ 225 if (TotalPage != EndPageNum) 226 str = str + " <a href=javascript:"+FunctioName+"("+TotalPage+") class=PAGE1><img src='"+ imgURL + imgArrowRight2 +"' border='0'></a>" ; 227 else 228 str = str + " <img src='"+ imgURL + imgArrowRight2 +"' border='0'>" ; 229 } 230 231 //}catch(e){ } 232 return str; 233} 234 235 236function _getPageList( FunctioName, NowPage, PageSize, TotalRow) 237{ 238 239 if (PageSize < 1) 240 return ""; 241 var str =""; 242 243 244 if (mPopup == "FMS_MEDIA") { 245 i_KeyVal = 5; // 5íì´ì§ì©ë§ ë³´ì¬ì¤ (íëì ê³ íì§ ë·°ì´) 246 } else { 247 i_KeyVal = 10; 248 } 249 250 251 var KeyVal = i_KeyVal ; 252 253 254 var StartPageNum =1 ; 255 try { 256 if (NowPage >=KeyVal) 257 { 258 if ( parseInt(NowPage%KeyVal) == 0 ) // ì)10ì ë°°ì 259 StartPageNum = parseInt(NowPage - i_KeyVal-1) ; 260 else 261 StartPageNum = (NowPage < KeyVal) ? NowPage : (parseInt(NowPage/KeyVal) *i_KeyVal +1) ; 262 } 263 264 var TotalPage = parseInt(TotalRow / PageSize ) ; 265 TotalPage = ( TotalRow % PageSize ) > 0 ? TotalPage + 1 : TotalPage ; 266 267 var EndPageNum = TotalPage ; 268 if ( TotalPage > 1 ) 269 { 270 for (var i=StartPageNum ; i <= EndPageNum ; i++) 271 { 272 if (NowPage == i) 273 str += "<a href=javascript:"+FunctioName+"("+i+") class=PAGE><b><font color='#FF8643' size='3'>"+i+" </font></b></a> " ; 274 else 275 str += "<a href=javascript:"+FunctioName+"("+i+") class=PAGE>"+i+" </a> " ; 276 } 277 278 279 //ì´ì íì´ì§ 280 if (NowPage == 1) 281 str = "<img src='common/img/btn_pre_gray.gif' border='0'> " + str ; 282 else 283 str = "<a title='Previous' href=javascript:"+FunctioName+"("+(parseInt(NowPage)-1)+") class=PAGE1><img src='common/img/btn_pre.gif' border='0'></a> " + str ; 284 285 //ë¤ì íì´ì§ 286 if (NowPage == TotalPage) 287 str = str + "<img src='common/img/btn_next_gray.gif' border='0'> " ; 288 else 289 str = str + "<a title='Next' href=javascript:"+FunctioName+"("+(parseInt(NowPage)+1)+") class=PAGE1><img src='common/img/btn_next.gif' border='0'></a> " ; 290 291 //맨ì²ì 292 if (NowPage == 1) 293 str = "<img src='common/img/btn_first_gray.gif' border='0'> " + str ; 294 else 295 str = "<a href=javascript:"+FunctioName+"(1) class=PAGE1><img src='common/img/btn_first.gif' border='0'></a> " + str ; 296 297 //맨ëì¤ 298 if (NowPage == TotalPage) 299 str = str + "<img src='common/img/btn_final_gray.gif' border='0'>" ; 300 else 301 str = str + "<a href=javascript:"+FunctioName+"("+TotalPage+") class=PAGE1><img src='common/img/btn_final.gif' border='0'></a>" ; 302 } 303 304 }catch(e){ } 305 return str; 306} 307 308 309 310function WritePageMiniList() 311{ 312 try 313 { 314 315 if (PageListArea) 316 { 317 if (TotalRow > 1 ) 318 { 319 var tm = parseInt(TotalRow/PageSize) ; 320 tm = (TotalRow%PageSize) > 0 ? tm+1 : tm ; 321 PageListMiniArea.innerHTML = getPageMiniList( "gotoMiniPage", NowPage, tm, TotalRow ) ; 322 } 323 } 324 325 if (PageListArea) { 326 327 var tmN = ( NowPage * PageSize) < TotalRow ? PageSize :(( ((NowPage-1) * PageSize) - TotalRow)*-1) ; 328 329 var tmPage; 330 331 tmPage = ""; 332 tmPage = (TotalPage ==0 ) ? tmPage+ "" : tmPage + " [<b><font color='#FF8643' size='2'>"+NowPage +"</font></b>/" + TotalPage+"]"; 333 PageListMiniArea.innerHTML += " "+tmPage ; 334 } 335 } 336 catch(e) 337 { 338 alert (' Error Page Info '); 339 } 340} 341 342 343function getPageMiniList( FunctioName, NowPage, TotalPage, TotalRow) 344{ 345 if (TotalPage < 1) 346 return ""; 347 var str =""; 348 var KeyVal = 10 ; 349 var StartPageNum =1 ; 350 351 try { 352 if (NowPage >=KeyVal) 353 { 354 if ( parseInt(NowPage%KeyVal) == 0 ) // ì)10ì ë°°ì 355 StartPageNum = parseInt(NowPage - 9) ; 356 else 357 StartPageNum = (NowPage < KeyVal) ? NowPage : (parseInt(NowPage/KeyVal) *10 +1) ; 358 } 359 360 var EndPageNum = (StartPageNum + KeyVal - 1) < TotalPage ? (StartPageNum + KeyVal - 1) : TotalPage ; 361 362 if ( EndPageNum > 1 ) 363 { 364 if ( StartPageNum > 10 ) 365 str = "<a href=javascript:"+FunctioName+"("+parseInt(StartPageNum-1)+") class=PAGE1><img src='common/img/btn_pre.gif' border='0'></a> " + str ; 366 367 if ( EndPageNum < TotalPage ) 368 str = str + "<a href=javascript:"+FunctioName+"("+parseInt(EndPageNum+1)+") class=PAGE1><img src='common/img/btn_next.gif' border='0'></a> " ; 369 370 } 371 372 }catch(e){ } 373 return str; 374} 375 376 377/* ì²´í¬ ë°ì¤ ì í*/ 378function CheckAll(form, objName) 379{ 380 if (!form[objName]) 381 return ; 382 383 if ( form[objName].length > 1 ) 384 { 385 var tmChk = !(form[objName][0].checked); 386 for(var i=0; i <form[objName].length; i++) 387 { 388 form[objName][i].checked = tmChk ; 389 } 390 } 391 else 392 { 393 form[objName].checked = !(form[objName].checked); 394 } 395 396 CheckEach( form, objName ) ; 397} 398 399function CheckEach( form, objName ) 400{ 401 try { 402 var tmCnt = parseInt( Check_Count(form, objName) ) ; 403 if (tmCnt > 1 ) 404 AllViewButtonArea.style.display = 'block'; 405 else { 406 AllViewButtonArea.style.display = 'none'; 407 form.AllChk.checked = false; 408 } 409 }catch(e){} 410} 411 412function Check_Count(form, objName) 413{ 414 if (!form[objName]) 415 return -1; 416 417 var cnt = 0; 418 if ( form[objName].length > 1 ) 419 { 420 for(var i=0; i <form[objName].length; i++) 421 { 422 if (form[objName][i].checked) 423 cnt ++; 424 } 425 } 426 else 427 { 428 if ( form[objName].checked ) 429 cnt ++; 430 } 431 432 return cnt; 433} 434
435function OnMoreArea(idx) 436{ 437//alert(MoreArea.length); 438//idx = document.PageForm.PageSize.value * ( document.PageForm.NowPage.value -1) ; 439 440 try { 441 if (MoreArea.length >1) 442 { 443 if (idx ==-1)//all 444 { 445 for(var i=0; i<MoreArea.length; i++) 446 { 447 if ( MoreArea[i].style.display =='none') 448 MoreArea[i].style.display ='block'; 449 else 450 MoreArea[i].style.display ='none'; 451 } 452 } 453 else 454 { 455 if ( MoreArea[idx].style.display =='none') 456 MoreArea[idx].style.display ='block'; 457 else 458 MoreArea[idx].style.display ='none'; 459 } 460 } 461 else 462 { 463 if (idx ==-1)//all 464 { 465 if ( MoreArea.style.display =='none') 466 MoreArea.style.display ='block'; 467 else 468 MoreArea.style.display ='none'; 469 470 /*for(var i=0; i<MoreArea.length; i++) 471 { 472 if ( MoreArea.style.display =='none') 473 MoreArea.style.display ='block'; 474 else 475 MoreArea.style.display ='none'; 476 }*/ 477 } 478 else 479 { 480 if ( MoreArea.style.display =='none') 481 MoreArea.style.display ='block'; 482 else 483 MoreArea.style.display ='none'; 484 } 485 } 486 }catch(e){ alert(idx + 'more' + MoreArea.length);} 487} 488 489 490 491/* ì¿ í¤ ê´ë ¨ í¨ì */ 492function delCookie(name,value,expires,path,domain,secure) { 493 document.cookie = name + "=" + escape (value) + 494 ((expires) ? "; expires=" + expires : "") + 495 ((path) ? "; path=" + path : "") + 496 ((domain) ? "; domain=" + domain : "") + 497 ((secure) ? "; secure" : ""); 498} 499 500function setCookie (name,value,expires,path,domain,secure) { 501 document.cookie = name + "=" + escape (value) + 502 ((expires) ? "; expires=" + expires.toGMTString() : "") + 503 ((path) ? "; path=" + path : "") + 504 ((domain) ? "; domain=" + domain : "") + 505 ((secure) ? "; secure" : ""); 506} 507 508function getCookieVal (offset) { 509 var endstr = document.cookie.indexOf (";", offset); 510 if (endstr == -1) 511 endstr = document.cookie.length; 512 return unescape(document.cookie.substring(offset, endstr)); 513} 514 515function getCookie (name) { 516 var arg = name + "="; 517 var alen = arg.length; 518 var clen = document.cookie.length; 519 var i = 0; 520 while (i < clen) { 521 var j = i + alen; 522 if (document.cookie.substring(i, j) == arg) 523 return getCookieVal (j); 524 i = document.cookie.indexOf(" ", i) + 1; 525 if (i == 0) break; 526 } 527 return null; 528} 529 530/* í°í¸ ê´ë ¨ í¨ì */ 531var view_fontSize = 17 ; 532 533//try { view_fontSize = parseInt(getCookie("view_fontSize")); }catch(e){} 534 535function initFont() { 536 537 if ( (view_fontSize < 14) || (view_fontSize > 20) || (isNaN(view_fontSize) == true)) { 538 view_fontSize = 14; 539 } 540 541 setFont(view_fontSize); 542} 543 544function setFont(view_fontSize) { 545 546 try { 547 if (viewBody.length > 1 ) { 548 for (var i=0; i< viewBody.length ; i++) 549 viewBody[i].style.fontSize = view_fontSize+"px"; 550 viewBody[i].style.lineHeight = (12+parseInt(view_fontSize))+"px"; 551 552 } 553 else 554 { 555 document.getElementById("viewBody").style.fontSize = view_fontSize+"px"; 556 document.getElementById("viewBody").style.lineHeight = (12+parseInt(view_fontSize))+"px"; 557 558 } 559 setFontCookie(view_fontSize); 560 561 }catch(e){ 562 document.getElementById("viewBody").style.fontSize = view_fontSize+"px"; 563 document.getElementById("viewBody").style.lineHeight = (12+parseInt(view_fontSize))+"px"; 564 setFontCookie(view_fontSize); 565 } 566} 567 568function setFontCookie(view_fontSize) 569{ 570 var expiry = new Date(); 571 var path = "/"; 572 var domain = ".manmintv.org"; 573 var secure = ""; 574 575 576 expiry.setTime(expiry.getTime() + 90 * (24 * 60 * 60 * 1000)); 577 578 setCookie("view_fontSize",view_fontSize,expiry,path,domain,secure); 579} 580 581function fontPlus() { 582 583 if (view_fontSize < 24) { 584 view_fontSize = view_fontSize + 1; 585 setFont(view_fontSize); 586 } 587} 588 589function fontMinus() { 590 if (view_fontSize > 14) { 591 view_fontSize = view_fontSize - 1; 592 setFont(view_fontSize); 593 } 594} 595 596function print() 597{
598 //alert( document.getElementById("viewBody").innerHTML); 599 try{ 600 601 var newWin = window.open("../Common/print.htm", "", "width=820,height=400,scrollbars=yes,resizable=yes"); 602 603 }catch(e){alert(' Print Failed' );} 604 605} 606 607 608function print2() 609{ 610 611 try{ 612 613 var newWin = window.open("../Common/print.htm", "", "width=820,height=600,scrollbars=yes,resizable=yes"); 614 615 }catch(e){alert(' Print Failed' );} 616 617} 618 619 620function print3() 621{ 622 623 try{ 624 625 var newWin = window.open("./Common/print.htm", "", "width=820,height=600,scrollbars=yes,resizable=yes"); 626 627 }catch(e){alert(' Print Failed' );} 628 629} 630 631 632function MM_jumpMenu(targ,selObj,restore){ //v3.0 633 634 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 635 if (restore) selObj.selectedIndex=0; 636 637} 638 639function MM_jumpMenu2(targ,selObj,restore){ //v3.0 640 location.href="board.asp?head_title=" + selObj.options[selObj.selectedIndex].value; 641 //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 642 if (restore) selObj.selectedIndex=0; 643} 644 645function openwin_bible() { 646 window.open('http://manmintv.co.kr/bible/','bible','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=50, top=50, width=680,height=560'); 647} 648 649function openwin_ebible() { 650 window.open('http://manmintv.co.kr/ebible/','bible','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=50, top=50, width=680,height=560'); 651} 652 653function gallery_open_main(tempFlag) { 654 var photo_gallery = window.open('../Gallery/gallery.asp?'+tempFlag,'gallery','width=1024,height=740,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 655 photo_gallery.focus(); 656} 657 658function gallery_open(tempFlag) { 659 var photo_gallery = window.open('../../Gallery/gallery.asp?'+tempFlag,'gallery','width=1024,height=740,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 660 photo_gallery.focus(); 661} 662 663function openwin_guide(theURL) { 664 window.open(theURL,"01",'width=1000,height=650,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 665} 666 667function banner_open1() { 668 window.open('../Event/offering/form.asp','mission','width=550,height=720,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 669} 670 671function view_banner(nArg) { 672 673 if (nArg==1) { 674 show_banner.style.visibility = "visible"; 675 show_banner.style.display = "block"; 676 } else { 677 show_banner.style.visibility = "hidden"; 678 } 679 680} 681 682function openwin_faq(theURL) { 683 window.open(theURL, "faq1", 'width=500,height=290,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 684} 685 686function openwin_pod(theURL) { 687 window.open(theURL,"ipod",'left=5,top=5,width=574,height=850,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no'); 688} 689 690/************* Language Selection ***************/ 691var open_flag = 0; 692function open_lang_menu() { 693 694 document.getElementById('s_menu2').style.display="block"; 695} 696 697 698function open_lang_menu_show() { 699 700 document.getElementById('s_menu2').style.display = 'none'; 701 702} 703 704function open_lang_menu_hide() { 705 706 document.getElementById('s_menu2').style.display = 'none'; 707 708} 709/************* Language Selection ***************/ 710 711 712/************* Live Broadcasting ***************/ 713var open_live_flag = 0; 714function open_live_menu() { 715 716 //if (open_live_flag == 0) { 717 document.all('s_live1').style.visibility = 'visible'; 718 open_live_flag = 1; 719 //} else { 720 // document.all('s_live1').style.visibility = 'hidden'; 721 // open_live_flag = 0; 722 //} 723 724} 725 726function open_live_menu_show() { 727 document.all('s_live1').style.visibility = 'visible'; 728 open_live_flag = 1; 729} 730 731function open_live_menu_hide() { 732 document.all('s_live1').style.visibility = 'hidden'; 733 open_live_flag = 0; 734} 735/************* Live Broadcasting ***************/ 736 737function page_login(targetURL) { 738 739 window.open("/KO/Member/pop_login.asp?nowurl=" + targetURL,"pop_login","width=300,height=230"); 740 741} 742 743function win_open_cookie(tempArg) { 744 745 var todayDate = new Date(); 746 var name = "win_open"; 747 var value = "open"; 748 var expires = todayDate.toGMTString(); 749 750 751 if (tempArg == 1) { // íì ì°½ ë¸ 752 753 todayDate.setDate( todayDate.getDate() + 0 ); 754 document.cookie = name + "=" + escape( value ) + "; path=/;"; 755 756 } else if (tempArg == 2) { // íì ì°½ ë«í 757 758 todayDate.setDate( todayDate.getDate() - 1 ); 759 document.cookie = name + "= " + "; expires=" + todayDate.toGMTString() + "; path=/"; 760 761 } else { 762 763 document.cookie = name + "=" + escape (value) + 764 ((expires) ? "; expires=" + expires : ""); 765 766 } 767 768 769 770} 771 772 773// PhotoGallery ìì ì¬ì© 774function sendPhotoSNS(type,msg,nowurl,gubun) { 775 776 var t_type = type; 777 var t_msg = msg;
778 var t_nowurl = nowurl; 779 var gubun; 780 781 if (gubun == 'LIST') { 782 sendSNS(t_type,t_msg,nowurl); 783 } else { 784 785 var PhotoNum = document.PageForm.PhotoNum.value; 786 var PhotoSeq = document.PageForm.PhotoSeq.value; 787 var s_SectionType = document.PageForm.s_SectionType.value; 788 var cPage = document.PageForm.NowPage.value; 789 t_nowurl = "http://www.manmintv.org/KO/gallery/photo_view.asp?PhotoNum="+PhotoNum+"&page="+cPage+"&PhotoSeq="+PhotoSeq+"&s_SectionType="+s_SectionType; 790 sendSNS(t_type,t_msg,t_nowurl); 791 792 } 793 794} 795 796 797// ì¤êµë± ìì ì¬ì© 798function sendNormalSNS(type,msg,nowurl,gubun) { 799 800 var t_type = type; 801 var t_msg = msg; 802 var t_nowurl = nowurl; 803 var gubun; 804 805 sendSNS(t_type,t_msg,nowurl); 806 807} 808 809 810// windows media popupìì ì¬ì© 811function sendMakeSNS(type,msg,nowurl) { 812 813 var t_type = type; 814 var t_msg = msg; 815 var t_nowurl = nowurl; 816 var gubun; 817 818 sendSNS(t_type,t_msg,nowurl); 819 820} 821 822 823// chksong, chksermon ì¼ë ì¬ì© 824function sendCheckSNS(type,msg,nowurl) { 825 826 //alert(top.ifr_tp.document.frm1.Media_URL.value); 827 828 msg = top.ifr_tp.document.frm1.Media_TITLE.value; 829 var chk_value = top.ifr_tp.document.frm1.FileNum.value; 830 var nowurl = nowurl + chk_value; 831 832 var t_type = type; 833 var t_msg = msg; 834 var t_nowurl = nowurl; 835 var gubun; 836 837 sendSNS(t_type,t_msg,nowurl); 838 839} 840 841 842function sendSNS(type,msg,url) { 843 844 845 /* 846 var apiCallUrl = "http://api.bit.ly/v3/shorten" 847 + "?version=2.0.1" 848 + "&login=manmintv" 849 + "&apiKey=R_21a7c463bce6271ade166f02dfeec5a1" 850 + "&callback=?" 851 + "&longUrl="+encodeURIComponent(window.location.href); 852 */ 853 854 var apiCallUrl = "http://api.bit.ly/v3/shorten" 855 + "?version=2.0.1" 856 + "&login=manmintv" 857 + "&apiKey=R_21a7c463bce6271ade166f02dfeec5a1" 858 + "&callback=?" 859 + "&longUrl="+encodeURIComponent(url); 860 861 862 jQuery.getJSON( 863 apiCallUrl, 864 function(data) { 865 if(data.status_txt == "OK") { 866 var sendUrl; 867 var shortUrl = data.data["url"]; 868 869 switch(type) { 870 871 872 case "tw": 873 var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(shortUrl); 874 var win = window.open(href, 'twitter', ''); 875 if (win) 876 { 877 win.focus(); 878 } 879 break; 880 881 case "me": 882 883 var tag = 'MANMIN TV'; 884 var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(shortUrl) + "&new_post[tags]=" + encodeURIComponent(tag); 885 var win = window.open(href, 'me2Day', ''); 886 if (win) { 887 win.focus(); 888 } 889 890 break; 891 892 case "fa": 893 894 //var href = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(shortUrl); 895 var href = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(shortUrl) + '&t=' + encodeURIComponent(msg); 896 var win = window.open(href, 'facebook', ''); 897 if(win) 898 { 899 win.focus(); 900 } 901 break; 902 903 case "yo": 904 905 //function YozmDaum(link,prefix,parameter) 906 //{ 907 908 var link = shortUrl; 909 var prefix = msg; 910 var parameter = 'MANMIN TV'; 911 912 var href = "http://yozm.daum.net/api/popup/prePost?link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "¶meter=" + encodeURIComponent(parameter); 913 var win = window.open(href, 'yozmSend', 'width=466, height=356'); 914 if (win) { 915 win.focus(); 916 } 917 //} 918 919 break; 920 921 922 923 } 924 925 926 } 927 928 } 929 930 ); 931 932 933} 934 935 936 937 938 939 940 941//í¸ìí° ê²ìí기 942function twitter(msg,url) 943{ 944 var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url); 945 var win = window.open(href, 'twitter', ''); 946 if (win) 947 { 948 win.focus(); 949 } 950} 951 952 953//íì´ì¤ë¶ ê²ìí기 954function facebook(url) 955{ 956 var href = "http://www.facebook.com/sharer.php?u=" + url; 957 var win = window.open(href, 'facebook', ''); 958 if(win) 959 { 960 win.focus(); 961 } 962} 963 964 965//미í¬ë°ì´ ê²ìí기 966function Me2Day(msg,url,tag) 967{
968 var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag); 969 var win = window.open(href, 'me2Day', ''); 970 if (win) { 971 win.focus(); 972 } 973} 974 975 976//ë¤ì ìì¦ ê²ìí기 977function YozmDaum(link,prefix,parameter) 978{ 979 var href = "http://yozm.daum.net/api/popup/prePost?link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "¶meter=" + encodeURIComponent(parameter); 980 var win = window.open(href, 'yozmSend', 'width=466, height=356'); 981 if (win) { 982 win.focus(); 983 } 984} 985 986 987function SNS(t,u,ds,o) { 988 var d = encodeURIComponent(ds); 989 switch (t) { 990 case 't': 991 window.open('http://twitter.com/share?url=' + u + '&text=' + d,o, 'width=600 height=300'); 992 break; 993 case 'm': 994 window.open('http://me2day.net/posts/new?new_post[body]=' + d + ' ' + u + '&new_post[tags]=o',o); 995 break; 996 case 'y': 997 window.open('http://yozm.daum.net/api/popup/prePost?prefix=' + d + '&link=' + u,o, 'width=466 height=356'); 998 break; 999 case 'f': 1000 window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u),o,'resizable=no width=600 height=300'); 1001 break; 1002 } 1003} 1004 1005 1006function urlCopy(url) { 1007 1008 window.clipboardData.setData('Text',url); 1009 alert("주ìê° ë³µì¬ ëììµëë¤. \nCtrl + Vë¡ ë¶ì¬ë£ê¸° íì¸ì."); 1010 1011} 1012 1013 1014function pdfMake(url,t_sermonnum) { 1015 1016 var theURL = "/KO/Common/pdfmaking.asp?url="+url+"&t_sermonnum="+t_sermonnum; 1017 1018 var w_pdf = window.open(theURL, "pdf", 'width=500,height=290,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no'); 1019 w_pdf.focus(); 1020 1021} 1022 1023 1024function content_mail(t_txt,t_url,gubun) { 1025 1026 if (gubun == 'PHOTO_VIEW') { 1027 1028 var PhotoNum = document.PageForm.PhotoNum.value; 1029 var PhotoSeq = document.PageForm.PhotoSeq.value; 1030 var s_SectionType = document.PageForm.s_SectionType.value; 1031 var cPage = document.PageForm.NowPage.value; 1032 t_url = "http://www.manmintv.org/KO/gallery/photo_view.asp?PhotoNum="+PhotoNum+"&page="+cPage+"&PhotoSeq="+PhotoSeq+"&s_SectionType="+s_SectionType; 1033 1034 } 1035 1036 1037 var apiCallUrl = "http://api.bit.ly/v3/shorten" 1038 + "?version=2.0.1" 1039 + "&login=manmintv" 1040 + "&apiKey=R_21a7c463bce6271ade166f02dfeec5a1" 1041 + "&callback=?" 1042 + "&longUrl="+encodeURIComponent(t_url); 1043 1044 1045 jQuery.getJSON( 1046 apiCallUrl, 1047 function(data) { 1048 1049 if(data.status_txt == "OK") { 1050 var sendUrl; 1051 var shortUrl = data.data["url"]; 1052 1053 1054 mailurl = "/KO/Common/content_mail_ko.asp?t_txt="+t_txt+"&t_url="+encodeURIComponent(shortUrl); 1055 var p_content = window.open(mailurl, 'WinMail','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=480,height=370'); 1056 p_content.focus(); 1057 1058 1059 } 1060 1061 } 1062 1063 ); 1064 1065 1066 1067} 1068 1069// chksermon, chksong 1070function urlCheckCopy(nowurl) { 1071 1072 var chk_value = top.ifr_tp.document.frm1.FileNum.value; 1073 var nowurl = nowurl + chk_value; 1074 1075 window.clipboardData.setData('Text',nowurl); 1076 alert("주ìê° ë³µì¬ ëììµëë¤. \nCtrl + Vë¡ ë¶ì¬ë£ê¸° íì¸ì."); 1077 1078} 1079 1080// chksermon, chksong 1081function content_check_mail(t_txt,t_url) { 1082 1083 var msg = top.ifr_tp.document.frm1.Media_TITLE.value; 1084 var chk_value = top.ifr_tp.document.frm1.FileNum.value; 1085 var nowurl = t_url + chk_value; 1086 1087 mailurl = "/KO/Common/content_mail_ko.asp?t_txt="+msg+"&t_url="+encodeURIComponent(nowurl); 1088 var p_content = window.open(mailurl, 'WinMail','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=602,height=427'); 1089 p_content.focus(); 1090 1091} 1092 1093 1094function scrap(t_txt,t_url,t_gubun,t_filenum) { 1095 1096 var scrap_url = "/KO/Common/scrap_ko.asp?t_txt="+t_txt+"&t_url="+encodeURIComponent(t_url)+"&t_gubun="+t_gubun+"&t_filenum="+t_filenum; 1097 var p_scrap = window.open(scrap_url, 'WinScrap','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=602,height=427'); 1098 p_scrap.focus(); 1099 1100 1101} 1102 1103 1104function view_article(t_num) { 1105 1106 var w_open = window.open('/KO/Board/w_board.asp?codeNum=&page=&prj_name=mobile_guide&table_name=mtv_normal_brd_mobile_guide','board','left=0,top=0,width=550,height=650,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no'); 1107 w_open.focus(); 1108 1109} 1110 1111 1112function openwin_as(tempArg1,tempArg2) { 1113 var win1 = window.open('http://www.gcntv.org/ko/Board/info_add.asp?apply_gubun='+tempArg1,'regist','left=0,top=0,width=618,height=800,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes'); 1114 win1.focus(); 1115}
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.