var contorl_check = false;
var flash_path_xp = '/mmsv/windowxp.swf';
var flash_path_ot = '/mmsv/windowot.swf';
var Name_Insert_Form = "frm";
var Name_Transe_Form = "mmsvFormTrans";
var DownCtrlVer = '1.0.8.1';
////////////////////////////////////////////////////////////////////////////////////////
// Àü¼Û´ã´ç ¾ÆÀÌÇÁ·¹ÀÓ
document.write('');
function mmsv_IsWin64()
{
try{
WebCtrl.CheckInstall();
return true;
}catch(e){
return false;
}
}
/* ÄÁÆ®·Ñ ¼³Ä¡¿©ºÎ */
function mmsv_check()
{
try{
WebCtrl.CheckInstall();
return true;
}catch(e){
return false;
}
}
function mmsv_IsWinXPSP2()
{
try
{
var info = window.clientInformation;
var reg1 = /[^A-Z0-9]MSIE[ ]+6.0[^A-Z0-9]/i;
var reg2 = /[^A-Z0-9]WINDOWS[ ]+NT[ ]+5.1[^A-Z0-9]/i;
if ((info.appMinorVersion.replace(/\s/g,"").toUpperCase().indexOf(";SP2;") >= 0) &&
(reg1.test(info.userAgent) == true) && (reg2.test(info.userAgent) == true))
{
return true;
}
}
catch(e)
{
return false;
}
return false;
}
function mmsv_shortcut(url)
{
if(!mmsv_check()) return;
WebCtrl.MakeShortCut(url);
}
function mmsv_xmlCall(userid, idx, strFlag)
{
var userid = "noName";
WebCtrl.XmlCall( userid, idx, DownCtrlVer);
return;
}
/*
#### ¾÷·Îµå ·çƾ ###
type : 0=°Å·¡¼Ò, 1=ºí·Î±×, 2=°³ÀÎÀÚ·á
idx : _webhard_bbs / _webhard_blog
*/
function mmsv_upload(userid, userpw, type, idx)
{
WebCtrl.UpLoad(userid, userpw, type, idx,DownCtrlVer);
return;
}
/*
#### ´Ù¿î·Îµå ·çƾ ###
type : 0=°Å·¡¼Ò, 1=ºí·Î±×, 2=°³ÀÎÀÚ·á
idx : _webhard_bbs / _webhard_blog
idx_ : _webhard_purchase
*/
function trim(s) {
s += ''; // ¼ýÀÚ¶óµµ ¹®ÀÚ¿·Î º¯È¯
return s.replace(/^\s*|\s*$/g, '');
}
function mmsv_download(userid, userpw, type, idx, idx_,free , div , strFlag)
{
if(div=='C' || div =='D' || div=='V'){
//parent.self.close();
}
userid = trim(userid);
userpw = trim(userpw);
WebCtrl.DownLoad(userid, userpw, type, idx, idx_, free , strFlag,DownCtrlVer);
return;
}
// ¸ÖƼ ´Ù¿î·Îµå
function mmsv_multiDown(userid, userpw, xml, version)
{
userid = trim(userid);
//userpw = trim(userpw) + " 3"; // modify 2021-02-01 G
userpw = trim(userpw); // origin 2021-02-01 G
WebCtrl.DownLoadXML(userid, userpw, xml, DownCtrlVer);
return;
}
function mmsv_download_pop(userid, userpw, type, idx, idx_,free , strFlag)
{
WebCtrl.DownLoad(userid, userpw, type, idx, idx_, free , strFlag,DownCtrlVer);
return;
}
/* #### Àü¼Û¾ÆÀÌÅÛ °ü·Ã ·çƾ ### */
/* ¼±ÅÃµÈ ¾ÆÀÌÅÛ °¹¼ö */
function mmsv_checkCountSet()
{
var count = 0;
var size = 0;
var form = document[Name_Transe_Form];
// Æú´õ üũ
var chkBox_foloer = form.elements['mmsv_trans_folder'];
var chkLen_folder = chkBox_foloer.length;
if(!chkLen_folder) {
if(chkBox_foloer.checked && chkBox_foloer.value!="") count++;
} else {
for(i = 0; i < chkLen_folder; i++) {
if(chkBox_foloer[i].checked && chkBox_foloer[i].value!="") count++;
}
}
// ÆÄÀÏ Ã¼Å©
var chkBox_file = form.elements['mmsv_trans_file'];
var chkLen_file = chkBox_file.length;
if(!chkLen_file) {
if(chkBox_file.checked && chkBox_file.value!="") {
count++;
size+=parseInt(chkBox_file.label);
}
} else {
for(i = 0; i < chkLen_file; i++) {
if(chkBox_file[i].checked && chkBox_file[i].value!="") {
count++;
size+=parseInt(chkBox_file[i].label);
}
}
}
document.all.checkCount.innerHTML= count;
document.all.checkSize.innerHTML= parseSize(size,1);
}
/* Àü¼Û¾ÆÀÌÅÛ Ã¼Å©¹Ú½º Ŭ¸¯(Æú´õ) */
function mmsv_checkFolder(obj)
{
var chkBox = obj.form.elements['mmsv_trans_folder'];
var chkLen = chkBox.length;
if(!chkLen){
if (chkBox.value.indexOf(obj.value) >= 0)
chkBox.checked = obj.checked;
}
else{
for(i = 0; i < chkLen; i++){
if(chkBox[i].value.indexOf(obj.value) >= 0)
chkBox[i].checked = obj.checked;
}
}
var chkBox = obj.form.elements['mmsv_trans_file'];
var chkLen = chkBox.length;
if (!chkLen) {
temp = chkBox.value.split("|");
if (temp[0].indexOf(obj.value) >= 0)
chkBox.checked = obj.checked;
}
else {
for (i = 0; i < chkLen; i++) {
temp = chkBox[i].value.split("|");
if (temp[0].indexOf(obj.value) >= 0)
chkBox[i].checked = obj.checked;
}
}
mmsv_checkCountSet();
}
/* Àü¼Û¾ÆÀÌÅÛ Ã¼Å©¹Ú½º Ŭ¸¯(ÆÄÀÏ) */
function mmsv_checkFile()
{
mmsv_checkCountSet();
}
/* Àü¼Û¾ÆÀÌÅÛ ÆÄÀÏÀÌ Çϳª ÀÌ»ó ¼±ÅõǾú´ÂÁö üũ */
function mmsv_isChecked()
{
var form = document[Name_Transe_Form];
var chkBox = form.elements['mmsv_trans_file'];
var chkLen = chkBox.length;
// ¼±ÅÃµÈ ÆÄÀÏÀÌ ÀÖ´ÂÁö üũ
if(!chkLen) {
if (chkBox.checked) return true;
else return false;
}
else {
for (i = 0; i < chkLen; i++) {
if (chkBox[i].checked) return true;
}
return false;
}
}
/* Àü¼Û¾ÆÀÌÅÛ ´Ù¿î·Îµå */
function mmsv_downloadFile()
{
var form = document[Name_Transe_Form];
if (mmsv_isChecked())
{
mmsv_Trans_Make();
form.pg_mode.value = "mmsv_down";
form.submit();
}
else {
alert("´Ù¿î ¹ÞÀ¸½Ç ÆÄÀÏÀ» ¼±ÅÃÇϼ¼¿ä.\n¾÷·Îµå°¡ ¿Ï·á µÇÁö ¾ÊÀº ÆÄÀÏÀº ¼±ÅÃÇϼŵµ ´Ù¿î ¹ÞÀ¸½Ç ¼ö ¾ø½À´Ï´Ù.");
}
}
/* ¸ðµç ¾ÆÀÌÅÛ ¼±Åà */
function mmsv_checkAll(bcall)
{
var bcheck;
var form = document[Name_Transe_Form];
if(!bcall){
if(!form.chkall.checked)
bcheck = false;
else
bcheck = true;
}else{
bcheck = true;
form.chkall.checked = bcheck;
}
// Æú´õ üũ
var chkBox = form.elements['mmsv_trans_folder'];
var chkLen = chkBox.length;
if(!chkLen){
chkBox.checked = bcheck;
}
else {
for (i = 0; i < chkLen; i++) {
chkBox[i].checked = bcheck;
}
}
// ÆÄÀÏ Ã¼Å©
var chkBox = form.elements['mmsv_trans_file'];
var chkLen = chkBox.length;
if (!chkLen) {
chkBox.checked = bcheck;
}
else {
for (i = 0; i < chkLen; i++) {
chkBox[i].checked = bcheck;
}
}
mmsv_checkCountSet();
}
/* ¸ðµç ¾ÆÀÌÅÛ ´Ù¿î·Îµå */
function mmsv_downloadAll()
{
mmsv_checkAll(true);
mmsv_downloadFile();
}
/* ¼±ÅþÆÀÌÅÛ À̾î¿Ã¸®±â */
function mmsv_uploadFile()
{
var form = document[Name_Transe_Form];
if (mmsv_isChecked())
{
mmsv_Trans_Make();
form.pg_mode.value = "mmsv_up";
form.submit();
}
else {
alert("À̾î¿Ã¸®±â ÇÏ½Ç ÆÄÀÏÀ» ¼±ÅÃÇϼ¼¿ä.");
}
}
/* ¼±ÅÃÆÄÀÏ Á¦°Å*/
function mmsv_removeFile()
{
var form = document[Name_Transe_Form];
if (mmsv_isChecked())
{
if(confirm('Á¤¸» »èÁ¦ÇϽðڽÀ´Ï±î')){
mmsv_Trans_Make();
form.pg_mode.value = "mmsv_remove";
form.submit();
}
}
else {
alert("»èÁ¦ÇÏ½Ç ÆÄÀÏÀ» ¼±ÅÃÇϼ¼¿ä.");
}
}
/* Àü¼Û ¾ÆÀÌÅÛ ¸ñ·Ï ¹®ÀÚ¿ »ý¼º */
function mmsv_Trans_Make()
{
// Àüü ¼±ÅÃ
var arr_files_list = new Array();
var arr_folders_list = new Array();
var form = document[Name_Transe_Form];
var chkBox_files = form.elements['mmsv_trans_file'];
var chkLen_files = chkBox_files.length;
var chkBox_folders = form.elements['mmsv_trans_folder'];
var chkLen_folders = chkBox_folders.length;
var index = 0;
for (i = 0; i < chkLen_files; i++)
{
if (chkBox_files[i].checked && chkBox_files[i].value != "")
{
arr_files_list[index]=chkBox_files[i].value;
index++;
}
}
index = 0;
for (i = 0; i < chkLen_folders; i++)
{
if (chkBox_folders[i].checked && chkBox_folders[i].value != "")
{
arr_folders_list[index]=chkBox_folders[i].value;
index++;
}
}
form.mmsv_files.value ="";
form.mmsv_folders.value ="";
form.mmsv_files.value = arr_files_list.join("<>");
form.mmsv_folders.value = arr_folders_list.join("<>");
}
function fileKeeping()
{
var form = document[Name_Transe_Form];
form.pg_mode.value='mmsv_keeping';
form.submit();
}
/* #### ¾÷·Îµå ÆÄÀÏ Ãß°¡ ·çƾ ### */
/* ¾÷·Îµå ÆÄÀÏ Ãß°¡ ¸®½ºÆ® »ý¼º = ±Ûº¸±â */
function mmsv_Upload_Add_Make()
{
var form = document[Name_Insert_Form];
if(form.mmsv_upload_list.length == 1) {
alert("Ãß°¡ ¾÷·Îµå ÇÏ½Ç ÆÄÀÏÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä!");
return false;
}
var arr_files_list = new Array();
for(i = 1; i < form.mmsv_upload_list.length; i++) {
form.mmsv_upload_list.options[i].selected = true;
arr_files_list[i-1]=form.mmsv_upload_list.options[i].value;
}
form.mmsv_files.value ="";
form.mmsv_files.value = arr_files_list.join("<>");
form.submit();
return true;
}
/* ¾÷·Îµå ÆÄÀÏ ¼±ÅÃâ */
var lastIndex= '';
var zeroSizeArray = new Array(); //Á¦·Î»çÀÌÁî üũ
function mmsv_Upload_Insert(type)
{
if(!mmsv_check()) return;
var f = document.frm;
zeroSizeArray = Array();
if(type == 'file')
WebCtrl.ShowDlgFile();
else if(type == 'folder')
WebCtrl.ShowDlgFolder();
var arr_files_list = new Array();
f.filetype.value=type;
//ÀÌÀü¿¡ ¾÷·ÎµåÇÑ ÆÄÀÏ ¸®¼ÂÇϱâ
if(f.filepath.value && f.mmsv_upload_list.length > lastIndex){
f.filepath.value='';
for(i=1;i 1){ // ÆÄÀÏÀ̳ª Æú´õ°¡ ¼±ÅõǾúÀ»¶§¸¸ 1°ú ºñ±³ÇÏ´Â ÀÌÀ¯´Â -------÷ºÎµÈ ÆÄÀϸñ·Ï------- ÀÌ°Í ¶§¹®
//ÆÄÀϸ®½ºÆ® °¡Á®¿Í¼ select¸®½ºÆ®·Î »Ñ¸®±â
for (i = 1; i < f.mmsv_upload_list.length; i++) {
//f.mmsv_upload_list.options[i].selected = true;
arr_files_list[i-1]=f.mmsv_upload_list.options[i].value;
}
lastIndex = i;
var sp_filename = f.mmsv_upload_list.options[1].value.split('\\');
f.filename.value = sp_filename[sp_filename.length-1];
f.mmsv_files.value ="";
f.mmsv_files.value = arr_files_list.join("<>");
//»çÀÌÁî °è»ê
var plus_size = parseInt('0');
for(var i=0;i 21474836480){
alert('ÄÁÅÙÃ÷´ç ÃÖ´ë 20±â°¡±îÁö ¾÷·Îµå°¡ °¡´ÉÇÕ´Ï´Ù. \r\n\r\n¿ë·®ÀÌ Å¬ °æ¿ì ºÐÇÒÇؼ µî·ÏÇØÁֽñ⠹ٶø´Ï´Ù. ');
}
}
return;
}
/* Ãß°¡ ¾÷·Îµå ¸ñ·Ï ¸®½ºÆ® */
function mmsv_UploadSelect(mode)
{
var form = document[Name_Insert_Form];
for (i = 1; i < form.mmsv_upload_list.length; i++) {
form.mmsv_upload_list.options[i].selected = (mode == "select") ? true : false;
}
}
/* Ãß°¡ ¾÷·Îµå ¸ñ·Ï Ãß°¡½Ã Áߺ¹Ã¼Å© */
function mmsv_UploadCheck(strPath)
{
var form = document[Name_Insert_Form];
for (i = 1; i < form.mmsv_upload_list.length; i++) {
if (form.mmsv_upload_list[i].text == strPath) return i;
}
return 0;
}
/* Ãß°¡ ¼±Åà ¾÷·Îµå ¸ñ·Ï Á¦°Å */
function mmsv_UploadRemove()
{
var form = document[Name_Insert_Form];
var deleted = 0;
// Æú´õ°¡ ¼±ÅõǾú´ÂÁö üũ
for (i = form.mmsv_upload_list.length - 1; i > 0; i--) {
if (form.mmsv_upload_list.options[i].selected == true) {
info = form.mmsv_upload_list[i].value.split("||");
if (info[1] == "-1") {
for (j = 1; j < form.mmsv_upload_list.length; j++) {
if (form.mmsv_upload_list[j].text.indexOf(form.mmsv_upload_list[i].text) >= 0) {
form.mmsv_upload_list.options[j].selected = true;
}
}
}
}
}
for (i = form.mmsv_upload_list.length - 1; i > 0; i--) {
if (form.mmsv_upload_list.options[i].selected == true) {
for (j = i; j < form.mmsv_upload_list.length-1; j++) {
form.mmsv_upload_list[j].value = form.mmsv_upload_list[j+1].value;
form.mmsv_upload_list[j].text = form.mmsv_upload_list[j+1].text;
}
deleted++;
}
}
form.mmsv_upload_list.length -= deleted;
mmsv_UploadSelect("unselect");
}
/* ¼±ÅÃµÈ ÆÄÀϸ®½ºÆ® */
document.write('');
/* ÄÁÆ®·Ñ ¼³Ä¡ È®ÀÎ */
//mmsv_check();
function mmsv_OpenUpLoad(ta,filepath) {
WebCtrl.OpenUpLoad(ta+'/'+filepath);
return;
}
function mmsv_OpenDownLoad(fileName) {
WebCtrl.OpenDownLoad(fileName);
return;
}
/* ÄÁÆ®·Ñ ¼³Ä¡¿©ºÎ */
function open_check()
{
try{
WebCtrl.UpdateOpenCheck();
return true;
}catch(e){
return false;
}
}
function openPdsUploadInsert(f) { //Æû¸í
WebCtrl.ShowDlgOpenFile();
var f = document[Name_Insert_Form];
var arr_files_list = new Array();
if(f.mmsv_upload_list.length > 1){ // ÆÄÀÏÀ̳ª Æú´õ°¡ ¼±ÅõǾúÀ»¶§¸¸ 1°ú ºñ±³ÇÏ´Â ÀÌÀ¯´Â -------÷ºÎµÈ ÆÄÀϸñ·Ï------- ÀÌ°Í ¶§¹®
//ÆÄÀϸ®½ºÆ® °¡Á®¿Í¼ select¸®½ºÆ®·Î »Ñ¸®±â
for (i = 1; i < f.mmsv_upload_list.length; i++) {
arr_files_list[i-1]=f.mmsv_upload_list.options[i].value;
if (i>1)
{
f.mmsv_upload_list.options[i-1].selected ="unselect";
mmsv_UploadRemove();
}
}
lastIndex = i;
var sp_filename = f.mmsv_upload_list.options[1].value.split('\\');
f.filename.value = sp_filename[sp_filename.length-1];
f.mmsv_files.value ="";
f.mmsv_files.value = arr_files_list.join("<>");
//»çÀÌÁî °è»ê
var plus_size = parseInt('0');
for(var i=0;i lastIndex){
f.filepath.value='';
for(i=1;i 1){ // ÆÄÀÏÀ̳ª Æú´õ°¡ ¼±ÅõǾúÀ»¶§¸¸ 1°ú ºñ±³ÇÏ´Â ÀÌÀ¯´Â -------÷ºÎµÈ ÆÄÀϸñ·Ï------- ÀÌ°Í ¶§¹®
//ÆÄÀϸ®½ºÆ® °¡Á®¿Í¼ select¸®½ºÆ®·Î »Ñ¸®±â
for (i = 1; i < f.mmsv_upload_list.length; i++) {
arr_files_list[i-1]=f.mmsv_upload_list.options[i].value;
}
lastIndex = i;
var sp_filename = f.mmsv_upload_list.options[1].value.split('\\');
f.filename.value = sp_filename[sp_filename.length-1];
f.mmsv_files.value ="";
f.mmsv_files.value = arr_files_list.join("<>");
//»çÀÌÁî °è»ê
var plus_size = parseInt('0');
for(var i=0;i 21474836480){
alert('ÄÁÅÙÃ÷´ç ÃÖ´ë 20±â°¡±îÁö ¾÷·Îµå°¡ °¡´ÉÇÕ´Ï´Ù. \r\n\r\n¿ë·®ÀÌ Å¬ °æ¿ì ºÐÇÒÇؼ µî·ÏÇØÁֽñ⠹ٶø´Ï´Ù. ');
}
}
return;
}
//À̹ÌÁö ¾÷·Î´õ ¿ë
function ImgUploadInsert()
{
var lastIndex= '';
var zeroSizeArray = new Array(); //Á¦·Î»çÀÌÁî üũ
if(!mmsv_check())
{
return;
}
var f = document.frm;
zeroSizeArray = Array();
WebCtrl.ShowDlgFile();
var arr_files_list = new Array();
//f.filetype.value= "file";
//ÀÌÀü¿¡ ¾÷·ÎµåÇÑ ÆÄÀÏ ¸®¼ÂÇϱâ
if(f.filepath.value && f.mmsv_upload_list.length > lastIndex)
{
f.filepath.value='';
for(i=1;i 0; i--)
{
if (f.mmsv_upload_list.options[i].selected == true)
{
info = f.mmsv_upload_list[i].value.split("||");
if (info[1] == "-1")
{
for (j = 1; j < f.mmsv_upload_list.length; j++)
{
if (f.mmsv_upload_list[j].text.indexOf(f.mmsv_upload_list[i].text) >= 0)
{
f.mmsv_upload_list.options[j].selected = true;
}
}
}
}
}
for (i = f.mmsv_upload_list.length - 1; i > 0; i--)
{
if (f.mmsv_upload_list.options[i].selected == true)
{
for (j = i; j < f.mmsv_upload_list.length-1; j++)
{
f.mmsv_upload_list[j].value = f.mmsv_upload_list[j+1].value;
f.mmsv_upload_list[j].text = f.mmsv_upload_list[j+1].text;
}
deleted++;
}
}
f.mmsv_upload_list.length -= deleted;
mmsv_UploadSelect("unselect");
}
if(f.mmsv_upload_list.length > 1) // ÆÄÀÏÀ̳ª Æú´õ°¡ ¼±ÅõǾúÀ»¶§¸¸ 1°ú ºñ±³ÇÏ´Â ÀÌÀ¯´Â -------÷ºÎµÈ ÆÄÀϸñ·Ï------- ÀÌ°Í ¶§¹®
{
//ÆÄÀϸ®½ºÆ® °¡Á®¿Í¼ select¸®½ºÆ®·Î »Ñ¸®±â
for (i = 1; i < f.mmsv_upload_list.length; i++)
{
arr_files_list[i-1]=f.mmsv_upload_list.options[i].value;
}
lastIndex = i;
var sp_filename = f.mmsv_upload_list.options[1].value.split('\\');
f.filename.value = sp_filename[sp_filename.length-1];
f.mmsv_files.value ="";
f.mmsv_files.value = arr_files_list.join("<>");
//»çÀÌÁî °è»ê
var plus_size = parseInt('0');
var noSize = 0;
for(var i=0;i