function insertflash(path,id,wmode,width,height,align,version)
{
text='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+',0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="'+align+'"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+path+'" /><param name="quality" value="high"/><param name="scale" value="default" /><param name="wmode" value="'+wmode+'"/><param name="bgcolor" value="#ffffff" /><embed src="'+path+'" quality="high" scale="float" wmode="'+wmode+'" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+id+'" align="'+align+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.write(text);
}
function test() { 
return false 
} 
function dise()
{
document.ondragstart = test; 
document.onselectstart = test; 
document.ontextmenu = test; 


}
function kursvalut()
{
document.getElementById('kursvalut').innerHTML = "<iframe frameborder=0 scrolling=no width=220 height=65 class=tb src=/kursvalut.php></iframe>";

}
function switchkursvalut()
{
document.getElementById('informer-block').innerHTML = "<iframe frameborder=0 scrolling=no width=100 height=100 src=/kursvalut.html></iframe>";
document.getElementById("swkurs").className = "current";
document.getElementById("swpogoda").className = "";
}
function switchpogoda()
{
document.getElementById('informer-block').innerHTML = "<iframe frameborder=0 scrolling=no width=100 height=100 src=/pogoda.html></iframe>";
document.getElementById("swkurs").className = "";
document.getElementById("swpogoda").className = "current";

}
editcflag=0;
function EditSelfComment(idcom,ed)
{
if(editcflag==0)
{

textelement="t"+idcom;
txa="ta"+idcom;
document.getElementById(textelement).innerHTML="<form onSubmit='ChangeSelfComment(this,"+idcom+",0,"+ed+");return false;'><textarea name=tekst1 id=ta"+idcom+" class=editselfarea>"+document.getElementById(textelement).innerHTML+"</textarea><br><input type=submit class=cos value='Сохранить'> <input class=cos type=button value='Удалить' onClick='ChangeSelfComment(this.form,"+idcom+",1,"+ed+")'></p></form>";

if(ed==1)
{
var oFCKeditor = new FCKeditor( txa ) ;
oFCKeditor.BasePath = "/fckeditor/" ;
oFCKeditor.ToolbarSet="Uhta24";
oFCKeditor.ReplaceTextarea() ;
}
editcflag=1;
}
return false;
}