/*---------------------------------------------------------
 NAZEV: funkce pro projekt Malawi
 DATUM: 20.5.2002
 AUTOR: Michal Bucek
 VERZE: 1.1
---------------------------------------------------------*/

/*--------------------------------------------------
 vypise rok
--------------------------------------------------*/
 function ShowYear()
   {
   today=new Date();
   document.write(today.getYear());
   }

/*--------------------------------------------------
 vypise datum
--------------------------------------------------*/
 function ShowNumberDate()
   {
   today=new Date();
   with (today)
     {
     day=getDate();
     month=getMonth()+1;
     year=getYear(); 
     }
   document.write("<B>");    
   document.write(day +"."+ month +"."+ year);
   document.write("</B>");  
   }

/*--------------------------------------------------
 otevreni nahledu obrazku
--------------------------------------------------*/
 function OpenWindow(Path,X,Y)
   {
   var WindowName=null;
   if (WindowName!=null && !(WindowName.closed)) {WindowName.close()}
   WindowName=window.open("","obrazek","toolbar=0,location=0,scrollbars=0,width="+X+",height="+Y+",resizable=0,top=10,left=30");
   WindowName.document.open();
   WindowName.document.write('<HTML><HEAD><TITLE>Akvárium Malawi - fotogalerie</TITLE></HEAD>');
   WindowName.document.write('<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><IMG SRC="',Path,'">');
   WindowName.document.write('</BODY></HTML>');
   WindowName.document.close();
   }

/*--------------------------------------------------
 otebreni okna s detailnimi informacemi
--------------------------------------------------*/
 function FishDetail(ID)
   { window.open("detail.asp?ID="+ ID,"","status=yes,toolbar=no,location=no,scrollbars=yes,width=625,height=600,resizable=yes,top=0,left=100"); }

/*--------------------------------------------------
 hlaseni o praci skriptu
--------------------------------------------------*/
 function PleaseWait()
   {
   objWin = self;
   objBody = objWin.document.getElementById("body");
   objBody.innerHTML="<BR><BR><BR><BR><CENTER>prosím čekejte, zpracovávám požadavek ...</CENTER>";
   }

//---------------------------------------------------------