﻿// JScript File


/////////////////////////     CHART         ////////////////////////////////
function addToChart(ItemId,CatId,boolChecked)
{
  //alert(CatId);
    //alert (boolChecked);
    if (boolChecked == true)
    {
	    document.cookie = "Item"+ItemId+"=1";
	    document.cookie = "Cat"+CatId+"=1";
    }
    else
    {
        var d = new Date();
        document.cookie = "Item"+ItemId+"=1;expires=" + d.toGMTString() + ";" + ";";
        document.cookie = "Cat"+CatId+"=1;expires=" + d.toGMTString() + ";" + ";";
    }
      
    //var x = document.cookie;
    //alert(x)  
}

function CheckStatusItemInChart()
{
    //alert ("CheckStatusItemInChart");
    var cookiesList = document.cookie;

    arr = document.getElementsByName("Item");
    if (arr.length > 0)
    {
      //  alert(arr[0].id);
      for (var i = 0; i < arr.length; i++)
      {
        if (cookiesList.match(arr[i].id))
        {
            arr[i].checked = true;
        }
      }
      
    }
}
///////////////////////      END CHART      ////////////////////////////////////////

//////////////////////      Visited Section   /////////////////////////////////////

function AddTovisited(CatId,CatName)
{

    var Visited_start = document.cookie.indexOf("Visited=");
    var Visited = document.cookie;
    
   // alert( Visited + "-" + Visited_start);
      
    Visited = Visited.substring(Visited_start+8,Visited.length);
    arrVisited = Visited.split(";");
    
 //  alert( "arrVisited.length" + arrVisited.length);
    
    if (arrVisited.length > 0)
    {    
        Visited = arrVisited[0]; 
    }
    else
    {
        Visited ="";
    }
    
    // alert( "Visited2 = " + Visited);

    var CookVisited =CatId+"#"+CatName+"^" + Visited;
    document.cookie = "Visited="+CookVisited;
//alert(document.cookie);
     //  document.cookie = "Visited=1;expires=" + d.toGMTString() + ";" + ";";
}
//////////////////////   End   Visited Section   /////////////////////////////////////


///////////////////////  BUTTONS ////////////////////////////////////////////////////

function bookmark() 
{
//   var title = 'lisflowers.co.il';
//   var url = 'http://www.lisflowers.co.il';
//    
//          alert("0");

    if (document.all)
        {
            window.external.AddFavorite('http://www.lisflowers.co.il', 'lisflowers.co.il');
        }
    
    if (window.sidebar) 
        {
            window.sidebar.addPanel('lisflowers.co.il', 'http://www.lisflowers.co.il', "");
        }
        

}

function SetHPage(oHomePage)
{
    //	oHomePage.setHomePage('http://www.lisflowers.co.il');
    document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage(window.location.href);
}



/////////////////////// END BUTTONS /////////////////////////////////////////////////

//////////////////////      Site Section   /////////////////////////////////////
function ReplacePic (BigPic,NewPic)
{
    var BiggerPic = document.getElementById(BigPic);
    BiggerPic.src = NewPic;
}



//////////////////////   End   Site Section   /////////////////////////////////////





//////////////////////      Admin Section   /////////////////////////////////////
 function onloadfunc()
    {
       document.getElementById("ContentPlaceHolder1_btn_Upd").style.visibility = "hidden"
    }
//////////////////////   End   Admin Section   /////////////////////////////////////




//////////////////////      RichText Section   /////////////////////////////////////
var	isHTMLMode=false

function foreColorForSetup(nbr,datalist)
	{
		var	arr	= showModalDialog("ColorPalette.htm","","font-family:Verdana;	font-size:12; dialogWidth:18;	dialogHeight:18" );
		if (arr	!= null) 
		{
	//	    document.getElementById(TxtBox).value  = arr;
	  document.getElementById("ContentPlaceHolder1_DataList"+datalist+"_ctl"+nbr+"_LabelColor").value  = arr;
	  document.getElementById("Colored"+nbr).style.color  = arr;
	//    document.getElementById(Colored).style.color  = arr;
		};	
	} // end foreColor


