var sirka;
var vyska;

function zmenaRozmeru(id) {
  sirka = screen.Width-200;
  vyska = screen.Height;

//alert(vyska);
//alert(sirka);
 
//  document.all[id].style.width=sirka;
//  document.all[id].style.height=document.all[id].offsetHeight;
}



var curr=1;
var doing=1;

function ShowKal(mesic,rok) 
{window.open("index.php?show=kalendar/index.php&kal=kalendar/"+rok+"_"+mesic+".php","_self")}

function ShowProfFoto(profesor)
{window.document.images.prof_foto.src="profesori/"+profesor+".jpg"}

function Zvetsit()
{
window.open("socrates/zvetsit.php?a=" + curr + ".jpg", "_blank", "width=230, height=355, toolbar=no, status=no, location=no");
}

function Dalsi()
{
if(doing==1)
 {curr++;}
if(doing==2)
 {curr--;}

if((doing==1) && (curr==15))
 {doing=2;
 window.document.all("btn").value="back";}
if((doing==2) && (curr==1))
 {doing=1;
 window.document.all("btn").value="next"; }
 
window.document.images("img_shower").src="socrates/imgs/" + curr + ".jpg"
window.document.all("frame").src="socrates/com/" + curr + ".php"
}

function kontrola(){
if (document.form.email.value=="" || document.form.email.value=="@" || document.form.zprava.value=="" || document.form.zprava.value=="Váš dotaz" ){
alert("Je nutno vyplnit všechny položky!");
return false;
}
else{
return true;
}
}

function ShowFoto(album, fotka, sirka, vyska)
{
window.open("fotos/nahled.php?album=" + album + "&fotka=" + fotka, "_blank", "width=" + sirka + ", height=" + vyska + ", toolbar=no, status=no, location=no");
}

function ShowZmeny(adresa)
{
	sirka = screen.width;
	vyska = screen.height;
	width = 800;
	height = 700;
window.open(adresa, "_blank", "top= " +(vyska-height)/2 + ", left = " + (sirka-width)/2 + ", width=800, height=600, toolbar=no, status=no, location=no, scrollbar=1");
}

function OpenBlank(file)
{
window.open(file, "_blank");
return false;
}