function focus() {
for (a=0;a<document.links.length;)
document.links[a].onfocus=document.links[a++].blur;
}

function displayWindow(str1,str2,str3) {
 var winWidth = (screen.width ) / 2-300;
 var winHeight = (screen.height ) / 2-255;
 var i=0;
 if (navigator.appName == "Netscape") 
   i=40;
 
 winprops = 'width=600,height=510,top='+winHeight+',left='+winWidth+',toolbar=0,location=0,directories=0,menubar=0,resizeable=0';
 msg = window.open('','okienko', winprops);
 if (msg.document.images[0])
   msg.close();
 msg = window.open('','okienko', winprops);
 msg.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
 msg.document.write('<html>');
 msg.document.write('<head>');
 if (str2!=null)
   msg.document.write('<title>'+str2+'</title>');
 else
   msg.document.write('<title>Anspol</title>');
 msg.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> ');
 msg.document.write('<link rel="stylesheet" href="okno.css" type="text/css">');
 msg.document.write('</head>');
 msg.document.write('<body bgcolor="#015D5F" text="white">');
 msg.document.write('<p align="center" >');
 msg.document.write('<img src="'+str1+'" style="cursor: hand" border="0" alt="Kliknij, aby zamkn±æ" onclick="window.close()" >');
 msg.document.write('</p>');
 if (str3!=null)
   {
    msg.document.write('<p align="center"><a href="javascript:window.close()">'+str3+'</a></p>');
    i = i-40;    
   };
 msg.document.write('</body>');
 msg.document.write('</html>');
 if (0 & msg.document.images[0])
  {
   winWidth  = msg.document.images[0].width +30;
   winHeight = msg.document.images[0].height+60-i;
   msg.window.resizeTo(winWidth, winHeight);
   msg.window.moveTo((screen.width-winWidth)/2,(screen.height-winHeight)/2);
  };
 msg.focus();
}

