function opravduobj ()
{
	document.textobj.submit() 
}
function opravduprihl ()
{
if (document.prihl.jmeno.value == "") {
	alert("Zadejte alespoň Vaše jméno.")
	document.prihl.jmeno.focus()
} else {
	document.prihl.submit()
}
}
function opravdu ()
{
if (document.finder.hledany.value == "") {
	alert("Nebyl zadán text, který se má vyhledat.")
	document.finder.hledany.focus()
} else {
	document.finder.submit()
}
}
function opravdu2 ()
{
if (document.finder2.hledany.value == "") {
	alert("Nebyl zadán text, který se má vyhledat.")
	document.finder2.hledany.focus()
} else {
	document.finder2.submit()
}
}
function akth(cislo, predel) {
for (var x = 1; x <= 10; x++) {
	if (x <= cislo) {  
		document["hod"+x].src = "../images/1.gif" ;
		if (x == 10) {
			document["hod"+x].src = "../images/1p.gif" ;
		}
	} else {
		document["hod"+x].src = "../images/0.gif" ;
		if (x == 10) {
			document["hod"+x].src = "../images/0p.gif" ;
		}
	}
}
}
function deakth(cislo, predel) {
for (var x = 1; x <= 10; x++) {
	if (x <= predel) {  
	document["hod"+x].src = "../images/1.gif" ;
	} else {
	document["hod"+x].src = "../images/0.gif" ;
	}
	if (x == 10) {
		if (x <= predel) {  
		document["hod"+x].src = "../images/1p.gif" ;
		} else {
		document["hod"+x].src = "../images/0p.gif" ;
		}
	}
}
}

function switch_visibility(el,parel) {
	if(parel.checked == false) {
		document.getElementById(el).style.display = 'none';
	} else {
		document.getElementById(el).style.display = 'block';
	}
}


function over(ktery) {
if (isNaN(document.forms[ktery].poceto.value) || (document.forms[ktery].poceto.value == "")) {
	alert("Vyplňte prosím počet kusů, které chcete objednat!")
	document.forms[ktery].poceto.focus()
} else {
	document.forms[ktery].submit() 
}

}
function obrwiev(ktery, v, s)
{
v = v + 30
s = s + 20
var obrokno = window.open(ktery, 'full', 'screenY=20, screenX=20, top=50, left=50, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width='+ s + ', height='+ v)
if (typeof(obrokno.document)=="object")
	{
	obrokno.focus()
	}
if (obrokno) return false;
else return true

}
function obrwievclose()
{
if (typeof(obrokno.document)=="object")
	{
	obrokno.close()
	}
}
obrokno = ""

function limg(theURL,winName) { 
window.open(theURL,winName,'scrollbars=yes,resizable=yes,width=480,height=360');
}