<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function callFormatting(c,b){try{document.getElementById("EditorArea").focus();document.execCommand(c)}catch(a){alert(GetMyStr(2))}}
function RunComm3(arg1,arg2){var a=arg2;if(a=="http://"||a==""){alert(GetMyStr(5))}else{document.execCommand(arg1, false,arg2);}}
function ColWinOpen(){window.open("ColPage.htm","ColP","width=133,height=123,left=200,top=150,resizable=no,scrollbars=no,toolbar=no")}
function ColWinOpen2(){window.open("CommLink.htm","ColP","width=350,height=65,left=200,top=150,resizable=no,scrollbars=no,toolbar=no")}
function ColWinOpen3(){window.open("emotion.htm?v=1","ColP","width=520,height=520,left=200,top=150,resizable=no,scrollbars=no,toolbar=no")}
function runCommand(a){document.execCommand(a,false,";");}
function setFontSize(b,a){document.getElementById("EditorArea").focus();document.execCommand("fontsize",false,b)}
var sInitColor=null;
function changeForeColour(){if(sInitColor==null){var a=document.getElementById("dlgHelper").ChooseColorDlg()}else{var a=document.getElementById("dlgHelper").ChooseColorDlg(sInitColor)}a=a.toString(16);if(a.length&lt;6){var b="000000".substring(0,6-a.length);a=b.concat(a)}document.execCommand("ForeColor",false,a);sInitColor=a}
function RunComm2(arg1,arg2)
{
document.execCommand(arg1, false, arg2);
}

MyEmo = "";

var EOnClick="onclick='InsertEmo(this.src , this.title , this.width , this.height);'";
//&lt;!-- clich--&gt;
function lite(id,id2,id3,id4)
{
if(document.getElementById(id).style.overflow=='hidden')
{
document.getElementById(id2).style.background='none';
document.getElementById(id3).style.background='none';
document.getElementById(id4).style.background='none';
document.getElementById(id2).style.overflow='hidden';
document.getElementById(id3).style.overflow='hidden';
document.getElementById(id4).style.overflow='hidden';
document.getElementById(id).style.overflow='visible'
document.getElementById(id).style.background='#EfEfEf';
}
}
function lite0(id)
{
if(document.getElementById(id).style.overflow=='hidden')
{
document.getElementById(id).style.background='#EfEfEf';
document.getElementById(id).style.overflow='visible'
}
else
{
document.getElementById(id).style.background='none';
document.getElementById(id).style.overflow='hidden'
}
}
function lite1(id)
{
if(document.getElementById(id).style.overflow=='hidden')
{
document.getElementById(id).style.background='none';
}
else
{
document.getElementById(id).style.background='#EfEfEf';
}
}
function lite11(id)
{
document.getElementById(id).style.background='#ABA59A';
}
function fosh(id){document.getElementById(id).focus();}
    //link baraye iee va firfox

    function add_url(id)
    {
                if (document.selection &amp;&amp; document.selection.createRange) {
         str1=id;
         if(str1 != "" &amp;&amp; str1 !="http://")
             {
                     kk  =   document.selection.createRange();
             tt  =   document.selection.createRange().text ;
             str =  "&lt;a href=' " +str1+ " ' target='_blank' &gt;&lt;U&gt;" +   tt + "&lt;/U&gt;&lt;/a&gt;";
             kk.pasteHTML(str);
             }
        else{
              alert("ادرس را وارد کنيد ");
              }
              }
             else if (window.getSelection) {
              str1=id;

         if(str1 != "" &amp;&amp; str1 !="http://")
             {
                     var selection = window.getSelection();
                var range = window.getSelection().getRangeAt(0);
                var repl=document.createTextNode( range);
                var newP = document.createElement('a');
                newP.setAttribute('target','_blank');
                newP.setAttribute('href',str1);
                  range.deleteContents();
                newP.appendChild(repl);
                range.insertNode(newP);
             }
        else{
              alert("ادرس را وارد کنيد  ");
              }
              }
   }
   //end limk


   function add_url_img(id,ida)
    {
                if (document.selection &amp;&amp; document.selection.createRange) {
         str1=id;

         if(str1 != "" &amp;&amp; str1 !="http://"  )
             {
               tt  =   document.selection.createRange().text ;
               if(tt!=''){
                     kk  =   document.selection.createRange();
                       str =  "&lt;img src=' " +str1+ " '  title='"+ida+"' &gt;"+tt;
                        kk.pasteHTML(str);}


             else{ var imgha= document.getElementById('EditorArea').innerHTML;
                    document.getElementById('EditorArea').innerHTML= imgha+'&lt;img src="'+str1+'" &gt;'
              }

             }
        else{
              alert("ادرس را وارد کنيد ");
              }
              }
             else if (window.getSelection) {
              str1=id;
           var ra = window.getSelection().getRangeAt(0);
         if(str1 != "" &amp;&amp; str1 !="http://" )
             {
                     var selection = window.getSelection();
                var range = window.getSelection().getRangeAt(0);

                var repl=document.createTextNode( range);
                var newP = document.createElement('img');
                newP.setAttribute('src',str1);
                newP.setAttribute('title',ida);
                newP.appendChild(repl);
                range.insertNode(newP);
             }
        else{
              alert("ادرس را وارد کنيد  ");
              }
              }
   }</pre></body></html>