
function newrol(nwba,nwid,nwco)
{
	if (nwco==1)
	{
		document.getElementById('op'+nwid).style.backgroundColor='#'+nwba;
		document.getElementById('op'+nwid).style.color='white';
		document.getElementById('or'+nwid).style.backgroundColor='white';
		document.getElementById('or'+nwid).style.color='#00B3DE';
	}
	else
	{	
		document.getElementById('op'+nwid).style.backgroundColor='white';
		document.getElementById('op'+nwid).style.color='#'+nwba;
		document.getElementById('or'+nwid).style.backgroundColor='#00B3DE';
		document.getElementById('or'+nwid).style.color='white';
	}
}





function pozvanka()
	{
		var report = '';
		if(document.form1.jmeno.value=="") report+='jméno\n';
		if(document.form1.datum.value=="") report+='datum\n';
		if(document.form1.misto.value=="") report+='místo\n';
		if(document.form1.casek.value=="") report+='cas\n';
		if(document.form1.textat.value=="") report+='text\n';
		if(document.form1.email.value=="") report+='váš e-mail\n';
		if(document.form1.email2.value=="") report+='e-mail príjemce\n';
		
		koperik='ne';
		var i = 0;
		while (i < document.form1.radf.length)
		{
			if(document.form1.radf[i].checked==true) koperik='ya';
			i++;
		}
		if (koperik=='ne') report+='není vybrán žádný obrázek\n';
	
		if (report=='')	document.form1.submit(); //alert('yes');//
		else alert('Nasledující údaje nebyly správne vyplneny:\n'+report);
	}
	
function menuoff(cislo)
    {
    document.getElementById('m'+cislo).style.borderBottom='none';
  }
  
function menuon(cislo)
    {
    document.getElementById('m'+cislo).style.borderBottom='solid 4px white';
  }
  
  function menuxon(cislo)
    {
    document.getElementById('mx'+cislo).style.visibility='visible';
  }
  
function menuxoff(cislo)
    {
    document.getElementById('mx'+cislo).style.visibility='hidden';
  }
  
function otevriobr(idvo,adrvo)
{
		document.getElementById('ibrim'+idvo).src=adrvo;
		document.getElementById('tbrim'+idvo).style.display='block';
}
    
	function fs(num,typ,sir,vys)
  {
    okno=window.open("fs.php?num="+num+"&typ="+typ+"&sir="+sir+"&vys="+vys, "fs_ram", "location=yes,status=no,width="+(sir+70)+",height="+(vys+90)+",resizable=no")
    okno.focus();
	}
		
function ssss(){
alert(elmxn+'g');
}

