if(navigator.appName=='Netscape'){alert('本站只支持 IE 内核的浏览器！\n且默认“总在新窗口打开”选项要关闭');top.location='http://www.baidu.com/s?cl=3&bar=&tn=1k7com&wd=%BF%EC%B5%E4%CD%F8'} 

ie = (document.all)? true:false 
if (ie){ 
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.f.submit();}} 
} 
function scpy(str){return str.replace(/([\waɑāáǎàoōóǒòeēéěèiīíǐìuūúǔùǖǘǚǜüńňǹɡ]+)/gi,"");}   
function sckg(str){return str.replace(/[ 　]*/gi,"");}   
function schh(str){return str.replace(/[\n\r]*/gi,"");}   
function scfd(str){return str.replace(/([，,；。？！…」”）])/gi,"$1\n\r");} 
function scdl(str){return str.replace(/[\n|\r]+[ |　|\t]*/gi,"\n\n　　").replace("\n\n","");}   
function scgz(str){return str.replace(/([^。？！…」”）\n\r])[\n\r]{2}/gi,"$1");}   
function scbd(str){return str.replace(/,/gi,"，").replace(/\.\r/gi,"。\r").replace(/．/gi,"。").replace(/;/gi,"；").replace(/\"/gi,"＂").replace(/\'/gi,"｀").replace(/!/gi,"！").replace(/\(/gi,"（").replace(/\)/gi,"）").replace(/【/gi,"「").replace(/『/gi,"「").replace(/】/gi,"」").replace(/』/gi,"」");} 



function kddfz(ms){
if (ms==0){document.getElementById("cys").value =document.all.v.innerHTML.replace(/([\r\n]+)/gi,'');}
if (ms==2){document.getElementById("cys").value =document.all.v.innerHTML.replace(/([\r\n]+)/gi,'').replace(/<([\/]?)h3>/ig,"").replace(/<a[^>]+href="([^"]+)"[^>]*>(.*?)<\/a>/ig,"[url=$1]$2[/url]").replace(/<BR>/ig,"\r\n").replace(/→/ig,"→\r\n\r\n");}
copyresult();}


function copyresult(){ var s = document.getElementById("cys").innerHTML.toString();
    if (s.length == 0){
        alert("现在没有转换格式后的文字，请首先转换文字。");
        return;
    }
    var e=document.getElementById("cys");
    e.focus();
    e.select();
    if(document.all){
        var r = e.createTextRange();
        r.execCommand("Copy");
        document.all.jdt.innerHTML+="<li><font color=red>查询结果已经复制到剪贴板，按Ctrl + V 粘贴结果</font></li>";
    }else{
        alert("您的浏览器不支持javascript剪贴板操作，请用Ctrl + C拷贝结果文字");
        return;
    }
}
