//////////////////////////////////////////////////////////////////////////
// Открывает/закрывает все сообщение
// todo: 1 - expand, 0 - collapse;
//////////////////////////////////////////////////////////////////////////
function expandIt(el)
{
	whichEl = document.getElementById(el);
	whichSub = document.getElementById(el + "Sub");
//	if (whichEl==null) return;
	whichIm = document.getElementById(el + "Img");
//	if (whichIm==null) return;

//	if (whichEl.style.display == "none" || whichEl.style.display=="")
    if (whichSub.style.display == "none")
    {
		whichEl.setAttribute('class','formButton');
		whichSub.style.display = "block";
		whichIm.src = "img/m_arrow_down.gif";
    }
    else
    {
		whichSub.style.display = "none";
		whichIm.src = "img/m_arrow_right.gif";
    }
}
