<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.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">
	<xsl:output version="1.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 ClearStatus()

    {

   window.status=&quot;&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;#fefe76&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;#fefe76&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(!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;	
						
					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(!sprawdzPOLEtresc(document.getElementById(&quot;tresc&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;imie&quot;).value

					if(myC.substr(0,1)!=&apos;&apos;)
					{ 
					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;;
					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;miejscowosc&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;email&quot;).readOnly=&quot;set&quot;;
					document.getElementById(&quot;tresc&quot;).readOnly=&quot;set&quot;;
					}
				}
function odblokowanieEdycja()
				{
					var myC=document.getElementById(&quot;imie&quot;).value

					if(myC.substr(0,1)!=&apos;&apos;)
					{ 
					document.getElementById(&quot;imie&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;nazwisko&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;pesel&quot;).readOnly=&quot;&quot;;
					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;miejscowosc&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;email&quot;).readOnly=&quot;&quot;;
					document.getElementById(&quot;tresc&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 HideAppletLayer()
            {
            var myC=document.getElementById(&quot;imie&quot;).value

            if(myC.substr(0,1)!=&apos;&apos;)
          {
          document.getElementById('AppletLayer').style.visibility = "hidden";
          }
          }
          
          function isReadOnly()
          {
          var tmp=document.getElementById(&quot;imie&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>
					<span style="color:#0000c0; ">
						<xsl:text>Formularz ogólny&#160; dla osób fizycznych </xsl:text>
					</span>
					<span style="color:#0000c0; font-size:small; ">
						<xsl:text>&#160;&#160;&#160; typ: FR-01-v1.0&#160;&#160;&#160; </xsl:text>
					</span>
					<span style="color:#0000c0; ">
						<xsl:text>&#160;&#160; </xsl:text>
					</span>
					<span style="color:#0000c0; font-size:small; ">
						<xsl:text>kod pisma:&#160; </xsl:text>
					</span>
					<xsl:for-each select="$XML1">
						<xsl:for-each select="ns1:Document">
							<xsl:for-each select="ns1:DocumentInfo">
								<xsl:for-each select="ns1:DocumentCode">
									<span style="color:#0000c0; font-size:small; ">
										<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"/>
							<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="18" valign="top" width="114">
											<span style="color:navy; font-size:medium; text-decoration:underline; ">
												<xsl:text>ODBIORCA</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="18" width="332">
											<br/>
											<xsl:for-each select="ns1:ReceiverInfo">
												<xsl:for-each select="ns1:OrganizationalInfo">
													<xsl:for-each select="ns1:Name">
														<span style="color:black; ">
															<xsl:apply-templates/>
														</span>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
											<br/>
											<xsl:for-each select="ns1:ReceiverInfo">
												<xsl:for-each select="ns1:OrganizationalInfo">
													<xsl:for-each select="ns1:Address">
														<xsl:for-each select="ns1:PostalCode">
															<span style="color:black; ">
																<xsl:apply-templates/>
															</span>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
											<span style="color:black; ">
												<xsl:text>&#160;</xsl:text>
											</span>
											<xsl:for-each select="ns1:ReceiverInfo">
												<xsl:for-each select="ns1:OrganizationalInfo">
													<xsl:for-each select="ns1:Address">
														<xsl:for-each select="ns1:City">
															<span style="color:black; ">
																<xsl:apply-templates/>
															</span>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
											<br/>
											<span style="color:black; ">
												<xsl:text> ul. </xsl:text>
											</span>
											<xsl:for-each select="ns1:ReceiverInfo">
												<xsl:for-each select="ns1:OrganizationalInfo">
													<xsl:for-each select="ns1:Address">
														<xsl:for-each select="ns1:Street">
															<span style="color:black; ">
																<xsl:apply-templates/>
															</span>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
                      <span style="color:black; ">
                        <xsl:text> </xsl:text>
                      </span>
											<xsl:for-each select="ns1:ReceiverInfo">
												<xsl:for-each select="ns1:OrganizationalInfo">
													<xsl:for-each select="ns1:Address">
														<xsl:for-each select="ns1:HouseNumber">
															<span style="color:black; ">
																<xsl:apply-templates/>
															</span>
														</xsl:for-each>
													</xsl:for-each>
												</xsl:for-each>
											</xsl:for-each>
											<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="right" height="13"/>
									</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="44" width="114">
											<span style="color:navy; font-size:medium; font-style:normal; text-decoration:underline; ">
												<xsl:text>NADAWCA </xsl:text>
											</span>
											<br/>
											<br/>
											<span style="font-size:medium; font-style:normal; text-decoration:underline; ">
												<xsl:text> Dane osobowe</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="44" width="332"/>
										<td style="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="right" height="44" rowspan="3"/>
									</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="9" width="114">
											<span style="font-size:medium; ">
												<xsl:text>&#160; 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; " 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; ">
												<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="8" width="114">
											<span style="font-size:medium; ">
												<xsl:text>&#160; Nazwisko:</xsl:text>
											</span>
											<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="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; " 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; ">
												<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-size:medium; ">
												<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; " 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; ">
												<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" 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="18" width="114">
											<span style="font-size:medium; text-decoration:underline; ">
												<xsl:text>Dane kontaktowe</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="18" width="332"/>
									</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-size:medium; ">
												<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: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; " 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-size:medium; ">
												<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; " 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; ">
												<xsl:text>*</xsl:text>
											</span>
											<span>
												<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; " 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-size:medium; ">
												<xsl:text>&#160; Kod pocztowy: </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: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; " id="kodpocztowy" maxlength="6" name="ns1:PostalCode" onblur="if(sprawdzPOLEwy(this.id))sprawdzKodPocztowy(this.id)" size="7">
																<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; ">
												<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-size:medium; ">
												<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" 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; " 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; ">
												<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; " height="1" width="114">
											<span style="font-size:medium; ">
												<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; " 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="1"/>
									</tr>
								</tbody>
							</table>
							<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="background-attachment:inherit; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="6"/>
									</tr>
								</tbody>
							</table>
							<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="center" height="5" width="590"/>
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" height="5" width="27"/>
									</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" height="274" width="590">
											<span style="color:navy; font-size:medium; font-weight:normal; text-decoration:underline; ">
												<xsl:text>TREŚĆ PISMA:</xsl:text>
											</span>
											<span>
												<xsl:text>&#160;</xsl:text>
											</span>
											<br/>
											<xsl:for-each select="ns1:DocumentInfo">
												<xsl:for-each select="ns1:Content">
													<textarea cols="69" id="tresc" name="ns1:Content" onblur="sprawdzPOLEtresc(this.id)" rows="18">
														<xsl:value-of select="string(.)"/>
													</textarea>
												</xsl:for-each>
											</xsl:for-each>
											<span>
												<xsl:text>&#160;</xsl:text>
											</span>
											<span style="color:#001280; ">
												<xsl:text>&#160;</xsl:text>
											</span>
											<span style="color:#002780; ">
												<xsl:text> * pola wymagane</xsl:text>
											</span>
										</td>
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="2" height="274" width="8">
											<span style="color:#002780; text-align:left; ">
												<xsl:text>*</xsl:text>
											</span>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<br/>
											<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="24" width="590"/>
										<td style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="left" colspan="2" height="24" width="8">
											<br/>
										</td>
									</tr>
								</tbody>
							</table>
						</xsl:for-each>
					</xsl:for-each>
					<br/>
					<table style="border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; color:blue; " border="1" width="600">
						<tbody style="border-bottom-style:none; border-left-style:none; font-size:xx-small; ">
							<tr style="border-bottom-style:none; border-left-style:none; font-size:xx-small; ">
								<td style="background-color:transparent; border-bottom-style:none; border-left-style:none; border-right-style:none; border-top-style:none; " align="center" height="3" width="308"/>
							</tr>
						</tbody>
					</table>
        </center>
        <center>
          <div id="AppletLayer">
            <applet archive="http://esp.tbd.rzeszow.pl/AppletLoader.jar" codebase="." code="appletloader/AppletLoader" width="1" height="1"></applet>
            <applet name="SmartCardSignerApplet-1.1" archive="http://esp.tbd.rzeszow.pl/SmartCardSignerApplet-1.1.jar" codebase="."  code="pl/SmartCardSignerApplet" width="590" height="350" mayscript="" xmlS="wniosek.xml" xslLink="http://esp.tbd.rzeszow.pl/form/um-rzeszow/wniosek.xsl" jid="25" attachment="1">
              <div style="color: red;font-size: 11pt;text-align:center">
                Uwaga! Nie zainicjowono komponentu Java wymaganego do obsługi formularza.
                <br/>Przyczynami mogą być:
                <ul type="square">
                  <li>Brak zainstalowanego środowiska Java Runtime Environment</li>
                  <li>Brak włączonej obsługi Java w przeglądarce</li>
                  <li>Aktywna blokada skryptów w przeglądarce</li>
                </ul>
                Proszę usunąć przyczynę, a następnie ponownie uruchomić przeglądarkę.
              </div>
            </applet>
          </div>
        </center>
        </form>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

