function td1(values){
open1=open('')
open1.focus()
open1.moveTo(0,0)
open1.resizeTo(screen.availWidth,screen.availHeight)
open1.document.write(values)
}
function td6(){       //全选
str1=document.body.scrollTop;bos.focus();bos.select();window.scrollTo(0,str1)
}
function td7(){       //剪切
str1=document.selection.createRange().text
str2=bos.value.indexOf(str1)
if(str1!=""&&str2!=-1)document.execCommand("cut")
}
function td8(){       //复制
str1=document.selection.createRange().text
str2=bos.value.indexOf(str1)
if(str1!=""&&str2!=-1)document.execCommand("copy")
}
function td9(){       //粘贴
str1=document.body.scrollTop;bos.focus();document.execCommand('paste');window.scrollTo(0,str1)
}
function td10(){      //删除
str1=document.selection.createRange().text
str2=bos.value.indexOf(str1)
if(str1!=""&&str2!=-1)document.execCommand("delete")
}
function td11(){      //撤消
document.execCommand("undo");
}
function td12(){      //恢复撤消
document.execCommand("redo");
}
function td13(){      //格式化
if(bos.value.length==0){alert('编辑区内没有字符，无法进行格式化操作')}else{bos.value=bos.value.replace(/></g,">\n<")}
}
function td14(){      //压缩
if(bos.value.length==0){alert('编辑区内没有字符，无法进行压缩操作')}else{bos.value=bos.value.replace(/\s\s/g,"")}
}
var case1
function td15(){      //大小写
if(bos.value.length==0){alert('编辑区内没有字符，无法进行字符大小写操作')}else{showModalDialog("editdhtml/editdhtml_case.htm",window,"center:yes;dialogHeight:100px;dialogWidth:220px;help:no;status:no")}
}
function td15_2(){
if(case1==1){bos.value=bos.value.toUpperCase()}else if(case1==2){bos.value=bos.value.toLowerCase()};
}
var replace1,replace2
function td16(){      //替换
if(bos.value.length==0){alert('编辑区内没有字符，无法进行替换操作')}else{showModalDialog("editdhtml/editdhtml_tihuan.htm",window,"center:yes;dialogHeight:140px;dialogWidth:250px;help:no;status:no")}
}
function td16_2(){
bosvalue=bos.value    //为了替换弹出对话框
for(i=0;i<100;i++){bosvalue=bosvalue.replace(replace1,replace2)};
bos.value=bosvalue;
}
function td17(){      //字体工具
p=showModalDialog("editdhtml/editdhtml_face.htm",window,"center:yes;dialogHeight:380px;dialogWidth:490px;help:no;status:no")
str1=document.body.scrollTop;bos.focus();if(p!=null)document.selection.createRange().text=p
window.scrollTo(0,str1)
}
var color1="0",color2="0",color3="0"
function td18(){      //颜色工具
p=showModalDialog("editdhtml/editdhtml_color.htm",window,"center:yes;dialogHeight:320px;dialogWidth:300px;help:no;status:no")
str1=document.body.scrollTop;bos.focus();
if(p!=null){
colorstr=p.split("*")
document.selection.createRange().text=colorstr[0]
color1=colorstr[1];color2=colorstr[2];color3=colorstr[3];window.scrollTo(0,str1)
}}
function td19(){      //文件浏览工具
files.click()
str1=document.body.scrollTop;bos.focus();if(document.all("files").value!="")document.selection.createRange().text="file:///" + document.all("files").value.replace(/\\/g,"/");window.scrollTo(0,str1)
}
function td20(){      //加密解密工具
open("editdhtml/editdhtml_jiami.htm","asa","toolbar=0,width=650,height=420,status=1")
}
function td23(){      //源代码工具
ress=prompt('请输入你要盗窃原代码的网站地址?\n系统将根据你的网速在一定时间内给你代码','http://')
if(ress!=''||ress!='http://')location='view-source:'+ress
}
function td21(){      //软件界面设置
p=showModalDialog("editdhtml/editdhtml_jiemian.htm",window,"center:yes;dialogHeight:320px;dialogWidth:300px;help:no;status:no")
if(p!=null){allstr=p.split('*')
bos.style.height=allstr[0]
bos.style.backgroundColor=allstr[1]
bos.style.color=allstr[2]
if(allstr[3]=='true'){bos.style.overflowX='scroll';bos.wrap='off'}else{bos.style.overflowX='hidden';bos.wrap='hard'}
}}
function td22(){      //
alert('软件快捷键:F1=调试预览,F2=打开,ctrl+w=关闭窗口,ctrl+r=刷新窗口\n\n系统快捷键:ctrl+z=撤消,ctrl+x=剪切,ctrl+c=复制,ctrl+v=粘贴,ctrl+f=查找\n\n鼠标技巧键:编辑器连续二击=选定标下单词,编辑器连续三击=选定一行字符\n\n工具啦 在线编程 http://www.Tool.La/')
}
function document.onkeydown(){     //软件快捷键,F1在body的onhelp事件中
switch(event.keyCode){
case 113:td3()
break;
}}
function js1(){
if(event.srcElement.tagName=='IMG'){
event.srcElement.parentElement.bgColor='c0c0c0'
}else{if(event.srcElement.tagName=='TD'&&event.srcElement.width>=30)event.srcElement.bgColor='c0c0c0'}}
function js2(){
if(event.srcElement.tagName=='IMG'){
event.srcElement.parentElement.bgColor='c0c0c0'
}else{if(event.srcElement.tagName=='TD'&&event.srcElement.width>=30)event.srcElement.bgColor='c0c0c0'}}
function js3(){
if(event.srcElement.tagName=='IMG'){
event.srcElement.parentElement.bgColor='white'
}else{if(event.srcElement.tagName=='TD'&&event.srcElement.width>=30)event.srcElement.bgColor='white'}}
function js4(){
if(event.srcElement.tagName=='IMG'){
event.srcElement.parentElement.bgColor='c0c0c0'
}else{if(event.srcElement.tagName=='TD'&&event.srcElement.width>=30)event.srcElement.bgColor='c0c0c0'}}
