function ZZ(STA,D){
IDV='max-'+STA.id;
R=STA.value;
if(R.length>=D){
NR=R.substring(0,D);
STA.value=NR;
document.getElementById(IDV).className="br";
}
else{
NR=R;
document.getElementById(IDV).className="bz";
}
document.getElementById(IDV).innerHTML=(D-NR.length);
}
function ZT(STA,D){
IDV='max-'+STA.id;
R=STA.value;
if(R.length>=D){
NR=R.substring(0,D);
STA.value=NR;
}
else{
NR=R;
}
}
function NA(N,T){
if(document.getElementById(N).innerHTML=='') {
	document.getElementById(N).innerHTML='<img style="vertical-align:middle" alt="" src="http://hyperinzerce.cz/sys/f_hlp2.gif" height="13" width="13" /> '+T;
}
else {
	document.getElementById(N).innerHTML='';
}
}
sfHover = function() {
if (document.getElementById("fil") != null) {
var sfEls = document.getElementById("fil").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
function SK(URL){
var x=new Image();
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var rs='';
for (var i=0;i<5;i++) {
	var rn=Math.floor(Math.random()*chars.length);
	rs+=chars.substring(rn,rn+1);
}
x.src="http://"+URL+"/xyz/"+rs;
}
function AF(a){document.write(a)}
function NAA(N){
var el = document.getElementById(N);
if ( el.style.display != 'block' ) {
	el.style.display = 'block';
}
else {
	el.style.display = 'none';
}
}
function NAA2(N1,N2,Kod){
document.getElementById(N1).style.display='none';
document.getElementById(N2).style.display='block';
if (Kod) {eval(Kod);}
}
function NAA3(N){
var el = document.getElementById(N);
el.style.display = 'none';
}
function INZDM(N) {
switch(N){
case 1:
document.getElementById('inzdmbv1').style.display='block';
document.getElementById('inzdmbv2').style.display='none';
document.getElementById('inzdmbvz1').className='fl f12 b inzdm inzdm1 w100 c';
document.getElementById('inzdmbvz2').className='fl f12 b bb inzdm inzdm2 w100 c';
break;
case 2:
document.getElementById('inzdmbv1').style.display='none';
document.getElementById('inzdmbv2').style.display='block';
document.getElementById('inzdmbvz1').className='fl f12 b bb inzdm inzdm2 w100 c';
document.getElementById('inzdmbvz2').className='fl f12 b inzdm inzdm1 w100 c';
break;
}
}
function VP(P) {
P.focus();
P.select();
}
var x=VA();			//instance ajaxu
function VA() {		//vytvoreni ajaxu
	var x;
	try{x=new XMLHttpRequest();}
	catch(e) {
		try{x=new ActiveXObject("Microsoft.XMLHttp");}
		catch(e){}
	}
	if (!x) {alert('Nepovedlo se vytvorit objekt XMLHttpRequest!');}
	else {return x;}
}
function ZO() {		//zpracovani odpovedi ajaxu
	if (x.readyState==4) {
		if (x.status==200) {
			//alert(x.responseText);
			eval(x.responseText);
		}
	}
}