//opens new window with imagefunction otevri_okno(image) {    var win=window.open("","nazev","width=500,height=700,menubar=no,toolbar=no");    win.document.write("<html><body bgcolor='white' >");    win.document.write("<table width='100%' height='100%'><tr><td valign='middle' align='center'><a href='javascript:window.close()'><img src='"+image+"' border='0' alt='Click on the image to close the window' /></a><br/><br/><span style='font-family: Verdana,Arial, Helvetica, sans-serif;font-size: 11px;'>Click on the image to close the window</span></td></tr></table>");    win.document.write("</body></html>");}//opens new window with url variablefunction open_popup(page) {    window_handle = window.open(page,'popupWindowName',"status=1,scrollbars=1,width=400,height=800");    window_handle.focus();    return false;}// opens windows with variable of link and window namefunction popup(mylink, windowname) {if (! window.focus)return true;    var href;    if (typeof(mylink) == 'string')        href=mylink;    else        href=mylink.href;        window.open(href, windowname, 'width=860,height=640,left=500,top=100,scrollbars=yes');    return false;}// possible new open window functions//opens new window with url and window size parametersfunction openwin(url,width,height) {    w = parseInt(width) + 18;    h = parseInt(height) + 18;    windowHandle = window.open(url,'popupWindowName','width='+w+',height='+h);    windowHandle.focus();    return false;} //opens new window with variables for image url, window name, image height and width, image caption, window title//page generated with document.write - page has caption text written below imagefunction myPop(imgURL,wname,img_h,img_v,caption,title) {    img_h_space  = 20;    img_v_space  = 75;    window_h     = parseInt(img_h) + img_h_space;    window_v     = parseInt(img_v) + img_v_space;    var left = (screen.availWidth-window_h)/2;    var top = (screen.availHeight-window_v)/2;    var settings = "height="+window_v+",width="+window_h+",top="+top+        ",left="+left+",scrollbars=no,toolbar=no,"+        "location=no,status=no,menubar=no,resizable=yes,"+        "dependent=no,fullscreen=no";    popup = window.open(imgURL,wname,settings);    if (parseInt(navigator.appVersion) >= 4) popup.window.focus();    popup.document.write("<html>\n"+"\t<head>\n"+"\t\t<title>"+title+"</title>\n"+"\t</head>"+"<body style=\"background-color:#ffff;font-size:10px;font-family:verdana;margin:5px auto;\">\n"+"<img src="+imgURL+" border=0 />"+"<p>"+caption+"</p>\n"+"</body>\n"+"</html>");}
