function toggleIt(id, img, type)
{
  if(typeof type === 'undefined')
    var type = 'block';
  
  try
  {
    var t = document.getElementById(id);
    
    if(t.style.display === type)
    {
      t.style.display = 'none';
      img.src = 'img/design/match/plus.jpg';
    }
    else
    {
      t.style.display = type;
      img.src = 'img/design/match/minus.jpg';
    }
  }
  catch(e) { }
}