function openLink(URI)
    {
        //win = window.open(URI,"secWin","width=600,height=600,left=100,scrollbars=yes,resiz able=yes,location=yes");
        win = window.open(URI,"secWin","scrollbars=yes,resiz able=yes,location=yes");
        win.focus;
    }	

function replaceEnter()
{
    var input = document.getElementById("ContentPlaceHolder1_U_Descr").value;
    //alert(input);
    //alert(DescrTxt.search(char(13)));

    var output = "";
    for (var i = 0; i < input.length; i++) 
        {
        if ((input.charCodeAt(i) == 13) && (input.charCodeAt(i + 1) == 10)) 
            {
                i++;
                output += " ";
            } 
        else 
            {
                output += input.charAt(i);
            }
        }
    document.getElementById("ContentPlaceHolder1_U_Descr").value = (output);
}

    function CopyRichInerTextGeneric(Obj)
    {
        Obj.innerText = MsgControl1_NewsBody_rich.document.body.innerHTML
    }


//////////////////////   End   RichText Section   /////////////////////////////////////





function openYoutube()
{
    Url = "video.aspx?id="+document.getElementById("id").value;
    window.open(Url,'BigPic','directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,toolbar=no,width=645px,height=410px');
}
function ChangebuttonPic(obj,PicName)
{
//alert("Pic/Btn/" + PicName);
obj.src = "pic/Btn/" + PicName +".jpg";

}

function openNewUrl(Pic,Title,AltText,id,link)
    {
    var fRunning = 0;
    var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
//	alert(browser);
	
	
	if (browser=="Microsoft Internet Explorer")
	{
	
//			document.images.slideshow.style.filter="blendTrans(duration=12)";
//			document.images.slideshow.style.filter="blendTrans(duration=crossFadeDuration)";
//			document.images.slideshow.filters.blendTrans.Apply();
//			document.images.slideshow.src = img_src;
//			document.images.slideshow.filters.blendTrans.Play();
        if (fRunning == 0)
        {
            fRunning = 1
            window.document.BigPic.filters.blendTrans.Apply();
            window.document.BigPic.src = Pic;
            window.document.BigPic.filters.blendTrans.Play()
        }
			
	}
	else
	{
		//img = document.getElementById('BigPic');//.getElementsByTagName('img');
        //img.xOpacity = 0;
	    //img.style.display = 'block';
	    //img.xOpacity = .99;

    	//setTimeout(so_xfade,3000);
		document.BigPic.src = Pic;
	}
	
    document.getElementById("Title").value = (Title);
    document.getElementById("Descr").value = (AltText);
    document.getElementById("id").value = (id);
    
    if (link == "")
    {
         document.getElementById("Youtube").style.visibility ="hidden";
    }
    else
    {
        document.getElementById("Youtube").style.visibility ="visible";
    }
    
    
		//window.document.BigPic.src = Pic;
	//window.document.BigPic.alt = AltText;

    }

function so_xfade()
{
	cOpacity = imgs[current].xOpacity;
	nIndex = imgs[current+1]?current+1:0;
	nOpacity = imgs[nIndex].xOpacity;

	cOpacity-=.05;
	nOpacity+=.05;

	imgs[nIndex].style.display = 'block';
	imgs[current].xOpacity = cOpacity;
	imgs[nIndex].xOpacity = nOpacity;

	setOpacity(imgs[current]);
	setOpacity(imgs[nIndex]);

	if(cOpacity<=0)
	{
		imgs[current].style.display = 'none';
		current = nIndex;
		setTimeout(so_xfade,3000);
	}
	else
	{
		setTimeout(so_xfade,50);
	}

	function setOpacity(obj)
	{
		if(obj.xOpacity>.99)
		{
			obj.xOpacity = .99;
			return;
		}

		obj.style.opacity = obj.xOpacity;
		obj.style.MozOpacity = obj.xOpacity;
		obj.style.filter = 'alpha(opacity=' + (obj.xOpacity*100) + ')';
	}
}







