//Generated By Easy HTML To Any Script Converter
document.writeln("<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"JavaScript\">");
document.writeln("<!--");
document.writeln("// Autorem skryptu jest: SŁAWOMIR KOKŁOWSKI");
document.writeln("// www.kurshtml.boo.pl");
document.writeln("// poprawki: Kermit");
document.writeln("");
document.writeln("function wyswietl(plik, szerokosc, wysokosc, tytul, opis, opis2, cenanetto, cenabrutto)");
document.writeln("{");
document.writeln("// Parametry domyślne:");
document.writeln("var domyslna_szerokosc = 510;");
document.writeln("var domyslna_wysokosc = 420;");
document.writeln("var domyslny_tytul = \"SPILIT\";");
document.writeln("var domyslny_opis = \"\";");
document.writeln("var domyslny_opis2 = \"\";");
document.writeln("var domyslna_cenanetto = \"\";");
document.writeln("var domyslna_cenabrutto = \"\";");
document.writeln("");
document.writeln("// Pozostałe parametry:");
document.writeln("var obramowanie = 0;");
document.writeln("var kolor_obramowania = \"black\";");
document.writeln("var kolor_tla = \"#505557\";");
document.writeln("var kolor_tekstu = \"white\";");
document.writeln("var rozmiar_czcionki = 12;  // [pt]");
document.writeln("var czcionka = \"Courier New, Courier, mono\";");
document.writeln("var wyswietlaj_zamknij = true;");
document.writeln("");
document.writeln("");
document.writeln("  if (!szerokosc && domyslna_szerokosc) var szerokosc = domyslna_szerokosc;");
document.writeln("  if (!wysokosc && domyslna_wysokosc) var wysokosc = domyslna_wysokosc;");
document.writeln("  if (!tytul && domyslny_tytul) var tytul = domyslny_tytul;");
document.writeln("  if (!tytul)");
document.writeln("  {");
document.writeln("    var start = plik.lastIndexOf(\'/\');");
document.writeln("    var stop = plik.lastIndexOf(\'.\');");
document.writeln("    if (stop < start) stop = plik.length;");
document.writeln("    var tytul = plik.substring(start+1, stop);");
document.writeln("  }");
document.writeln("  if (!opis && domyslny_opis) var opis = domyslny_opis;");
document.writeln("  if (!opis2 && domyslny_opis2) var opis2 = domyslny_opis2;");
document.writeln("  if (!cenanetto && domyslna_cenanetto) var cenanetto = domyslna_cenanetto;");
document.writeln("  if (!cenabrutto && domyslna_cenabrutto) var cenabrutto = domyslna_cenabrutto;");
document.writeln("");
document.writeln("  szerokosc = Math.abs(isNaN(parseInt(szerokosc)) ? 0 : parseInt(szerokosc));");
document.writeln("  wysokosc = Math.abs(isNaN(parseInt(wysokosc)) ? 0 : parseInt(wysokosc));");
document.writeln("  obramowanie = Math.abs(isNaN(parseInt(obramowanie)) ? 0 : parseInt(obramowanie));");
document.writeln("  rozmiar_czcionki = Math.abs(isNaN(parseInt(rozmiar_czcionki)) ? 0 : parseInt(rozmiar_czcionki));");
document.writeln("");
document.writeln("  var okno = window.open(\"\", \"\", \"menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=no\" + (szerokosc ? \",width=\" + szerokosc : \"\") + (wysokosc ? \",height=\" + wysokosc : \"\"));");
document.writeln("");
document.writeln("  if (!okno) return true;");
document.writeln("  ");
document.writeln("  okno.document.open();");
document.writeln("");
document.writeln("  okno.document.write(\'<!DOC\'+\'TYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\\n\' +");
document.writeln("    \'<HT\'+\'ML>\\n\' +");
document.writeln("    \'<HE\'+\'AD>\\n\' + ");
document.writeln("    \'<ME\'+\'TA HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html; char\'+\'set=iso-8859-2\">\\n\' +");
document.writeln("    \'<TI\'+\'TLE>\' + tytul + \'<\'+\'/TI\'+\'TLE>\\n\' +");
document.writeln("	\'<style type=\"text/css\">\' +");
document.writeln("	\'<!--\' +");
document.writeln("	\'a {text-decoration:none; color:#ff6600;}\' +");
document.writeln("	\'a:hover {text-decoration:underline;}\' +");
document.writeln("	\'img {border:none;}\' +");
document.writeln("	\'-->\' +");
document.writeln("	\'<\/style>\' +");
document.writeln("	\'<link rel=\"shortcut icon\" href=\"favicon.ico\">\\n\' +");
document.writeln("    \'<\'+\'/HE\'+\'AD>\\n\' +");
document.writeln("    \'<BO\'+\'DY\' + (kolor_tla ? \' BGCOLOR=\"\' + kolor_tla + \'\"\' : \'\') + \' style=\"margin: 0; padding: 0\">\\n\' +");
document.writeln("    \'<TABLE BORDER=\"0\" WIDTH=\"100%\" HEIGHT=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\">\\n\' +");
document.writeln("    \'<TR><TD ALIGN=\"center\" VALIGN=\"middle\"\' + (kolor_tekstu || rozmiar_czcionki || czcionka ? \' style=\"\' + (kolor_tekstu ? \'color: \' + kolor_tekstu + \';\' : \'\') + (rozmiar_czcionki ? \'font-size: \' + rozmiar_czcionki + \'pt;\' : \'\') + (czcionka ? \'font-family: \' + czcionka + \';\' : \'\') + \'\"\' : \'\') + \'>\' +");
document.writeln("    \'<A HREF=\"javascript:window.close()\" title=\"zamknij\"><IMG SRC=\"\' + plik + \'\"\' + (obramowanie ? \' BORDER=\"\' + obramowanie + \'\"\' : \'\') + (obramowanie && kolor_obramowania ? \' style=\"border: solid \' + obramowanie + \'px \' + kolor_obramowania + \'\"\' : \'\') + \'><\'+\'/A>\' +");
document.writeln("    (opis ? \'<BR><BR><b>\' + opis + \'<\/b>\' : \'\') +  (opis2 ? \'<br>\' + opis2 + \'<br>\' : \'\') + (cenanetto ? \'cena: <small>\' + cenanetto + \'<\/small>\' : \'\') + (cenabrutto ? \'<big>/\' + cenabrutto + \'zł<\/big>\' : \'\') +");
document.writeln("    (wyswietlaj_zamknij ? \'<BR><BR><A HREF=\"javascript:window.close()\"><B>zamknij<\'+\'/A>\' : \'\') +");
document.writeln("    \'<\'+\'/TD><\'+\'/TR>\\n\' +");
document.writeln("    \'<\'+\'/TABLE>\\n\' +");
document.writeln("    \'<\'+\'/BO\'+\'DY>\\n\' +");
document.writeln("    \'<\'+\'/HT\'+\'ML>\');");
document.writeln("");
document.writeln("  okno.document.close();");
document.writeln("");
document.writeln("  return false;");
document.writeln("}");
document.writeln("//-->");
document.writeln("<\/SCRIPT>");
