function PassCheck(obj)
{

if (obj.action.value!=4)
	{
	if (obj.heslo.value!=obj.heslo2.value) 
		{
		alert('Nesouhlasí potvrzení hesla\nProsím opravte')
		obj.heslo.focus()
		return false
		}

else return true;
}
}

function ShowAkt(cesta,nazev)
{
var mywindow = window.open('','','toolbar=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,copyhistory=0')

mywindow.document.write("<TITLE>"+nazev+"</TITLE>");
mywindow.location.href=cesta;
}

function setfocus(obj)
{
obj.focus();
} 

function changecomments(id,showall)
{
var i;
var pole=document.getElementsByTagName('td');
var jmeno;

var newid;

if (showall==true) document.getElementById("showall").style.display="none"; 
else document.getElementById("showall").style.display="block";

for (i=0;i<pole.length;i++)
    {
    if (pole[i].id.substring(0,5)=="pcomm") 
    { 
    jmeno=pole[i].id;
    jmeno=jmeno.split("_");
    newid=id.split("_");
    if (jmeno[0]!=newid[0] && showall==false) pole[i].style.display="none";
    if (showall==true) pole[i].style.display="block";
    }
    }
}