function openAdminBigPicForUpdate(Pic,Id,Picname,Title,Link,Descr)
    {
  
	window.document.BigPic.src = Pic;
    document.getElementById("ContentPlaceHolder1_U_Id").value = Id;
    document.getElementById("ContentPlaceHolder1_U_PicName").value = Picname;
    document.getElementById("ContentPlaceHolder1_U_Title").value = Title;
    document.getElementById("ContentPlaceHolder1_U_Link").value = Link;
    document.getElementById("ContentPlaceHolder1_U_Descr").value = Descr;
    }

//  function document.onreadystatechange()
//	{
//		 if (document.readyState == 'complete')
//	    { 
//	    parent.resizeFrame();
//		//alert("Completed ARTIC");
//		}
//}

    function querySt(ji)
    {
        hu = window.location.search.substring(1);
        gy = hu.split("&");
        for (i=0;i<gy.length;i++) 
        {
            ft = gy[i].split("=");
            if (ft[0] == ji) 
            {
                return ft[1];
            }
         return "";
        }
    }
    
    
    function resizeFrameByName(obj) 
    {
    var newHeight;
    var F = document.getElementById(obj);
    if(F.contentDocument) 
        {
 //              alert("in: 1" + "        " + newHeight);
 // newHeight = F.contentDocument.documentElement.scrollHeight+30; //FF 3.0.11, Opera 9.63, and Chrome
         newHeight = F.offsetHeight+30; //FF 3.0.11, Opera 9.63, and Chrome
       } 
    else 
        {
        newHeight = F.offsetHeight+30; //IE6, IE7 and Chrome
   //     alert("in: 1" + "        " + newHeight);
        }
        
    if (newHeight <= 900)
        {   
            newHeight = 900;
        }
    F.style.height = newHeight;
        
        return newHeight;
    }

    function resizeFrame() 
    {
        newheight = resizeFrameByName("BodyFrame");
        document.getElementById("SideFrame").height = newheight+"px";
        document.getElementById("DataTable").style.height = newheight+"px";
        document.getElementById("MenuSide").style.height = newheight+"px";
        document.getElementById("Bottom").style.top = (newheight+190)+"px";
    }
    
    function getdays()
    {
        currentDate = new Date();
        DeathDate = new Date(2003,12,24);
        var days = Math.floor((((((currentDate-DeathDate)/1000)/60)/60)/24));
        document.getElementById("Days").innerHTML = "<center><b><font color='white'>"+ days +" ימים בלעדיך </font></b></center>";
    }
    
    function openMenu()
    {

        var parentMenu = querySt("parentMenu");
        if (parentMenu != "")
        {
            $(document.getElementById(parentMenu)).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
            $(document.getElementById(parentMenu)).siblings();
        }
     }
     
     function Nav(URI)
     {
     window.parent.BodyFrame.location.href = URI;
    // document.location.href = "http://asafdahan.com/About.aspx#";
     }

   function resizePic(obj)
    {
//        if (obj.width >  obj.height)
//        {
//            obj.width = 70;
//            obj.height = 70*10/15;
//        }
//        else
//        {
//            obj.width = 70*10/15;
//            obj.height = 70;
//        }
        
            obj.width = 70;
            obj.height = 70*10/15;

    }
    
        function Showborder(obj)
    {
    //alert(obj.height);
     obj.style.backgroundColor = "#FFFFFF";
     obj.style.color ="#671470";
    /* obj.style.border="1";
    obj.style.borderColor ="#000000";
  
        obj.style.border-bottom black thin solid;";
        obj.style="border-left: black thin solid;";
        obj.style="border-top: black thin solid;";
        obj.style=" border-right: black thin solid;";
    */}

    function disBorder(obj)
    {
    obj.style.backgroundColor = "#671470";
     obj.style.color ="#FFFFFF";
   //alert(obj.height);
      /*  obj.style="border-bottom: black thin solid;";
        obj.style="border-left: black thin solid;";
        obj.style="border-top: black thin solid;";
        obj.style=" border-right: black thin solid;";*/
    }
    
    
      function CopyTextToUpdate(strID)
    {
       ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML = document.getElementById("RichText_"+strID).innerHTML; 
       document.getElementById("ContentPlaceHolder1_TextBox1").innerText = strID; 
       document.getElementById("ContentPlaceHolder1_btn_Upd").style.visibility ="visible"

    }    
    
    function onloadRichTextfunc()
    {
       document.getElementById("ContentPlaceHolder1_btn_Upd").style.visibility = "hidden"
    }
    
    function CopyRichInerText()
    {
        document.getElementById("ContentPlaceHolder1_TextBox3").innerText = ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML
    }
    
    function CopySongDataToUpdate(strID)
    {
       document.getElementById("Title").value = document.getElementById("Title_"+strID).innerText; 
       document.getElementById("WrittenBy").value =  document.getElementById("writtenBy_"+strID).innerText;
    }    
    
    function CopyMemorialDataToUpdate(strID)
    {
    
//       if (document.getElementById("Type_"+strID).innerText == 2)
//          {
//          document.getElementById("TBoxType").value = 2;
//          }
//       else
//          {
//          document.getElementById("TBoxType").value = 1;
//          }
//       
       
       
       document.getElementById("ContentPlaceHolder1_TBoxTitle").value = document.getElementById("Title_"+strID).innerText; 
//       document.getElementById("TBoxUN").value = document.getElementById("UploaderName_"+strID).innerText; 
//       document.getElementById("TBoxUD").value = document.getElementById("UploadDate_"+strID).innerText; 

    }    
    
    function CopyRichInerTextMemorials()
    {
       //   document.getElementById("ContentPlaceHolder1_TextBox3").innerText = ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML;
      document.getElementById("ContentPlaceHolder1_HFhead").innerText = (ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerText).substring(0, 250);
    }

