<!--

picture1=new Image(); picture1.src="menu/picture/01.gif";
picture2=new Image(); picture2.src="menu/picture/02.gif";
picture3=new Image(); picture3.src="menu/picture/03.gif";
picture4=new Image(); picture4.src="menu/picture/04.gif";
picture5=new Image(); picture5.src="menu/picture/05.gif";
picture6=new Image(); picture6.src="menu/picture/06.gif";
picture7=new Image(); picture7.src="menu/picture/07.gif";

function change(name_picture,new_picture)
{
 	document.images[name_picture].src=new_picture;
}


function input_actual()
{
        form_aktual.login.focus();
}

function input_actual_01()
{
        book.Answer.focus();
	document.forms.book.Answer.value=document.forms.book.Answer.value;
}

function input_actual_02()
{
        form_foto.title.focus();
}

function smile(what)
{
	document.forms.book.Answer.focus();
	document.forms.book.Answer.value=document.forms.book.Answer.value+what;
}


function validate(formular)
{

	if (formular.title.value=="")
	{
		alert("Titulek obrázku musí být zadán!");
		formular.title.focus();
		return false;
	}
	else if (formular.file_foto.value=="")
	{
		alert("Cesta k souboru musí být zadána!");
		formular.file_foto.focus();
		return false;
	}
	else
		return true;

}

function validate_01(formular)
{

	if (formular.title.value=="")
	{
		alert("Titulek souboru musí být zadán!");
		formular.title.focus();
		return false;
	}
	else if (formular.send_file.value=="")
	{
		alert("Cesta k souboru musí být zadána!");
		formular.send_file.focus();
		return false;
	}
	else
		return true;

} 


function del_01()
{
	result=window.confirm("!!! Opravdu chcete smazat tento příspěvek?");

	if (result) return true;
	  return false;
}


function del_02()
{
	result=window.confirm("!!! Opravdu chcete smazat tuto fotografii?");

	if (result) return true;
	  return false;
}

//------------------------ skryvani a zobrazovani -------------------------
function portray_hide(what_is)
{
  document.getElementById(what_is).className=(document.getElementById(what_is).className=='hidden_tab')?'':'hidden_tab';
}
function make_switch(id,name)
{
   document.write('<a href="javascript:portray_hide(\''+id+'\')" >'+name+'</a>&nbsp;&nbsp;'); 
}
//------------------------------------------------------------------------

function open_picture(id_foto,width_send,heigh_send)
{

 width_send=eval(width_send);
 heigh_send=eval(heigh_send);

 vertical=((screen.height/2)-(heigh_send/2));
 horizontal=((screen.width/2)-(width_send/2));
 
 if(vertical<10) vertical=10;
 if(horizontal<10) horizontal=10;
 
 picture=window.open("../../../foto_js_show.php?Id="+ id_foto,id_foto,"width="+ width_send +",height="+ heigh_send +",top="+ vertical +",left="+ horizontal +",scrollbars=no");
}

// -->
