function ViewImage(ifile,ix,iy,ititle) {
var win;
var prehliadac;

win = window.open("","imageviewerLA","width="+ix+",height="+iy+",menubar=no,toolbar=no,resizable=no");

prehliadac = navigator.userAgent;

// hodnoty k ix, iy su urcene presne podla browsera

if (prehliadac.indexOf("Opera") != -1) { win.resizeTo(ix+12,iy+51); }
 else if (prehliadac.indexOf("Firefox") != -1) { win.resizeTo(ix+6,iy+32); }
 else if (prehliadac.indexOf("MSIE") != -1) { win.resizeTo(ix+10,iy+36); }
 else { win.resizeTo(ix+10,iy+32); }

 win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<a href='javascript:window.close();'><img src="+ifile+" border='0' title='Zatvorenie okna' alt='Zatvorenie okna'></a></div></body></html>");
win.focus();
win.document.close();
}