<!--
		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) {
               alert("Nevyplněny následující údaje:\n" + strError);
               return false;
            }
         }
		
		function otevriOkno(obsah,width,height) {
		det=window.open(obsah,'detail','scrollbars=no,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 ) );
		}

//-->
