var windowW=300 // wide
var windowH=530 // high
var windowX = 250 // from left
var windowY = 100 // from top
var autoclose = true;
var p, d;
var paski = 0;
o = new Array();
o[1]  = "";
p = new Array();
p[1]  = "../../baner.jpg";
var beIE = document.all?true:false
function openFrameless(windowW,windowH){
  if (beIE){
    s = "width="+windowW+",height= 800";
    NFW = window.open("","popFrameless","fullscreen=0,"+s)     
    NFW.blur()
    window.focus()       
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(screen.width/2-windowW/2,screen.height/2-windowH/2)
    var frameString=""+
         "<html>" +
         "<head><title>Gazeta Gostyńska</title></head>" +
		 "<link href='style.css' rel='stylesheet' type='text/css'>"+
         "<body bgcolor='E55C00' scroll=no>" +
		 "<div  style='position:absolute; left:5; top:5; width:13px; height:10px; z-index:2' class=zwykly><a href='javascript:self.close()'>x</a></div>"+
	     "<div  style='position:absolute; left:0; top:-20; width:100%; height:100%; z-index:1' align='center' valign='bottom'><img src='"+p[1]+"' border='0' onClick=' self.close()'>"+
         "</body></html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
  } 
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
}