function loadimg (place) {
 $(place).html("<img src=\"/img2/loading.gif\">");
}

function showreplyform(replycode) {
 if (document.getElementById(replycode).style.display=='none') document.getElementById(replycode).style.display = 'block';
  else document.getElementById(replycode).style.display = 'none';
}

function checkAll(oForm, cbName, checked)
{
for (var i=1; i <= 20; i++) oForm[cbName+i].checked = checked;
}

function SubmitControl(tocheack)
{
  if (document.all || document.getElementById)
    {
      for (i=0; i < tocheack.length;i++)
        {
          if(tocheack.elements[i].type.toLowerCase()=='submit'||tocheack.elements[i].type.toLowerCase()=='reset')
          {
            tocheack.elements[i].disabled = true
          }
        }
    }
}

function fconfirm (message) {
if (message)
 if (confirm(message)) return true; else return false; 
else 
 if (confirm("Вы уверены?")) return true; else return false; 
}
