function openIt() {
  currEl = event.srcElement;
  if (currEl.className == "subhead") {
    newId = currEl.id + "vis" 
     imgId = currEl.id
      showIt = document.all(newId) ;
     if (showIt.style.display == "none") {
       showIt.style.display = "" ;
        document.images(imgId).src = "images/groupo.gif"; 
						TempC=document.cookie;
						if (TempC.indexOf("Group=AG",TempC)==-1)
						{
							TempC1="Group=AG"+showIt.id+"endgr;"+TempC;
							document.cookie=TempC1;
						}
						else
						{
							TempC=document.cookie;
							TempC=TempC.replace("Group=AG",("Group=AG"+showIt.id));
							document.cookie=TempC;
						}
       } else {
       showIt.style.display = "none" ;
        document.images(imgId).src = "images/group.gif"; 
						TempC=document.cookie;
						if (TempC.indexOf("Group=AG",TempC)!=-1)
						{
							TempC=document.cookie;
							TempC=TempC.replace(showIt.id,"");
							document.cookie=TempC;
						}

      }
   }
}

function ZapKol()
{
	TempC=document.cookie;
	tekpozZak=TempC.search('Group=AG');
	if (tekpozZak!=-1)
	{
		TempC=TempC.substring(8,TempC.search('endgr'));
		tekpoz=TempC.search('vis');
		while (tekpoz!=-1)
	{
		TekGr=TempC.substring(0,TempC.search('vis')+3);
	        showIt = document.all(TekGr) ;
       		showIt.style.display = "" ;
	        document.images(TempC.substring(0,TempC.search('vis'))).src = "images/groupo.gif";

		TempC=TempC.substring(TempC.search('vis')+3);
		tekpoz=TempC.search('vis');
	}
}

}