
function showicb(did,nd)
 {
  var i = 1;
  for (i= 1; i <= nd; i++)
   {
    document.getElementById("ic"+i).style.display = "none";
    document.getElementById("c"+i).className = 'g';
    document.getElementById("ic"+did).style.right = '360px';
   }
   
  document.getElementById("ic"+did).style.display = 'inline'; 
  document.getElementById("c"+did).className = 'actg';
 
 }

function hideicb(did,nd)
 {
  var i = 1;
  var thisdid = '';
  for (i= 1; i <= nd; i++)
   {
    if (document.getElementById("ic"+i).style.display == 'inline')
      {
       thisdid = i;
      }
   }
  if (thisdid == did)
    {
     document.getElementById("ic"+did).style.display = 'none';
     document.getElementById("c"+did).className = 'g';
     document.getElementById("ic"+did).style.right = '360px';
    } 
 }

function timehideicb(did,nd)
 {
  setTimeout("hideicb("+did+","+nd+");",5000);
 }


function showhideoncmenu(dtype,did,alld,cls)
 {
  var i = 1;
  for (i= 1; i <= alld; i++)
     {
      if ((document.getElementById(dtype+i).style.display == 'inline') && (did != i))
        {
         document.getElementById(dtype+i).style.display = 'none';
         document.getElementById(dtype+"act_"+i).style.backgroundColor = '';
         document.getElementById(dtype+"acta_"+i).className = cls;
        }
     }
  if (document.getElementById(dtype+did).style.display == 'none')
    {
     document.getElementById(dtype+did).style.display = 'inline';
     document.getElementById(dtype+"act_"+did).style.backgroundColor = '#565656';
     document.getElementById(dtype+"acta_"+did).className = 'defcmall';
    }
  else
    {
     document.getElementById(dtype+did).style.display = 'none';
     document.getElementById(dtype+"act_"+did).style.backgroundColor = '';
     document.getElementById(dtype+"acta_"+did).className = cls;
    }
 }
 
function showhideshpc(did)
 {
  if (document.getElementById(did).style.display == 'none')
    document.getElementById(did).style.display = 'inline';
  else
    document.getElementById(did).style.display = 'none';
 } 
 
function showf()
 {
  if (document.getElementById("dateblk").style.display == 'none')
    document.getElementById("dateblk").style.display = 'inline';
  else
    document.getElementById("dateblk").style.display = 'none';
 }
 
function showhidestat(did)
 {
  if (document.getElementById("sip"+did).style.display == 'inline')
    document.getElementById("sip"+did).style.display = 'none';
  else
    document.getElementById("sip"+did).style.display = 'inline';
 }
 
function showhidesendletform()
 {
  var did;
      did = 'sendletform';
  if (document.getElementById(did).style.display == 'none')
    document.getElementById(did).style.display = 'inline';
  else
    document.getElementById(did).style.display = 'none';
 }