function focus() {
for (a=0;a<document.links.length;)
document.links[a].onfocus=document.links[a++].blur;
}

function displayWindow(string1,string2) {
 var winWidth = (screen.width ) / 2-300;
 var winHeight = (screen.height ) / 2-255;
 var i=0;
 if (navigator.appName == "Netscape") 
   i=40;
 winHeight = 50;
 winprops = 'width=596,height=446,top='+winHeight+',left='+winWidth+',toolbar=0,location=0,directories=0,menubar=0,resizeable=0';
 picture = window.open('','pro_creation_ecard', winprops);
 if (picture.document.images[0])
   picture.close();
 picture = window.open('','pro_creation_ecard', winprops);
 picture.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">');
 picture.document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">');
 picture.document.write('<head>');
 if (string2!=null)
   picture.document.write('<title>'+string2+'</title>');
 else
   picture.document.write('<title>Aronie</title>');
 picture.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
 picture.document.write('<link rel="stylesheet" href="css/window.css" type="text/css">');
 picture.document.write('</head>');
 picture.document.write('<body style="background-color: #fff">');
 picture.document.write('<img src="'+string1+'" style="cursor: hand" border="0" alt="Kliknij, aby zamkn±æ" onclick="window.close()" >');
 picture.document.write('</body>');
 picture.document.write('</html>');
 if (0 & picture.document.images[0])
  {
   winWidth  = picture.document.images[0].width +30;
   winHeight = picture.document.images[0].height+60-i;
   picture.window.resizeTo(winWidth, winHeight);
   picture.window.moveTo((screen.width-winWidth)/2,(screen.height-winHeight)/2);
  };
 picture.focus();
}