function F_onreadystatechange()
	{
		 if (document.readyState == 'complete')
	    { 
		ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.designMode="On";	
		}
	}

 
var type; 
function OpenFormOnClickBtn(filenameStr,wi ,he )
{
window.open(filenameStr,'msgframe','top=50,left=250,width='+wi+',height='+he+',scrollbars=yes');
}
function button_over(eButton)
	{
		eButton.style.backgroundColor =	"LightSlateGray";
		eButton.style.borderColor =	"darkblue darkblue darkblue	darkblue";
	}
function button_out(eButton)
	{
		eButton.style.backgroundColor =	"threedface";
		eButton.style.borderColor =	"threedface";
	}
function button_down(eButton)
	{
		eButton.style.backgroundColor =	"#8494B5";
		eButton.style.borderColor =	"darkblue darkblue darkblue	darkblue";
	}
function button_up(eButton)
	{
		eButton.style.backgroundColor =	"#B5BDD6";
		eButton.style.borderColor =	"darkblue darkblue darkblue	darkblue";
		eButton	= null;	
	}
function cmdExec(cmd,opt) 
	{
		if (isHTMLMode)
		{
			alert("Formatting happens only in Normal mode");
			return;
		}
		ContentPlaceHolder1_MsgControl1_NewsBody_rich.focus();
		ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.execCommand(cmd,"",opt);
		ContentPlaceHolder1_MsgControl1_NewsBody_rich.focus();
	} // end cmdExec

function ChangeImage (ImageName,FileName) {
document[ImageName].src = FileName;
}

var intHCount = 0;
var intNCount = 0;

+
function setMode(Nbut, Hbut) 
	{
		var	sTmp;
		isHTMLMode = Hbut;
		isNormalMode = Nbut;

		if(Hbut == 1)
		{
			intHCount++;
			intNCount = 0;
		}

		if(Nbut == 1)
		{
			intNCount++;
			intHCount = 0;
		}	

		if (isHTMLMode && intHCount == 1)
		{
			sTmp=ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML;ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerText=sTmp;
			ChangeImage ('HTMLbut','../pic/HTML_on.jpg');
			ChangeImage ('Normalbut','../pic/Normal_off.jpg'); return true;
		}
		if(isNormalMode && intNCount == 1)
		{
			sTmp=ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerText;ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML=sTmp;
			ChangeImage ('HTMLbut','../pic/HTML_off.jpg');
			ChangeImage ('Normalbut','../pic/Normal_on.jpg'); return true;
		}
		ContentPlaceHolder1_MsgControl1_NewsBody_rich.focus();
	} // end setMode

