function popup_writedoc(href,doc,alt) {
  doc.open();
  doc.write('<?xml version="1.0" encoding="ISO-8859-2" ?>');
  doc.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">');
  doc.write('<html xmlns="http://www.w3.org/1999/xhtml">');
  doc.write('<head><title>'+alt+'</title>');
  doc.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />');
  doc.write('<style type="text/css">body {margin: 0; padding: 0; overflow: hidden; background: #fff; cursor: pointer; font-family: verdana,arial,sans-serif; font-size: 12px; text-align: center; font-weight: bold; color: #000000}');
  doc.write('img {display: none}')
  doc.write('li {float: left; margin: 0; padding: 0 4px}');
  doc.write('li#web {float: right}');
  doc.write('ul {list-style: none; margin: 0; padding: 0; display: block; padding-top: 6px; display: none}</style>');
  doc.write('</head><body onclick="window.close()" onload="obrazek(\'img1\')"><div style="padding-top: 40px; color: #000000">Ładuję...</div>');
  doc.write('<script src="http://www.klubhdk-pck.lublin.pl/js/resize.js"></script><img id="img1" src="'+href+'" alt="'+alt+'" title="Kliknij, aby zamkn±ć okno" /><ul><li id="web">APSEL Przedsiębiorstwo Techniczne</li></ul></body></html>');
  doc.close();
}

function poplink(obj) {
  var alt = obj.getElementsByTagName('img')[0].getAttribute('alt');
  var winopts = "dependent=yes,resizable=no,toolbar=no,scrollbars=yes,width=1,height=1";
  if (win = window.open(obj.href,'_blank',winopts)) {
     popup_writedoc(obj.href,win.document,alt);
     return false;
  }
  return true;
}

function disableButtons(arg) {
if (arg!=1)
window.setTimeout("disableButtons(1)", 0)
else {
for (var i=0; i<document.forms.length; i++) {
var form=document.forms[i]
for (var j=0; j<form.elements.length; j++) {
var type=form.elements[j].type.toLowerCase()
if (type=="submit"||type=="reset"||type=="file")
form.elements[j].disabled=true
}}}}

/*
window.onload = function() {with(document.body.style) {border='1px'; border='0'}}
*/
window.onload = function() {with(document.getElementsByTagName('html')[0].style) {border='1px'; border='0'}}



