﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns1="http://www.tbd.rzeszow.pl/dtd/schemaUPO" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:altova="http://www.altova.com">
	<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
	<xsl:param name="SV_OutputFormat" select="'HTML'"/>
	<xsl:variable name="XML1" select="/"/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
				<script language="javascript">


 function radio1()
    {
      document.getElementById(&apos;idtak&apos;).value=&apos;1&apos;;
      document.getElementById(&apos;idnie&apos;).value=&apos;1&apos;;
      document.getElementById(&apos;idwybor&apos;).value=&apos;1&apos;;
}
 function radio2()
    {
      document.getElementById(&apos;idtak&apos;).value=&apos;2&apos;;
      document.getElementById(&apos;idnie&apos;).value=&apos;2&apos;;
      document.getElementById(&apos;idwybor&apos;).value=&apos;2&apos;;
}

function ClearStatus()
  {
   window.status=&quot;&quot;;
  }
function wpisznazwe()
{
 document.getElementById(&quot;iddiv&quot;).disabled
 son1 = parseInt(document.getElementById(&quot;id1&quot;).value);
 son2 = parseInt(document.getElementById(&quot;id2&quot;).value);


if (document.getElementById(&quot;idtak&quot;).checked)
bad=&quot; - pobór próbek TAK &quot;;
else
bad=&quot;&quot;;

if (son1&gt;0 &amp;&amp; son2&gt;0)
document.getElementById(&quot;idzakres&quot;).value = document.getElementById(&quot;idzakres&quot;).value+document.getElementById(&quot;id1&quot;).options[son1].text+&apos;  &apos;+document.getElementById(&quot;id2&quot;).options[son2].text+&quot;;   &quot;;
else
alert(&quot;Wybierz obiekt i rodzaj badania&quot;);
}

