//otevreni noveho okna
function fShowNewWindow(strURL, strName, bReplace, nWidth, nHeight, nLeft, nTop, nResizable, nScrollbars)
{
	strFeatures = 'channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,status=0,titlebar=1,toolbar=0';
	if (nWidth!=null) strFeatures += ',width=' + nWidth;
	if (nHeight!=null) strFeatures += ',height=' + nHeight;
	if (nLeft!=null) strFeatures += ',left=' + nLeft;
	if (nTop!=null) strFeatures += ',top=' + nTop;
	if (nResizable!=null) strFeatures += ',resizable=' + nResizable;
	if (nScrollbars!=null) strFeatures += ',scrollbars=' + nScrollbars;
// height = number Specifies the height of the window, in pixels. The minimum value is 100. 
// left = number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen. The value must be greater than or equal to 0.  
// resizable = { yes | no | 1 | 0 } Specifies whether to display resize handles at the corners of the window. The default is yes. 
// scrollbars = { yes | no | 1 | 0 } Specifies whether to display horizontal and vertical scroll bars. The default is yes. 
// top = number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. The value must be greater than or equal to 0.  
// width = number 

	var nReturn = window.open(strURL, strName, strFeatures, bReplace);
	return nReturn;
}

//zvyraznovani radku v resultlistu metodou mouseover
function ofm(el, col)
{
	el.style.backgroundColor = col;
}

function onm(el)
{
	el.style.backgroundColor = "#BFCCE8";//pro epi2 je nutne dat #F1E7CC
}

//skryje nebo zobrazí pole elementu
function fSetElementsVisible(strElements, bVisible)
{
	for(var i=0;i<strElements.length;i++)
	{
		fSetVisible(strElements[i], bVisible);
	}
}

//skryje nebo zobrazí element
function fSetVisible(strElement, bVisible)
{
	var objElement = document.getElementById(strElement);
	if (objElement != null)
	{
		if (bVisible == null)
			bVisible = (objElement.style.display == 'none') ? true : false;
		if (bVisible) {
			objElement.style.visibility = 'visible';
			objElement.style.display = '';
		}
		else {
			objElement.style.visibility = 'hidden';
			objElement.style.display = 'none';
		}
	}
}