<!--
function check(obj)
{
   if (obj.body.value.length > 1000)
   {
	obj.body.value=obj.body.value.substring(0,1000);
   	chr_cnt();
	str="Слишком длинное сообщение. \nНеобходимое количество символов : не более 1000";
	alert(str);
	return false;
   }
   chr_cnt();
   return true;
}

function chr_cnt()
{
c=window.document.fm.body.value.length;
window.document.fm.count.value=c;
}

function show_childs(num)
{
    var x = document.getElementById("ul"+num);
    if(x)
    {
        if(x.style.display == 'block')
	x.style.display = 'none';
        else
	x.style.display = 'block';
    }
}

function showimg(url)
{
    w = 550;
    h = 350;
    mywin = window.open(url,'view','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width='+ w+ ',height='+h+',top=0,left=0,resizable=yes');
    mywin.focus();
}
//--> 

