// Funkcija za kreiranje novog prozora
function drugiProzorH(slika,naslov,sirina,visina) {
// function drugiProzor(slika,naslov) {
    // kreiranje sadržaja prozora
    var newContent = '<html><head>';
    newContent += ' <title>ВРАТА - КАПИЈА ДВА СВЕТА</title>';
    newContent += ' <link rel="stylesheet" type="text/css" href="stilJS.css">';
    newContent += ' <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-5">';
    newContent += ' </head>';
    newContent += '<body><h1>';
    newContent += ' <p align="center">';
    newContent += '</h1>';
    newContent += '<img src="';
    newContent += slika;
    newContent += '">';
    newContent += '<BR>';
    newContent += naslov;
    newContent += '<BR><BR>';
    newContent += '<a href="#" onClick="window.close();">[ Затвори прозор ]</a>'
    newContent += '</body></html>';
    
    // newContent += '" width="' + '" height="' + '" border="0">';
    // kreiranje novog prozora i upisivanje sadržaja
    var newWindow;
    // var width = sirina + 150;
    // var height = visina + 120;
    
    var width = 620;
    var height = 540;

    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;
    newWindow = window.open("","sub",windowFeatures);
    newWindow.document.write(newContent);
    newWindow.document.close();
    newWindow.focus();
}


// Funkcija za kreiranje novog prozora VERTIKALNOG
function drugiProzorV(slika,naslov,sirina,visina) {
// function drugiProzor(slika,naslov) {
    // kreiranje sadržaja prozora
    var newContent = '<html><head>';
    newContent += ' <title>ВРАТА - КАПИЈА ДВА СВЕТА</title>';
    newContent += ' <link rel="stylesheet" type="text/css" href="stilJS.css">';
    newContent += ' <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-5">';
    newContent += ' </head>';
    newContent += '<body><h1>';
    newContent += ' <p align="center">';
    newContent += '</h1>';
    newContent += '<img src="';
    newContent += slika;
    newContent += '">';
    newContent += '<BR>';
    newContent += naslov;
    newContent += '<BR><BR>';
    newContent += '<a href="#" onClick="window.close();">[ Затвори прозор ]</a>'
    newContent += '</body></html>';
    
    // newContent += '" width="' + '" height="' + '" border="0">';
    // kreiranje novog prozora i upisivanje sadržaja
    var newWindow;
    // var width = sirina + 150;
    // var height = visina + 120;
    
    var width = 480;
    var height = 620;

    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;
    newWindow = window.open("","sub",windowFeatures);
    newWindow.document.write(newContent);
    newWindow.document.close();
    newWindow.focus();
}