//function openLink(URI)
//    {
//        //win = window.open(URI,"secWin","width=600,height=600,left=100,scrollbars=yes,resiz able=yes,location=yes");
//        url = "'" + URI + "'";
//        win = window.open(URI,'_top');
//        win.focus;
//    }	
    
//function doLink()
//    {
//        URI = document.getElementById("ServiceField").value;
//        if (URI == '')
//        {
//            alert("נא הכנס כתובת עמוד אינטרנט");
//        }
//        else
//        {
//         //   url = "javascript:openLink(" + URI + ")";
//            cmdExec("CreateLink",URI); 
//        }
//    }    


function createLink()
    {
        URI = document.getElementById("ServiceField").value;
         if(URI != null)
             {
             kk  =   ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.selection.createRange();  
             tt  =   ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.selection.createRange().text ;      
             url =  "<a href=' " +URI+ " ' target='_blank' >" +   tt + "</a>";
             kk.pasteHTML(url);
             }
        else{
            alert("נא הכנס כתובת עמוד אינטרנט");
              }
   }
   
       
//function add_url()
//	{
//	
//		if (isHTMLMode){alert("Please uncheck 'Edit	HTML'");return;}
//        URI = document.getElementById("ServiceField").value;
//        if (URI == '')
//        {
//            alert("נא הכנס כתובת עמוד אינטרנט");
//        }
//        else
//        {
//            var myname = "x"
//            url = "javascript:openLink("+URI+")"
//		    cmdExec("CreateLink",url);
//	    } 
//	} // end createLink

function OutlookAddr(t)
	{
	
	    var xLeft = 490;
	    var yTop =  document.getElementById(t.id).style.top;
	    
		var	arr	= showModalDialog("../../MessageCenter/General/OutlookAddr.aspx?AddrVal="+document.getElementById(t.id+"Txt").value ,"","font-family:Verdana;	font-size:12; dialogWidth:18;	dialogHeight:18 ; dialogLeft:"+xLeft+" ; dialogTop:"+yTop+"" );
		if (arr != null)
		{
		document.getElementById(t.id+"Txt").value =arr ; 
	}
		if (arr	!= null) {}	
	} 
function OnMessageTypeChange(theSelect)
{
   var theSelectValue = theSelect.options[theSelect.selectedIndex].value
   if (theSelectValue == "0")
   {
   Form1.MessageTypeImg.style.visibility = "Hidden";
   }
   else 
   {
       if (theSelectValue == "1")
       {
       Form1.MessageTypeImg.style.visibility =  "visible";
       Form1.MessageTypeImg.src = "../pic/Warning.jpg"; 
       }
       else
       {
           if (theSelectValue == "2")
            {
                Form1.MessageTypeImg.style.visibility =  "visible";
                Form1.MessageTypeImg.src = "../pic/Warning.jpg";
            }
       }
   }
}	
function foreColor()
	{
		var	arr	= showModalDialog("ColorPalette.htm","","font-family:Verdana;	font-size:12; dialogWidth:18;	dialogHeight:18" );
		if (arr	!= null) cmdExec("ForeColor",arr);	
	} // end foreColor

function setImage()	
{ 
	var	imgSrc = " ";
	var	flag = 0;	
	while(imgSrc ==	" ")
	{
	    //window.open('UploadPic.aspx')
		//imgSrc = prompt('Enter image location with image name ', ''); 
		imgSrc = document.getElementById("ServiceField").value; 
		imgPath = "http://www.lisflowers.co.il/UploadBoxPic/";
	//	imgPath = "http://localhost:49190/Lisflowers.co.il/UploadBoxPic/";
		//alert(imgPath);
		if (imgSrc == "	") alert("Please enter the required	URL");
		if(imgSrc != "")
		{
			cmdExec('insertimage', imgPath+imgSrc);	
		}
	} // end while
} // end setImage
function ShowCM(t,headerText)
	{
	ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.designMode='On';
	if (divContent.style.display=="block")
		{
			divContent.style.display="none";
		}
	else
		{
			divContent.style.display="block";
		}
	type=t;
	spnHeader.innerText=headerText;
	if(document.getElementById(type).value != '')
		{
		ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML=document.getElementById(type).value;
		}
	}
