// www.chatavratna.sk JavaScript Document
var w;
function otvor( file,okno,w,h ) {
//w+=23; h+=33;
w = window.open(file,okno,'height='+h+',width='+w+',scrollbars=1, menubar=yes, toolbar=no');
if (window.focus) {w.focus()}
//win.document.open();
}

function ViewImage(ifile,ix,iy,ititle) {
var win;
win = window.open("","imageviewer","width="+ix+",height="+iy+", scrollbars=0, menubar=no,toolbar=no");
win.document.open();
win.resizeTo(ix+13,iy+33); //kvoli oknu a liste v nom
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<span style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+" width="+ix+" height="+iy+"></span></body></html>");
win.focus();
//win.document.close();
}

//blikacka
function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}


// End -->


