<!--
var obr1, obr2, obr3, obr4, obr5, obr6, obr7; 
function preload() {
    if(document.images) {
	  obr1=new Image(128,28);
	  obr2=new Image(163,23);
	  obr3=new Image(185,28);
	  obr4=new Image(168,28);
	  obr5=new Image(194,23);
	  obr6=new Image(161,28);
	  obr1.src="images/topmenu1_eno.jpg";
	  obr2.src="images/topmenu2_eno.jpg";
	  obr3.src="images/topmenu3_eno.jpg";
	  obr4.src="images/topmenu4_eno.jpg";
	  obr5.src="images/topmenu5_eno.jpg";
	  obr6.src="images/topmenu6_eno.jpg";
	}
}

function otevriOknoScroll(obsah,width,height) {
	det=window.open(obsah,'detail','scrollbars=yes,resizable=yes,resize=yes,width='+width+',height='+height+',screenX='+getCenterW(width)+',screenY='+getCenterH(height)+',top='+getCenterH(height)+',left='+getCenterW(width));
	det.focus();
}

function otevriOkno(obsah,width,height) {
	det=window.open(obsah,'detail','scrollbars=no,resizable=yes,resize=yes,width='+width+',height='+height+',screenX='+getCenterW(width)+',screenY='+getCenterH(height)+',top='+getCenterH(height)+',left='+getCenterW(width));
	det.focus();
}

function getCenterW(width) {
	return parseInt( eval( (screen.width-parseInt(width))/2 ) );
}

function getCenterH(height) {
	return parseInt( eval( (screen.height-parseInt(height))/2 ) );
}

function over(obj,nazev,ext) {
	var obr="images/"+nazev+"o."+ext;
	obj.src=obr;
	//alert(obj.src);
}

function out(obj,nazev,ext) {
	var obr="images/"+nazev+"."+ext;
	obj.src=obr;
}

function isEmpty(str) {
// Check whether string is empty.
        for (var intLoop = 0; intLoop < str.length; intLoop++)
               if (" " != str.charAt(intLoop))
                  return false;
	return true;
}

function checkRequired(f) {
	var strError = "";
        for (var intLoop = 0; intLoop<f.elements.length; intLoop++)
               if (null!=f.elements[intLoop].getAttribute("required")) 
                  if (isEmpty(f.elements[intLoop].value))
                     strError += "  " + f.elements[intLoop].name + "\n";
        if ("" != strError) {
               if (lang=="en") { 
               		alert("Following fields are mepty:\n" + strError);
               } else {
               		alert("Nevyplněny následující údaje:\n" + strError);               		
               }
               return false;
	}
}
//-->