function fillTxt()
		{
		var State = new Object()
		var aa;
		
    var tabscollect= MsgControl1_tbody_links.getElementsByTagName("tr"); 
		for (i=0;i<tabscollect.length;i++)
		{
	
		
         var td  =   tabscollect[i].getElementsByTagName("td"); 
         tabscollect[i].removeChild(td[1]);

           }
		document.getElementById("MsgControl1_hdnmsg").innerText=ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML +"<br>"+ MsgControl1_tdToSend.innerHTML; 
		//document.getElementById("MsgControl1_hdnmsg").innerText=MsgControl1_iframe_links.document.body.innerHTML; 
	
		
		//alert (document.getElementById("MsgControl1_hdnmsg").innerText);
		}
				
function ClearIFrame()
	{
	ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML ='';
	divContent.style.display="none";
	}
function DisableSave(bool)
	{
		document.Form1.btnSaveHead.style.display="none";
		if(bool=='show')
		{	
			if(document.Form1.btnSaveHead.style.display=="none")
			{
				document.Form1.btnSaveHead.style.display="block";
			}
			else
			{
				document.Form1.btnSaveHead.style.display="none";
			}
		}
	}


function InsertMsg()
{
 //alert(ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML);
 
  


       CreateXmlHttp();
     
       if(XmlHttp != null)
       {
          //alert("test");
               
                 
                 
                    var requestUrl = "Default_ajax.aspx?msg_txt="+ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML;
                      
                    XmlHttp.onreadystatechange = function ()
                    {
              alert(XmlHttp.responseText);
          
                        if(XmlHttp.readyState == 4 && XmlHttp.status == 200)
                        {  
                        
                         //  PopulateModel(XmlHttp.responseText, sub_c);
                            
                        }
                           
                    };
                   
                    XmlHttp.open("GET", requestUrl, true);	
     		        XmlHttp.send(null); 
     		     
          
       }
       
    }
 
   
    function CreateXmlHttp()
    {	
    try	
        {		
            XmlHttp = new ActiveXObject("Msxml2.XmlHttp");	
        }	
        catch(e)	
        {		
            try		
            {			
            XmlHttp = new ActiveXObject("Microsoft.XmlHttp");		
            } 		
            catch(oc)		
            {			
            XmlHttp = null;		
            }	
         }
         if(!XmlHttp && typeof XmlHttpRequest != "undefined") 	
         {		
         XmlHttp = new XmlHttpRequest();	
         }
         
    } 
function XXX()
{
    var tabscollect= MsgControl1_tbody_links.getElementsByTagName("tr");
		for (i=0;i<tabscollect.length;i++)
		{


         var td  =   tabscollect[i].getElementsByTagName("td");
         tabscollect[i].removeChild(td[1]);

           }
//		  document.getElementById("MsgControl_hdnmsg").innerText=MsgControl_NewsBody_rich.document.body.innerHTML +"<br>"+ MsgControl_tdToSend.innerHTML;
//		alert(NewsBody_rich.document.body.innerHTML);
//		document.getElementById("hdnmsg").innerText= NewsBody_rich.document.body.innerHTML +"<br>"+ tdToSend.innerHTML;

//document.getElementById("NewsBody_rich").document.designMode="On";
//document.getElementById("NewsBody_rich").document.body.innerHtml ='<P align=center>11332132131<STRONG><U><FONT color=#666699>נמהמנהמנה</FONT></U></STRONG>456465489794564</P>'
ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML =ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML + "<P align=center>11332132131<STRONG><U><FONT color=#666699>נמהמנהמנה</FONT></U></STRONG>456465489794564</P>";
//.document.body.innerHTML = ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML + "<P align=center>11332132131<STRONG><U><FONT color=#666699>נמהמנהמנה</FONT></U></STRONG>456465489794564</P>";
//alert(ContentPlaceHolder1_MsgControl1_NewsBody_rich.document.body.innerHTML);
//alert(document.getElementById("NewsBody_rich").document.body.innerHtml)
}

    
function ChangeText(someText)
{
    document.getElementById("Descr").innerHTML = someText;
}
