/** * open popup window * * @param vUrl url * @param vWidth window width * @param vHeight window height * @param vName window Name * @param vOpt window scroll * @return window object * * @example openNameWindow(200, 400, 'blank.html', myWIn, 1); */ function openNameWindow(vWidth, vHeight, vUrl, vName, vOpt, vOpt2) { var mdWindow = null; var x = (screen.width - vWidth)/2; var y = (screen.height - vHeight)/2; var opt; if (vOpt == "" || vOpt == null) vOpt = 0; if (vOpt2 == "" || vOpt2 == null) vOpt2 = 0; opt = "width=" + vWidth + ",height=" + vHeight; opt = opt + ",scrollbars=" + vOpt + ",toolbar=0,menubars=0,locationbar=0,historybar=0,statusbar=0"; opt = opt + ",outerWidth=" + vWidth + ",outerHeight=" + vHeight + ",resizable="+ vOpt2; opt = opt + ",left=" + x + ",top=" + y; opt = opt + ",channelmode=no, titlebar=no"; var mdWindow = window.open(vUrl, vName, opt, false); if(!mdWindow){ alert("Æ˾÷Â÷´ÜÀ» ÇØÁ¦ÇØÁÖ¼¼¿ä."); return false; } mdWindow.focus(); } function listenSound(mode , act , snd ){ form_sound.location.href = "?mode=" + mode + "&act=" + act + "&snd=" + snd; } function jsWrite(snd) { var player=""; player = ''; document.write(player); } function goSound(link , snd){ if(snd) { var url = link + '?mode=sound&act=voice&snd=' + snd; openNameWindow(440, 150 , url, 'voice', 1); } else { alert('À½¼º ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.'); return; } //window.open('/admin/FileDownload.php?component=christianity&file_name='+snd); } function goText(txt) { var url = document.URL; var tmp = url.replace('http://', ''); template = tmp.split('/'); if(txt) { var url = '/admin/FileDownload.php?file_name=' + txt + "&component=christianity&template=" + template[1]; openNameWindow(440, 150 , url, 'txt', 1); } else { alert('ÅؽºÆ® ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.'); return; } } function goImage(image) { var url = document.URL; var tmp = url.replace('http://', ''); template = tmp.split('/'); if(image) { var url = '/admin/FileDownload.php?file_name=' + image + "&component=christianity&template=" + template[1]; openNameWindow(440, 300 , url, 'image', 1, 1); } else { alert('À̹ÌÁö ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.'); return; } } function goUcc(link, uccid ) { if(uccid) { var url = link + "?mode=uccview&act=movie&uccid=" + uccid; openNameWindow(440, 435 , url, 'movie_' + uccid , 1); } else { alert('¿µ»ó ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.'); return; } } function playUcc(src) { var player=""; player = ''; document.write(player); } function getContentHTML( key , own , sizeX , sizeY ) { var baseURL = 'http://bucc-001.cafe24.com' ; var out = ''; if( !sizeX ) sizeX = 416; if( !sizeY ) sizeY = 366; out += ( "" ); out += ( "\n" ); out += ""; return out; } function writePlayer( key , own , sizeX , sizeY ) { document.write( getContentHTML( key , own , sizeX , sizeY ) ); } function extArrow(val , ext ) { var spl = val.split("/"); var pos = spl.length-1; var sp = spl[pos].split("."); var po = sp.length-1; if(po==0) { alert('È®ÀåÀÚ°¡ ¾ø´Â ÆÄÀÏÀº ¾÷·Îµå ºÒ°¡´ÉÇÕ´Ï´Ù.') return false; } val = sp[po].toLowerCase(); if(!(strstr(ext,val,true))) { alert( ext + '°¡´ÉÇÕ´Ï´Ù.'); return false; } return true; } // {{{ strstr('Kevin van Zonneveld', 'van'); function strstr( haystack, needle, bool ) { var pos = 0; haystack += ''; pos = haystack.indexOf( needle ); if( pos == -1 ){ return false; } else{ if( bool ){ return haystack.substr( 0, pos ); } else{ return haystack.slice( pos ); } } }// }}}