﻿<?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:decimal-format name="format1" grouping-separator=" " decimal-separator=","/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
				<script language="javascript">

function ClearStatus()
  {
   window.status=&quot;&quot;;
  }  
  function testcheck(a)
    {
      if(document.getElementById(a).checked) {
         document.getElementById(a).value=&quot;on&quot;;
        }
       else
         {
          document.getElementById(a).value=&quot;&quot;;
        }
   //  alert(document.getElementById(a).value);
   //  alert(document.getElementById(a).checked); 
  }

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_zgloszenie_instalacji.xml&quot;);
}
else
{
window.location.replace(&quot;wniosek_wios_zgloszenie_instalacji_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(!document.getElementById(&quot;id1&quot;).value==&apos;&apos;)
						if(!sprawdzData(document.getElementById(&quot;id1&quot;).id))
							return false;	

					if(!document.getElementById(&quot;id5&quot;).value==&apos;&apos;)
						if(!sprawdzData(document.getElementById(&quot;id5&quot;).id))
							return false;	

					if(!sprawdzPOLEtresc(document.getElementById(&quot;id8&quot;).id))
						pustepola+=1;
					if(!sprawdzPOLEtresc(document.getElementById(&quot;id9&quot;).id))
						pustepola+=1;
					if(!sprawdzPOLEtresc(document.getElementById(&quot;id10&quot;).id))
						pustepola+=1;
					if(!sprawdzPOLEtresc(document.getElementById(&quot;id11&quot;).id))
						pustepola+=1;
					if(!sprawdzPOLEtresc(document.getElementById(&quot;id12&quot;).id))
						pustepola+=1;

						
					if(pustepola)
					{
						alert(&quot;Proszę uzupełnić pola zaznaczone na kolor żółty.&quot;);
						return false;
					}
					return true;
				}
function blokadaEdycja()
				{
					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;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;oddzial&quot;).disabled=true;
					document.getElementById(&quot;id1&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id2&quot;).disabled=true;
					document.getElementById(&quot;id3&quot;).disabled=true;
					document.getElementById(&quot;id4&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id5&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id6&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id7&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id8&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id9&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id10&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id11&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id12&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;id13&quot;).disabled=true;
					document.getElementById(&quot;id14&quot;).disabled=true;
					document.getElementById(&quot;id15&quot;).disabled=true;
					document.getElementById(&quot;id16&quot;).disabled=true;
					document.getElementById(&quot;id17&quot;).disabled=true;
					document.getElementById(&quot;id18&quot;).readOnly=&quot;set&quot;;
					}
				}
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;telefon&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;oddzial&quot;).disabled=false;
					document.getElementById(&quot;id1&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id2&quot;).disabled=false;
					document.getElementById(&quot;id3&quot;).disabled=false;
					document.getElementById(&quot;id4&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id5&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id6&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id7&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id8&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id9&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id10&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id11&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id12&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;id13&quot;).disabled=false;
					document.getElementById(&quot;id14&quot;).disabled=false;
					document.getElementById(&quot;id15&quot;).disabled=false;
					document.getElementById(&quot;id16&quot;).disabled=false;
					document.getElementById(&quot;id17&quot;).disabled=false;
					document.getElementById(&quot;id18&quot;).readOnly=&quot;&quot;;
					}
				}

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>Zgłaszający</xsl:text>
												</span>
												<span style="font-size:medium; ">
													<xsl:text>&#160;&#160;&#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; " 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"/>
											</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="21" 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="21" 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="21"/>
											</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: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; ">
														<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>
										</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; ">
														<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; ">
														<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:wnioskodawcaRegon" 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; ">
														<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; ">
														<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" height="7" 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="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"/>
											</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="21" 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="21" 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; ">
														<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="21"/>
											</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="20" 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="20" 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; ">
														<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="20"/>
											</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/>
								<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="color:navy; font-family:Arial; font-size:medium; font-style:normal; font-variant:normal; font-weight:bold; width:308px; " id="oddzial" name="ns1:wniosekOddzial" 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/>
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:wniosekOddzialAdres">
													<input style="border-bottom-color:transparent; border-bottom-style:none; 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-weight:bold; " id="oddzialAdres" name="ns1:wniosekOddzialAdres" readonly="set"  size="36">
														<xsl:attribute name="value">
															<xsl:value-of select="string(.)"/>
														</xsl:attribute>
													</input>
												</xsl:for-each>
											</xsl:for-each>
												<br/>
											</td>
										</tr>
									</tbody>
								</table>
								<br/>
								<br/>
								<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; text-align:left; " border="1" width="600">
									<tbody style="font-size:medium; ">
										<tr>
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="2" height="13" width="601"/>
										</tr>
										<tr>
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; font-size:small; " align="left" colspan="3" height="632" width="586">
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>&#160;&#160;&#160;&#160; Na podstawie art.76 ust.4 ustawy z 27 kwietnia 2001r.&#160; Prawo&#160; ochrony&#160; środowiska informuje, że:</xsl:text>
												</span>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>1. z dniem&#160; </xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDataOddanie">
														<input style="color:navy; " id="id1" name="ns1:wniosekDataOddanie" onblur="sprawdzData(this.id)" size="12">
															<xsl:attribute name="value"><xsl:value-of select="string(.)"/></xsl:attribute>
														</input>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>&#160; zamierzam oddać do użytkowania nowo&#160;&#160; </xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekRodzajBudowy">
														<select style="color:navy; width:125px; " id="id2" name="ns1:wniosekRodzajBudowy">
															<option value="zbudowany">
																<xsl:if test="string(.)='zbudowany'">
																	<xsl:attribute name="selected">1</xsl:attribute>
																</xsl:if>zbudowany</option>
															<option value="przebudowany">
																<xsl:if test="string(.)='przebudowany'">
																	<xsl:attribute name="selected">1</xsl:attribute>
																</xsl:if>przebudowany</option>
														</select>
													</xsl:for-each>
												</xsl:for-each>
												<br/>
												<span>
													<xsl:text>&#160;</xsl:text>
												</span>
												<span style="font-size:x-small; ">
													<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; ( dd/mm/rrrr )</xsl:text>
												</span>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>&#160;&#160;&#160; </xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekRodzajObiektu">
														<select style="color:navy; width:228px; " id="id3" name="ns1:wniosekRodzajObiektu">
															<option value="obiekt budowlany">
																<xsl:if test="string(.)='obiekt budowlany'">
																	<xsl:attribute name="selected">1</xsl:attribute>
																</xsl:if>obiekt budowlany</option>
															<option value="zespół obiektów">
																<xsl:if test="string(.)='zespół obiektów'">
																	<xsl:attribute name="selected">1</xsl:attribute>
																</xsl:if>zespół obiektów</option>
															<option value="instalację">
																<xsl:if test="string(.)='instalację'">
																	<xsl:attribute name="selected">1</xsl:attribute>
																</xsl:if>instalację</option>
														</select>
														<span>
															<xsl:text>&#160;</xsl:text>
														</span>
														<span style="color:#002780; font-family:Arial; ">
															<xsl:text>**</xsl:text>
														</span>
														<br/>
													</xsl:for-each>
												</xsl:for-each>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekTrescOddanie">
														<br/>
														<span>
															<xsl:text>&#160;&#160;&#160;&#160;&#160; </xsl:text>
														</span>
														<textarea style="color:navy; " cols="68" id="id4" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>2. z dniem </xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDataRozruch">
														<input style="color:navy; " id="id5" onblur="sprawdzData(this.id)" size="12" name="ns1:wniosekDataRozruch">
															<xsl:attribute name="value"><xsl:value-of select="string(.)"/></xsl:attribute>
														</input>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text> zamierzam zakończyć rozruch instalacji </xsl:text>
												</span>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>**</xsl:text>
												</span>
												<br/>
												<span style="font-size:x-small; ">
													<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; ( dd/mm/rrrr )</xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekTrescRozruch">
														<br/>
														<span style="color:navy; font-family:Arial; font-size:small; ">
															<xsl:text>&#160;&#160;&#160; </xsl:text>
														</span>
														<textarea style="color:navy; " cols="68" id="id6" name="ns1:wniosekTrescRozruch" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>&#160;&#160;&#160; Przeprowadzenie rozruchu przewidziane zostało w następującym dokumencie:</xsl:text>
												</span>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDokumentRozruch">
														<br/>
														<span style="color:navy; font-family:Arial; font-size:small; ">
															<xsl:text>&#160;&#160;&#160; </xsl:text>
														</span>
														<textarea style="color:navy; " cols="68" id="id7" name="ns1:wniosekDokumentRozruch" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>Dla realizacji tego przedsięwzięcia sporządzony został raport o odziaływaniu na środowisko i wydane zostały następujące decyzje:</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDecyzje">
														<textarea style="color:navy; " cols="70" id="id8" name="ns1:wniosekDecyzje" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>*</xsl:text>
												</span>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>Obiekt(instalacja) zlokalizowany jest w (dokładny adres)</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekInstalacjaAdres">
														<textarea style="color:navy; " cols="70" id="id9" name="ns1:wniosekInstalacjaAdres" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>*</xsl:text>
												</span>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>W obiekcie (instalacji) prowadzona będzie działalność w zakresie:</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekInstalacjaZakres">
														<textarea style="color:navy; " cols="70" id="id10"  name="ns1:wniosekInstalacjaZakres" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>*</xsl:text>
												</span>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>Obiekt wyposażony jest w następujące urządzenia ochrony środowiska:</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekUrzadzenia">
														<textarea style="color:navy; " cols="70" id="id11" name="ns1:wniosekUrzadzenia" rows="3">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>*</xsl:text>
												</span>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:small; ">
													<xsl:text>W sprawie należy kontaktować się z (imię, nazwisko, nr telefonu osoby upoważnionej przez inwestora) </xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekKontakt">
														<textarea style="color:navy; " cols="70" id="id12" name="ns1:wniosekKontakt">
															<xsl:value-of select="string(.)"/>
														</textarea>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:#002780; font-family:Arial; ">
													<xsl:text>*</xsl:text>
												</span>
												<br/>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text>Do wniosku dołączono:</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDokument1">
														<input style="font-size:x-small; " id="id13" name="ns1:wniosekDokument1" type="checkbox"  value="" onclick="testcheck(this.id)">
															<xsl:choose>
																<xsl:when test="string(.)='true'">
																	<xsl:attribute name="checked">1</xsl:attribute>
																</xsl:when>
																<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>
													</xsl:for-each>
												</xsl:for-each>
												<span>
													<xsl:text>&#160;</xsl:text>
												</span>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text>plan zagospodarowania działki,</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDokument2">
														<input id="id14"  name="ns1:wniosekDokument2" type="checkbox"  value="" onclick="testcheck(this.id)">
															<xsl:choose>
																<xsl:when test="string(.)='true'">
																	<xsl:attribute name="checked">1</xsl:attribute>
																</xsl:when>
																<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>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text> pozwolenia i zezwolenia związane z realizacją inwestycji,</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDokument3">
														<input id="id15" name="ns1:wniosekDokument3" type="checkbox"  value="" onclick="testcheck(this.id)">
															<xsl:choose>
																<xsl:when test="string(.)='true'">
																	<xsl:attribute name="checked">1</xsl:attribute>
																</xsl:when>
																<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>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text> pozwolenia i&#160; zezwolenia ekologiczne dotyczące korzystania ze środowiska, wymagane przepisami szczególnymi,</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDokument4">
														<input id="id16" name="ns1:wniosekDokument4" type="checkbox"  value="" onclick="testcheck(this.id)">
															<xsl:choose>
																<xsl:when test="string(.)='true'">
																	<xsl:attribute name="checked">1</xsl:attribute>
																</xsl:when>
																<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>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text> wyniki pomiarów kontrolnych,</xsl:text>
												</span>
												<br/>
												<xsl:for-each select="ns1:DocumentInfo">
													<xsl:for-each select="ns1:wniosekDokument5">
														<input id="id17" name="ns1:wniosekDokument5" type="checkbox"  value="" onclick="testcheck(this.id)">
															<xsl:choose>
																<xsl:when test="string(.)='true'">
																	<xsl:attribute name="checked">1</xsl:attribute>
																</xsl:when>
																<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>
													</xsl:for-each>
												</xsl:for-each>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text> inne dokumenty   </xsl:text>
												</span>
			                                                           <br />
                                                                                    <span>
                                                                                     <xsl:text>&#160;&#160;&#160;&#160;&#160;&#160; </xsl:text>
                                                                                  </span>
                                                                               <xsl:for-each select="ns1:DocumentInfo">
                                                                                 <xsl:for-each select="ns1:wniosekInneDokumenty">
                                                                                    <textarea id="id18" name="ns1:wniosekInneDokumenty" cols="67">
                                                                                      <xsl:value-of select="string(.)" />
                                                                                   </textarea>
                                                                               </xsl:for-each>
                                                                             </xsl:for-each>
                                                                                        <br />
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text>&#160;</xsl:text>
												</span>
												<span style="font-family:Arial; font-size:small; ">
												<xsl:text>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>
												<br/>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text>* pola wymagane</xsl:text>
												</span>
												<br/>
												<span style="color:navy; font-family:Arial; font-size:smaller; ">
													<xsl:text>** należy wypełnić wszystkie pola w punkcie 1 lub 2 lub w obydwu punktach jednocześnie</xsl:text>
												</span>
												<br/>
											</td>
										</tr>
										<tr>
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="5" width="594"/>
											<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="2" height="5" width="8">
												<br/>
											</td>
										</tr>
									</tbody>
								</table>
								<br/>
								<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_zgloszenie_instalacji.xml" xslLink="http://esp.tbd.rzeszow.pl/form/wios-wroclaw/wniosek_wios_zgloszenie_instalacji.xsl" jid="61" attachment="1">
            </applet>
						</div>
					</center>
				</form>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

