function WinCreate66(fileName, nazwa) 
{
window.open(fileName,nazwa,"width=600,height=600,menubar=no,resizable=no,scrollbars=auto,toolbar=no,directories=no,status=no,channelmode=no");
}

function OpenWin(fileName, nazwa, x, y)
{
argum="width="+x+",height="+y+",menubar=no,resizable=no,scrollbars=no,toolbar=no,directories=no,status=no";
window.open(fileName,nazwa,argum);
} 

function TimeoutBack(czas)
{
window.setTimeout(window.history.back(), czas);
}

function DelayedRedirect(adres, czas)
{
window.setTimeout(window.location.replace(adres), czas);
}

function SelectAllCheckboxes(FormObj)
{
for (var licz=0; licz<FormObj.length; licz++)
	{
	CurObj = FormObj.elements[licz];
	if (CurObj.type == 'checkbox')
		{
		CurObj.checked = true;
		}
	}
return false;
}

function DeselectAllCheckboxes(FormObj)
{
for (var licz=0; licz<FormObj.length; licz++)
	{
	CurObj = FormObj.elements[licz];
	if (CurObj.type == 'checkbox')
		{
		CurObj.checked = false;
		}
	}
return false;
}

function InvertAllCheckboxesSelection(FormObj)
{
for (var licz=0; licz<FormObj.length; licz++)
	{
	CurObj = FormObj.elements[licz];
	if (CurObj.type == 'checkbox')
		{
		CurObj.checked = !(CurObj.checked);
		}
	}
return false;
}
