function noveOkno(uri) {
	return !window.open(uri, '', 'directories=1,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,toolbar=1,width=620,height=460');
}
function OdstranZKonce(ceho,co)
{
	var pozice=ceho.indexOf(co);
	if (pozice>-1)
	{
		if (pozice>0) if (ceho.charAt(pozice-1)==' ') pozice-=1;
		return ceho.substr(0, pozice);
	}
	else return ceho;
}
function ObarvovaciTextoveElementy()
{
	var elementy=new Array('input','textarea');
	for (var i=0; i<elementy.length; i++)
	{
		var element=document.getElementsByTagName(elementy[i]);
		for (var j=0; j<element.length; j++)
		{
			element[j].onmouseover=function() { this.className+=' OTEover'; };
			element[j].onmouseout=function() { this.className=OdstranZKonce(this.className,'OTEover'); };
			element[j].onfocus=function() { this.className=OdstranZKonce(this.className, 'OTEover'); this.className+=' OTEin'; this.onmouseout=''; this.onmouseover=''; };
			element[j].onclick=function() { this.className=OdstranZKonce(this.className, 'OTEover'); this.className+=' OTEin'; this.onmouseout=''; this.onmouseover=''; };
			element[j].onblur=function() { this.className=OdstranZKonce(this.className, 'OTEin'); this.onmouseout=function() { this.className=OdstranZKonce(this.className, 'OTEover'); }; this.onmouseover=function() { this.className+=' OTEover'; } };
		}
	}
}
