// JavaScript Document

<!-- start
function ViewImage(ifile,ix,iy,ititle) { 
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no, resizable=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body style='margin:0px 0px 0px 0px'>");
// win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">'); // iskljucen zato sto ne treba na ovom sajtu ova funkcionalnost, pa je zato upotrebljena linija KODA ispod ove.
win.document.write('<div style="width:100%;height:100%; background-color: black">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}
//  End -->

// primjer KODA koji se stavlja unutar <BODY> taga ako ukljucimo liniju KODA (br.25) koja je trenutno iskljucena:
//<a href="javascript:ViewImage('images/onama/vKanc1.jpg',580,435,'Kancelarija :: slika_1')"><img src="images/onama/mKanc1.jpg" ></a>
