newWindow = null;
function okno(src, w, h){
 var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var name = minutes + hours + seconds;
var wp = w;
var hp = h;
settings="scrollbars=no,"
if ( w + 30 >= screen.availWidth) {var w = screen.availWidth - 40; var h = h + 16; settings="scrollbars=yes," }
if ( h + 30 >= screen.availHeight) {var h = screen.availHeight - 60; var w = w + 16; settings="scrollbars=yes,"} 

if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}else{
 aw=640;
 ah=450;
}
{
 settings=settings+
 "left=" + (aw-w)/2 + ","
 +"top=" + (ah-h-20)/2 + ","
 +"screenX=" + (aw-w)/2 + ","
 +"screenY=" + (ah-h)/2 + ","
 +"width=" + w + ","
 +"height=" + h + ","
 +"innerWidth=" + w + ","
 +"innerHeight=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=no,"
 +"menubar=no,"
 +"resizable=no"
 newWindow = window.open("", name,settings);
}
newWindow.document.open();
newWindow.document.clear();
newWindow.document.write(
"<html><head>"
+"<title>Lacrima Aurea</title>"
+"</head>"
+"<body bgcolor=#FFD9CC topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><IMG SRC=" + src + " WIDTH=" + wp + " HEIGHT=" + hp +" ALT='Image " + wp +"x" + hp + "'></body>"
+"</html>"
);
newWindow.document.close();
newWindow.focus();
}