function wypelnijOddzialAdres()
{

switch(document.getElementById(&quot;oddzial&quot;).value) {
case &quot;Wrocław&quot;:document.getElementById(&quot;oddzialAdres&quot;).value=&apos;&apos;;break;
case &quot;Legnica&quot;:document.getElementById(&quot;oddzialAdres&quot;).value=&apos;ul. Rzeczypospolitej 10/12, 59-220 Legnica&apos;;break;
case &quot;Wałbrzych&quot;:document.getElementById(&quot;oddzialAdres&quot;).value=&apos;ul. Mickiewicza 16, 58-300 Wałbrzych&apos;;break;
case &quot;Jelenia Góra&quot;:document.getElementById(&quot;oddzialAdres&quot;).value=&apos;ul. Warszawska 28, 58-500 Jelenia Góra&apos;;break;
}

}
function winreload()
{
alert(&quot;Uwaga wybór formularza spowoduje utratę wprowadzonych danych&quot;);
if (document.getElementById(&quot;rodzaj&quot;).value==&quot;osoba&quot;) 
{
window.location.replace(&quot;wniosek_wios_zlecenie_badan.xml&quot;);
}
else
{
window.location.replace(&quot;wniosek_wios_zlecenie_badan_f.xml&quot;);
}
}
	function sprawdzData(a)
				{
					var PoleData=document.getElementById(a).value;
					
					if(PoleData==&quot;&quot;)
						return false;
					
					regex=/^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$/;

					var DzienN=Number(PoleData.substr(0,2));
					var RokN=Number(PoleData.substr(6,4));
					var MiesiacN=Number(PoleData.substr(3,2));
					
					if (!regex.test(PoleData) || !MiesiacN || !DzienN || !RokN || (PoleData.length!=10) || (RokN&lt;=1900) || (MiesiacN&lt;1) || (MiesiacN&gt;12) || (DzienN&gt;31) || (DzienN&lt;1))
					{
						alert(&quot;Błąd w zapisie daty \nPoprawny zapis: 30/01/2006&quot;);
						document.getElementById(a).style.color=&apos;#ff0000&apos;;
						return false;
					}
					
					document.getElementById(a).style.color=&apos;#000000&apos;;
					return true;
				}

				function sprawdzEMAIL(a)
				{
					var y=document.getElementById(a).value;
					if(y){
						regex=/^[a-zA-Z0-9._\-]+@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9\-]{2,4}$/;
						if(!regex.test(y)){
							alert(&apos;Proszę podać poprawny adres e-mail&apos;);
							document.getElementById(a).style.color=&apos;#ff0000&apos;;
							return false;
						} 
						else
						{
							document.getElementById(a).style.color=&apos;#000000&apos;;
							return true;
						}
					}
				}

	function sprawdzPole(a,nazwa_pola)
				{
					var y=document.getElementById(a).value;
				
					regex=/^([A-Za-zĘÓĄŚŁŻŹĆŃęóąśłżźćń]+\.?( |-)?)+$/;
					if(!regex.test(y))
					{
						alert(&apos; Pole błędnie wypełnione &apos;+nazwa_pola+&apos;.\n Należy je poprawić.&apos;);
						document.getElementById(a).style.color=&apos;#ff0000&apos;;
						return false;
					}
						else
					{
						document.getElementById(a).style.color=&apos;#000000&apos;;
						return true;
					}
				}
			
				function sprawdzKodPocztowy(a)
				{
					var Kod=document.getElementById(a).value;
				
					if(Kod==&quot;&quot;)
						return false;
						
					regex=/^([0-9]{2}-[0-9]{3})$/;
					if(!regex.test(Kod))
					{
						alert(&apos;Proszę podać poprawny kod pocztowy.\n(np. 30-100)&apos;);
						document.getElementById(a).style.color=&apos;#ff0000&apos;;
						return false;
					}
					else
					{
						document.getElementById(a).style.color=&apos;#000000&apos;;
						return true;
					}
				}
				
				function sprawdzPOLEwy(a)
				{
					var y=document.getElementById(a).value;
					
					if(y==&apos;&apos;)
					{
						document.getElementById(a).style.background=&apos;#fefe33&apos;;
						document.getElementById(a).style.color=&apos;#000000&apos;;
						return false;
					} 
					else
					{
						document.getElementById(a).style.background=&quot;#dcf0ff&quot;;
						return true;
					}
				}

				function sprawdzPOLEtresc(a)
				{
					var y=document.getElementById(a).value;
					
					if(y==&apos;&apos;)
					{
						document.getElementById(a).style.background=&apos;#fefe33&apos;;
						document.getElementById(a).style.color=&apos;#000000&apos;;
						return false;
					} 
					else
					{
						document.getElementById(a).style.background=&quot;#ffffff&quot;;
						return true;
					}
				}

				function color(a)
				{
					document.getElementById(a).style.color=&apos;#000000&apos;;
				}

				var browserType;
				if (document.layers) {browserType = &quot;nn4&quot;}
				if (document.all) {browserType = &quot;ie&quot;}
				if (window.navigator.userAgent.toLowerCase().match(&quot;gecko&quot;)) {browserType= &quot;gecko&quot;}
				
				function Sprawdz()
				{
					var pustepola=0;
	
				if (document.getElementById(&quot;rodzaj&quot;).value==&quot;osoba&quot;)
				{
					if(!sprawdzPOLEwy(document.getElementById(&quot;imie&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzPole(document.getElementById(&quot;imie&quot;).id,&apos;imię&apos;))
							return false;
							
					if(!sprawdzPOLEwy(document.getElementById(&quot;nazwisko&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzPole(document.getElementById(&quot;nazwisko&quot;).id,&apos;nazwisko&apos;))
							return false;
					if(!sprawdzPOLEwy(document.getElementById(&quot;pesel&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzPESEL(document.getElementById(&quot;pesel&quot;).id))
							return false;	
				}
				else
				{
					if(!sprawdzPOLEwy(document.getElementById(&quot;nazwa&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzPole(document.getElementById(&quot;nazwa&quot;).id,&apos;nazwa&apos;))
							return false;
					if(!sprawdzPOLEwy(document.getElementById(&quot;nip&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzNIP(document.getElementById(&quot;nip&quot;).id))
							return false;	
					if(!sprawdzPOLEwy(document.getElementById(&quot;regon&quot;).id))
						pustepola+=1;

				}

					if(!sprawdzPOLEwy(document.getElementById(&quot;nrdomu&quot;).id))
						pustepola+=1;
						
					if(!sprawdzPOLEwy(document.getElementById(&quot;kodpocztowy&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzKodPocztowy(document.getElementById(&quot;kodpocztowy&quot;).id))
							return false;
						
					if(!sprawdzPOLEwy(document.getElementById(&quot;miejscowosc&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzPole(document.getElementById(&quot;miejscowosc&quot;).id,&apos;miejscowość&apos;))
							return false;
						
					if(!sprawdzPOLEwy(document.getElementById(&quot;email&quot;).id))
						pustepola+=1;
					else
						if(!sprawdzEMAIL(document.getElementById(&quot;email&quot;).id))
							return false

					if(!sprawdzPOLEwy(document.getElementById(&quot;id0&quot;).id))
						pustepola+=1;
	

					if(!sprawdzPOLEwy(document.getElementById(&quot;idzakres&quot;).id))
						pustepola+=1;


						
					if(pustepola)
					{
						alert(&quot;Proszę uzupełnić pola zaznaczone na kolor żółty.&quot;);
						return false;
					}
				//	alert(&quot;Wszystkie dane zostały wprowadzone poprawnie.&quot;)
				//	blokadaEdycja();

					return true;
				}
function blokadaEdycja()
				{
					var myC=document.getElementById(&quot;miejscowosc&quot;).value;
	                if(document.getElementById(&quot;idwybor&quot;).value==&apos;1&apos;) 
						{
					   document.getElementById(&quot;idtak&quot;).checked=true;
						}
					else  
						{
					   document.getElementById(&quot;idnie&quot;).checked=true;
						}	
					if(myC.substr(0,1)!=&apos;&apos;)
					{ 
					if (document.getElementById(&quot;rodzaj&quot;).value==&quot;osoba&quot;)
					{
					document.getElementById(&quot;imie&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;nazwisko&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;pesel&quot;).readOnly=&quot;set&quot;;
                    }
					else
					{
					document.getElementById(&quot;nazwa&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;nip&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;regon&quot;).readOnly=&quot;set&quot;;
					}
					document.getElementById(&quot;rodzaj&quot;).disabled=true;
					document.getElementById(&quot;ulica&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;nrdomu&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;nrlokalu&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;kodpocztowy&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;poczta&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;miejscowosc&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;email&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;telefon&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;osobakontakt&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id0&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id4&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;idzakres&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;idtak&quot;).disabled=true;
					document.getElementById(&quot;idnie&quot;).disabled=true;
					}
				}
function odblokowanieEdycja()
				{
					var myC=document.getElementById(&quot;miejscowosc&quot;).value;

					if(myC.substr(0,1)!=&apos;&apos;)
					{ 
					if (document.getElementById(&quot;rodzaj&quot;).value==&quot;osoba&quot;)
					{
					document.getElementById(&quot;imie&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;nazwisko&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;pesel&quot;).readOnly=&quot;&quot;;
					}
					else
					{
					document.getElementById(&quot;nazwa&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;nip&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;regon&quot;).disabled=false;
					}
					document.getElementById(&quot;rodzaj&quot;).disabled=false;
					document.getElementById(&quot;ulica&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;nrdomu&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;nrlokalu&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;kodpocztowy&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;poczta&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;miejscowosc&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;email&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;osobakontakt&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;telefon&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id0&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id4&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;idzakres&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;idtak&quot;).disabled=false;
					document.getElementById(&quot;idnie&quot;).disabled=false;
					}
				}

function sprawdzPESEL(x)
				{
					var y=document.getElementById(x).value;
					if(y)
					{
						regex=/^([0-9]{11})$/;
						if(!regex.test(y))
						{
							alert(&apos;Proszę podać poprawny PESEL.\nWymagane podanie 11 cyfr.&apos;);
							document.getElementById(x).style.color=&apos;#ff0000&apos;;
							return false;
						}
						var wagi=&quot;1379137913&quot;;
						var sum=0;
						for (var i = 0; i&lt;10 ;i++)
							sum= sum+parseInt(wagi.charAt(i)) * parseInt(y.charAt(i));

						var kontrola=0;
						kontrola=10-sum%10;
						var wynik;
						if(kontrola==10)
							wynik=0;
						else
							wynik=kontrola;

						if(wynik==parseInt(y.charAt(10)))
						{
							document.getElementById(x).style.color=&apos;#000000&apos;;
							return true;
						}
						else
						{
							alert(&apos;Proszę podać poprawny PESEL.&apos;);
							document.getElementById(x).style.color=&apos;#ff0000&apos;;
							return false;
						}
					}
				}
function sprawdzNIP(x)
				{
					var y=document.getElementById(x).value;
					if(y)
					{
						regex=/^([0-9]{10})$/;
						if(!regex.test(y))
						{
							alert(&apos;Proszę podać poprawny NIP.\nWymagane podanie 10 cyfr.&apos;);
							document.getElementById(x).style.color=&apos;#ff0000&apos;;
							return false;
						}
						var wagi=&quot;657234567&quot;;
						var sum=0;
						for (var i = 0; i&lt;9 ;i++)
							sum= sum+parseInt(wagi.charAt(i)) * parseInt(y.charAt(i));

						var kontrola=0;
						kontrola=sum%11;
						var wynik;
						if(kontrola==10)
							wynik=0;
						else
							wynik=kontrola;

						if(wynik==parseInt(y.charAt(9)))
						{
							document.getElementById(x).style.color=&apos;#000000&apos;;
							return true;
						}
						else
						{
							alert(&apos;Proszę podać poprawny NIP.&apos;);
							document.getElementById(x).style.color=&apos;#ff0000&apos;;
							return false;
						}
					}
				}
           function HideAppletLayer()
            {
            var myC=document.getElementById(&quot;miejscowosc&quot;).value

            if(myC.substr(0,1)!=&apos;&apos;)
          {
          document.getElementById(&apos;AppletLayer&apos;).style.visibility = &quot;hidden&quot;;
          }
          }
          
          function isReadOnly()
          {
          var tmp=document.getElementById(&quot;miejscowosc&quot;).value

          if(tmp.substr(0,1)!=&apos;&apos;)
          {
          return true;
          }
          else
          {
          return false;
          }
          }

				</script>
			</head>
			<body onload="blokadaEdycja()">
				<form method="post" name="mainForm">
				<center style="color:#001280; ">
					<span style="color:#0000c0; font-family:Arial; font-size:small; ">
						<xsl:text>Formularz</xsl:text>
					</span>
					<span style="color:#0000c0; ">
						<xsl:text>&#160; </xsl:text>
					</span>
					<span style="color:#0000c0; font-size:small; ">
						<xsl:text>&#160;</xsl:text>
					</span>
					<xsl:for-each select="$XML1">
						<xsl:for-each select="ns1:Document">
							<span style="color:#0000c0; font-size:small; ">
								<xsl:text>&#160;</xsl:text>
							</span>
							<span style="color:#0000c0; font-family:Arial; font-size:small; ">
								<xsl:text>typ: FR-04-v1.0&#160;&#160;&#160; </xsl:text>
							</span>
							<span style="color:#0000c0; font-family:Arial; ">
								<xsl:text>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </xsl:text>
							</span>
							<span style="color:#0000c0; font-family:Arial; font-size:small; ">
								<xsl:text>kod pisma:&#160; </xsl:text>
							</span>
							<xsl:for-each select="ns1:DocumentInfo">
								<xsl:for-each select="ns1:DocumentCode">
									<span style="color:#0000c0; font-size:smaller; " id="kod">
										<xsl:apply-templates/>
									</span>
								</xsl:for-each>
							</xsl:for-each>
							<span style="color:#0000c0; font-size:small; ">
								<xsl:text>&#160;&#160; </xsl:text>
							</span>
							<hr style="color:#0024c0; " width="600"/>
							<br/>
							<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " border="1" width="600">
								<tbody style="border-bottom-color:inherit; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; ">
									<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="3" height="26" width="601">
											<span style="font-family:Arial; font-size:medium; font-style:normal; text-decoration:underline; ">
												<xsl:text>Zamawiający:</xsl:text>
											</span>
											<span style="font-size:medium; ">
												<xsl:text>&#160; </xsl:text>
											</span>
											<xsl:for-each select="@kind">
												<select style="color:navy; font-size:small; width:147px; " id="rodzaj" onchange="winreload()">
													<option value="osoba">
														<xsl:if test="string(.)='osoba'">
															<xsl:attribute name="selected">1</xsl:attribute>
														</xsl:if>osoba fizyczna</option>
													<option value="firma">
														<xsl:if test="string(.)='firma'">
															<xsl:attribute name="selected">1</xsl:attribute>
														</xsl:if>instytucja lub firma</option>
												</select>
											</xsl:for-each>
										</td>
									</tr>
								</tbody>
							</table>
							<xsl:if test="@kind =&quot;osoba&quot;">
								<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " border="1" width="600">
									<tbody style="border-bottom-color:inherit; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; ">
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="9" width="114">
												<span style="font-family:Arial; font-size:smaller; ">
													<xsl:text>&#160;</xsl:text>
												</span>
												<span style="font-family:Arial; font-size:medium; ">
													<xsl:text>&#160;</xsl:text>
												</span>
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>Imię:&#160; </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="9" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:GivenName">
															<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="imie" maxlength="50" name="ns1:GivenName" onblur="sprawdzPOLEwy(this.id)" size="37">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="right" height="33" rowspan="2"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="8" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Nazwisko: </xsl:text>
												</span>
												<br/>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="8" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Surname">
															<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nazwisko" maxlength="50" name="ns1:Surname" onblur="sprawdzPOLEwy(this.id)" size="37">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="4" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Pesel: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="4" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:IdentyficationNumber">
															<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="pesel" maxlength="11" name="ns1:IdentyficationNumber" onblur="if(sprawdzPOLEwy(this.id))sprawdzPESEL(this.id)" size="16">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="4"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " width="114">
												<span style="font-family:Arial; font-size:medium; ">
													<xsl:text>&#160; </xsl:text>
												</span>
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>Ulica:</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:Street">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="ulica" maxlength="70" name="ns1:Street" size="37">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Nr domu / lokalu:</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:HouseNumber">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nrdomu" maxlength="15" name="ns1:HouseNumber" onblur="sprawdzPOLEwy(this.id)" size="3">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text> /&#160; </xsl:text>
												</span>
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:LocalNumber">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nrlokalu" maxlength="15" name="ns1:LocalNumber" size="2">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<br/>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="7" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Kod / poczta: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="7" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:PostalCode">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="kodpocztowy" maxlength="6" name="ns1:PostalCode" onblur="if(sprawdzPOLEwy(this.id))sprawdzKodPocztowy(this.id)" size="5">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
												<span>
													<xsl:text> / </xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wnioskodawcaPoczta">
														<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="poczta" maxlength="60" name="ns1:wnioskodawcaPoczta" size="24">
															<xsl:attribute name="value">
																<xsl:value-of select="string(.)"/>
															</xsl:attribute>
														</input>
													</xsl:for-each>
												</xsl:for-each>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="7"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="1" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Miejscowość: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="1" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:City">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="miejscowosc" maxlength="60" name="ns1:City" onblur="sprawdzPOLEwy(this.id)" size="37">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="1"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="8" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; e-mail:</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="8" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:PersonalInfo">
														<xsl:for-each select="ns1:Contact">
															<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="email" maxlength="60" name="ns1:Contact" onblur="if(sprawdzPOLEwy(this.id))sprawdzEMAIL(this.id)" size="37">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="8"/>
										</tr>
									</tbody>
								</table>
							</xsl:if>
							<xsl:if test="@kind=&quot;firma&quot;">
								<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " border="1" width="600">
									<tbody style="border-bottom-color:inherit; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; ">
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="9" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Nazwa </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="9" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Name">
															<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nazwa" maxlength="50" name="ns1:Name" onblur="sprawdzPOLEwy(this.id)" size="55">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="right" height="2"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="4" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; NIP: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="4" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:IdentyficationNumber">
															<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nip" maxlength="10" name="ns1:IdentyficationNumber" onblur="if(sprawdzPOLEwy(this.id))sprawdzNIP(this.id)" size="16">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="4"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="4" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Regon: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" width="332">
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wnioskodawcaRegon">
														<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="regon" maxlength="10" name="ns1:regon" size="22">
															<xsl:attribute name="value">
																<xsl:value-of select="string(.)"/>
															</xsl:attribute>
														</input>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Ulica:</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:Street">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="ulica" maxlength="70" name="ns1:Street" size="37">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Nr domu / lokalu:</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:HouseNumber">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nrdomu" maxlength="15" name="ns1:HouseNumber" onblur="sprawdzPOLEwy(this.id)" size="3">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
												<span style="font-family:Arial; ">
													<xsl:text> /&#160; </xsl:text>
												</span>
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:LocalNumber">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="nrlokalu" maxlength="15" name="ns1:LocalNumber" size="2">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<br/>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Kod / poczta: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:PostalCode">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="kodpocztowy" maxlength="6" name="ns1:PostalCode" onblur="if(sprawdzPOLEwy(this.id))sprawdzKodPocztowy(this.id)" size="6">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
												<span>
													<xsl:text> / </xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wnioskodawcaPoczta">
														<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="poczta" maxlength="60" name="ns1:wnioskodawcaPoczta" size="23">
															<xsl:attribute name="value">
																<xsl:value-of select="string(.)"/>
															</xsl:attribute>
														</input>
													</xsl:for-each>
												</xsl:for-each>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="1" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; Miejscowość: </xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="1" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Address">
															<xsl:for-each select="ns1:City">
																<input style="background-color:#dcf0fa; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="miejscowosc" maxlength="60" name="ns1:City" onblur="sprawdzPOLEwy(this.id)" size="37">
																	<xsl:attribute name="value">
																		<xsl:value-of select="string(.)"/>
																	</xsl:attribute>
																</input>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="1"/>
										</tr>
										<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="1" width="114">
												<span style="font-family:Arial; font-size:small; ">
													<xsl:text>&#160; e-mail:</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="1" width="332">
												<xsl:for-each select="ns1:SenderInfo">
													<xsl:for-each select="ns1:OrganizationalInfo">
														<xsl:for-each select="ns1:Contact">
															<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; " id="email" maxlength="60" name="ns1:Contact" onblur="if(sprawdzPOLEwy(this.id))sprawdzEMAIL(this.id)" size="37">
																<xsl:attribute name="value">
																	<xsl:value-of select="string(.)"/>
																</xsl:attribute>
															</input>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; font-size:small; ">
													<xsl:text>*</xsl:text>
												</span>
											</td>
											<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="1"/>
										</tr>
									<tr style="background-attachment:inherit; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="2" width="114">
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>&#160; Osoba do</xsl:text>
												<br/>
												<xsl:text>&#160; kontaktu:</xsl:text>
											</span>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="2" width="417">
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:wnioskodawcaOsobaKontakt">
													<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; " id="osobakontakt" maxlength="60" name="ns1:wnioskodawcaOsobaKontakt" size="37">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</xsl:for-each>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="2"/>
									</tr>										
									</tbody>
								</table>
							</xsl:if>
							<table style="background-attachment:inherit; background-color:inherit; border-bottom-color:inherit; border-bottom-style:none; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; " border="1" width="600">
								<tbody style="background-attachment:inherit; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; ">	
								<tr style="background-attachment:inherit; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="2" width="114">
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>&#160; Telefon:</xsl:text>
											</span>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="2" width="417">
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:wnioskodawcaTelefon">
													<input style="background-color:#dcf0fa; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; " id="telefon" maxlength="60" name="ns1:wnioskodawcaTelefon" size="37">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</xsl:for-each>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="2"/>
									</tr>								
								</tbody>
							</table>
							<br/>
							<br/>
							<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " border="1" width="600">
								<tbody style="border-bottom-color:inherit; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; ">
									<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:large; text-align:left; " height="17" valign="top" width="300">
											<br/>
											<br/>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="2" height="17" width="332">
											<br/>
											<xsl:for-each select="ns1:ReceiverInfo">
												<xsl:for-each select="ns1:OrganizationalInfo">
													<xsl:for-each select="ns1:Name">
														<span style="color:navy; font-family:Arial; font-weight:bold; ">
															<xsl:apply-templates/>
														</span>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
											<br/>
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:wniosekOddzial">
													<select style="border-bottom-color:navy; border-bottom-style:inset; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; color:navy; font-family:Arial; font-size:medium; font-style:normal; font-variant:normal; font-weight:bold; width:308px; " id="oddzial" onchange="wypelnijOddzialAdres()" size="1">
														<option value="Wrocław">
															<xsl:if test="string(.)='Wrocław'">
																<xsl:attribute name="selected">1</xsl:attribute>
															</xsl:if>ul. Paprotna 14, 51-117 Wrocław</option>
														<option value="Legnica">
															<xsl:if test="string(.)='Legnica'">
																<xsl:attribute name="selected">1</xsl:attribute>
															</xsl:if>Delegatura w Legnicy</option>
														<option value="Wałbrzych">
															<xsl:if test="string(.)='Wałbrzych'">
																<xsl:attribute name="selected">1</xsl:attribute>
															</xsl:if>Delegatura w Wałbrzychu</option>
														<option value="Jelenia Góra">
															<xsl:if test="string(.)='Jelenia Góra'">
																<xsl:attribute name="selected">1</xsl:attribute>
															</xsl:if>Delegatura w Jeleniej Górze</option>
													</select>
												</xsl:for-each>
											</xsl:for-each>
											<br/>
											<br/>
										</td>
									</tr>
								</tbody>
							</table>
							<br/>
							<br/>
							<br/>
							<table style="background-attachment:inherit; background-color:inherit; border-bottom-color:inherit; border-bottom-style:none; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; font-family:Arial; font-size:small; " border="1" width="600">
								<tbody style="background-attachment:inherit; border-bottom-color:inherit; border-bottom-style:groove; border-left-color:transparent; border-left-style:none; border-right-style:none; border-top-style:none; font-family:Arial; font-size:medium; ">
									<tr style="background-attachment:inherit; font-family:Arial; font-size:medium; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-family:Arial; font-size:medium; text-align:left; " colspan="3" height="2" valign="top" width="222">
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>Badany obiekt</xsl:text>
											</span>
											<br/>
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:badaniaObiekt">
													<textarea cols="72" id="id0" name="ns1:badaniaObiekt" rows="3">
														<xsl:value-of select="string(.)"/>
													</textarea>
												</xsl:for-each>
											</xsl:for-each>
										</td>
									</tr>
									<tr style="background-attachment:inherit; font-family:Arial; font-size:medium; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-family:Arial; font-size:medium; text-align:left; " height="13" valign="top" width="222">
											<br/>
											<br/>
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>Pobór próbek przez laboratorium</xsl:text>
											</span>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="27" valign="top" width="192">
											<br/>
											<br/>
										<span style="font-family:Arial; font-size:small; ">
												<xsl:text>TAK </xsl:text>
											</span>
											<input id="idtak" name="taknie" onclick="radio1()" type="radio">
												<xsl:choose>
													<xsl:when test="string(.)='1'">
														<xsl:attribute name="checked">1</xsl:attribute>
													</xsl:when>
													<xsl:when test="string(.)='on'">
														<xsl:attribute name="checked">1</xsl:attribute>
													</xsl:when>
												</xsl:choose>
											</input>
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>&#160;&#160;&#160; NIE </xsl:text>
											</span>
											<input style="width:19px; " id="idnie" name="taknie" onclick="radio2()" type="radio">
												<xsl:choose>
													<xsl:when test="string(.)='2'">
														<xsl:attribute name="checked">1</xsl:attribute>
													</xsl:when>
												</xsl:choose>
											</input>
											<span>
												<xsl:text>&#160;</xsl:text>
											</span>
											<br/>
										</td>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="27" valign="top" width="192">
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:badaniaProbki">
													<input style="background-attachment:fixed; background-color:white; background-image:inherit; background-position:inherit; background-repeat:no-repeat; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-color:inherit; border-top-style:none; color:white; visibility:hidden; " id="idwybor" name="ns1:badaniaProbki" readonly="set" size="1">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</xsl:for-each>
										</td>
									</tr>
									<tr style="background-attachment:inherit; font-family:Arial; font-size:medium; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-family:Arial; font-size:medium; text-align:left; " colspan="3" height="13" valign="top" width="222">
											<br/>
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>Zakres badań/Szczegóły zleceń</xsl:text>
											</span>
											<br/>
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:badaniaZakres">
													<textarea cols="72" id="idzakres" rows="10" name="ns1:badaniaZakres">
														<xsl:value-of select="string(.)"/>
													</textarea>
												</xsl:for-each>
											</xsl:for-each>
											<br/>
											<br/>
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>Uwagi</xsl:text>
											</span>
											<br/>
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:badaniaUwagi">
													<textarea cols="72" id="id4" rows="10" name="ns1:badaniaUwagi">
														<xsl:value-of select="string(.)"/>
													</textarea>
												</xsl:for-each>
											</xsl:for-each>
											<br/>
											<br/>
										</td>
									</tr>
								</tbody>
							</table>
							<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " border="1" width="600">
								<tbody style="border-bottom-color:inherit; border-bottom-style:groove; border-left-style:none; border-right-style:none; border-top-style:none; ">
									<tr style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; ">
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="3" height="31" width="674">
											<span style="font-size:medium; ">
												<xsl:text>&#160; </xsl:text>
											</span>
											<br/>
											<span style="font-family:Arial; font-size:small; ">
												<xsl:text>&#160;&#160;&#160;&#160; W celu umożliwienia realizacji niniejszego wniosku wyrażam zgodę na przetwarzanie moich danych osobowych zgodnie z ustawą o ochronie danych osobowych z dnia 29 sierpnia 1997r. (Dz. U. Nr 133, poz. 883, z późn. zm.)</xsl:text>
											</span>
										</td>
									</tr>
								</tbody>
							</table>
							<br/>
						</xsl:for-each>
					</xsl:for-each>
					<br/>
				</center>
					<center>
						<div id="AppletLayer">
							<applet archive="http://esp.tbd.rzeszow.pl/AppletLoader.jar" codebase="." code="appletloader/AppletLoader" width="1" height="1"/>
							<applet name="SmartCardSignerApplet-1.2" archive="http://esp.tbd.rzeszow.pl/SmartCardSignerApplet-1.2.jar" codebase="." code="pl/SmartCardSignerApplet" width="590" height="350" mayscript="" xmlS="wniosek_wios_zlecenie_badan.xml" xslLink="http://esp.tbd.rzeszow.pl/form/wios-wroclaw/wniosek_wios_zlecenie_badan.xsl" jid="61" attachment="1">
            </applet>
						</div>
					</center>
				</form>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

