function fade(obj) {
			obj.filters.alpha.opacity=95;
  			obj.filters.enabled=false;
				}
function unfade(obj) {
			obj.filters.alpha.opacity=50;
			obj.filters.enabled=true;
				}



function flashTOP(arg)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="770" height="208" hspace="0" vspace="0"><param name="movie" value="kczmenu.swf"><param name="quality" value="high"><param name="SCALE" value="noborder"><param name="BGCOLOR" value="#000000"><param name="wmode" value="transparent"><embed src="kczmenu.swf" width="770" height="208" hspace="0" vspace="0" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="noborder" bgcolor="#000000"></embed></object>');
}


function ltr()

{ window.open('<?php $_SERVER[PHP_SELF] ?>','','toolbar=yes,location=yes,directories=yes,menuBar=yes,resizable=yes,scrollbars=yes,width=360,height=375,left=75,top=60'); }

function mySelect(form){
	    form.select();
    }

function ShowOrHide(d1, d2) {
	  if (d1 != '') DoDiv(d1);
	  if (d2 != '') DoDiv(d2);
	}

function DoDiv(id) {
	  var item = null;
	  if (document.getElementById) {
		item = document.getElementById(id);
	  } else if (document.all){
		item = document.all[id];
	  } else if (document.layers){
		item = document.layers[id];
	  }
	  if (!item) {
	  }
	  else if (item.style) {
		if (item.style.display == "none"){ item.style.display = ""; }
		else {item.style.display = "none"; }
	  }else{ item.visibility = "show"; }
 	}

function SkocNa(cil,selObj,restore)
{
	eval(cil+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function jump(page) 
{
                  window.open(page);
}


function MM_openBrWindow(theURL,winName,features) {
                window.open(theURL,winName,features);
}

function imgs(FileName)
{
        var wnd = window.open("", "newWindow", "alwaysraised=yes,dependent=yes,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=auto,status=no,titlebar=yes,width=640,height=480");
        wnd.document.open("text/html", "replace");
        wnd.document.writeln("<HTML>");
        wnd.document.writeln("<HEAD>");
        wnd.document.writeln("<TITLE>KO&#1071;N.CZ</TITLE>");
        wnd.document.writeln("<SCRIPT>");
        wnd.document.writeln("function setSize()");
        wnd.document.writeln("{");
        wnd.document.writeln("var img = window.document.images[0];");
        wnd.document.writeln("window.resizeTo(img.width+10, img.height+30);");
        wnd.document.writeln("}");
        wnd.document.writeln("<\/SCRIPT>");
  

        wnd.document.writeln('<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">');
        wnd.document.writeln('<meta name="resource-type" content="document">');
        wnd.document.writeln("</HEAD>");
        wnd.document.writeln('<BODY bgcolor="#000000" marginheight=7 marginwidth=7 topmargin=0 leftmargin=0 text="#FFFFFF" link="#FFFF00" vlink="#FFFF00" alink="#00FF00" onBlur="window.close()" onLoad="setSize();">');
        wnd.document.writeln('<IMG SRC="'+FileName+'" BORDER=0>');
        wnd.document.writeln("</BODY>");
        wnd.document.writeln("</HTML>");
        wnd.document.close();
        wnd.onBlur = "window.close();";
        wnd.focus();
}

function logimgs(id)
{
   window.open("dl.php?id="+id, "newWindow", "alwaysraised=yes,dependent=yes,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=auto,status=no,titlebar=yes,width=640,height=480");
}

function PopUp(url,w,h,s) {
var dim = eval('"width=' + w + ',height=' + h + 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + s + ',resizable=no,top=0,left=0"');
Npop = window.open(url,"pop",dim);
}
//-->
<!--
/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}
//-->

// rasta dodal

function colorize(obj, color) {
	obj.style.color=color
}

var def_stat = "kcz";

function sbar(txt) {
	window.status = txt;
}

function kontrola(text) {
	if (text=="") {return false;}
	else {return true;}
}

function check() {
var arg = check.arguments;
for (i=0; i<arg.length;i+=2) {
	if (!kontrola(arg[i].value)) {
		alert("Chybné zadání ('"+arg[i+1]+"')");
		arg[i].focus();
		return false;
	}
}
return true;
}

function check_mail(mail) {
if (mail == "" || mail == "tvůj e-mail" || mail=="@" || mail.indexOf("@") < 1 || mail.indexOf(".") < 1) {
	alert("Zadejte prosím korektní e-mail...! ");
	return false;
}
else return true;
}

function lencisla()
{
	with (event)
	{
		if (keyCode<48 || keyCode>57) returnValue = false;
	}
}

/*function ukaz(text, sirka, vyska) {
	window.open('.'+text, '_blank', 'width='+sirka+',height='+vyska+',toolbar=no,statusbar=no,menubar=no,location=no,resizable=no,left=10, top=10');
}*/
