// JavaScript Document

function nahled_okno(url, w, h) 
{
   var x = screen.width;
   var y = screen.height - 95;
   if (w >= x) 
   { 
     w = x;
     x = 0;                
   }
   else
   { x = (x - w)/2; }
   if (h >= y)
   {
     h = y;         
     y = 0;
   }     
   else
   { y = (y - h)/2; }        
   return popupWin = window.open(url, '_blank', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h + ',left=' + x + ',top=' + y);
   popupWin.focus();
}  


