function rozbal(a,b,c)
{
	if (document.getElementById(a).style.display=='block')
		{ document.getElementById(a).style.display='none'; }
	else
		{
		document.getElementById(a).style.display='block';
		document.getElementById(b).style.display='none';
		document.getElementById(c).style.display='none';
		}
}

function ZmenaZpusobuDopravy(co)
{
	alert("Ahoj... " + document.getElementById(co).selectedIndex);
	//if (document.getElementById("odber").option.value == "1")
	//	{
	//		alert("Nastala zmena");
	//	}
}

function isNumeric(value) {
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
  return true;
}

function funkce(text,stavajici)
{
	x = prompt("Zadej variabilní symbol této poukázky... \n (pro informativní účely a pozdější přehled)",stavajici);
	
	if (x == "")
		{ alert("Variabilní symbol musí být vyplněn!"); funkce(text,x);	}
	else if (x.length > 10)
		{ alert("Variabilní symbol může být dlouhý max. 10 znaků!"); funkce(text,x); }
	else if (!isNumeric(x))
		{ alert("Variabilní symbol musí být číslo!"); funkce(text,x); }
	else
		{ window.location.href='objednavky.php?id=' + text + '&var_symbol=' + x + '&akce=zpracuj'; }
}
