// Called by an onClick in each radio button.
function zobraz(ukazat)
   {
    if(ukazat=="text")
      {document.forms.text.style.display = "block";
	  document.forms.banner.style.display = "none";}
	else if(ukazat=="banner")  
	  {document.forms.banner.style.display = "block";
	  document.forms.text.style.display = "none";}
	  
   }

function show_it() {
  var mojediv = document.getElementById("pridat_prispevek");
  
  if(mojediv.style.display == "none") {
    mojediv.style.display = "block";
  } else {
    mojediv.style.display = "none";
  }    
}

function potvrdenie(){
		if (window.confirm("Jste si jistý, že chcete smazat příspěvek? Všechna data budou nenávratně stracena!")){
		   return true
		} else {
			 window.alert("Akce byla zrušena.")
		return false
		}
}

function potvrdenie1(){
		if (window.confirm("Jste si jistý, že chcete smazat soubor? Všechna data budou nenávratně stracena!")){
		   return true
		} else {
			 window.alert("Akce byla zrušena.")
		return false
		}
}
		
function potvrdenie2(URL){
	  if (window.confirm("Jste si jistý, že chcete smazat soubor? Všechna data budou nenávratně stracena!")){
			 window.location=URL;}
}

function popUp(URL) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=280,height=350,left = 40,top = 160');");
}
		    
function potvrdenie3(){
		if (window.confirm("Jste si jistý, že chcete smazat složku? Všechna data budou nenávratně stracena!")){
			 return true
		} else {
			 window.alert("Akce byla zrušena.")
		return false
    }		
}
									

