<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../../../appl/shared/default.xsl"/>
<xsl:import href="./werkvergunning.xsl"/>
<xsl:variable name="Rev">
  <!-- Revision van deze cust.xsl -->
  <xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>

<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />

<xsl:template name="htmlhead">
  <head>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <title>Facilitor Rapportage</title>
    <xsl:comment>Generic Facilitor HTML head for ANY report</xsl:comment>
    <xsl:call-template name="facilitorstyles"/>
  </head>
</xsl:template>

<xsl:template name="pageheader_small_logo">
		<table border="0" width="100%">
			<tr>
				<td width="34%" bordercolor="#FFFFFF" align="center">
					<xsl:choose>
						<xsl:when test="$mode='email'">
							<img src="cid:tmpl_logo.gif"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:element name="img">
								<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute>
								<xsl:attribute name="height">75</xsl:attribute>
							</xsl:element>
						</xsl:otherwise>
					</xsl:choose>
				</td>
				<td width="33%"></td>
				<td width="33%" align="right" valign="bottom" style="text-align:right">
          <xsl:if test="$mode!='email'">
            <b><xsl:value-of select="//lcl/FAC/printdatum"/>:&#xA0;</b>
            <xsl:value-of select="//header/dateTime"/>
          </xsl:if>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="pageheader_AMB">
		<html>
		<head>
			<meta http-equiv="pragma" content="no-cache"/>
			<meta http-equiv="expires" content="0"/>
			<meta http-equiv="cache-control" content="no-cache"/>
			<xsl:call-template name="facilitorstyles"/>
			<style>
				html,body {
				  font-size: 8pt;
					width: 100%;
				}
		  </style>
		</head>
		<xsl:element name="body">
			<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; margin: 0">
				<tr>
					<td width="50%" bordercolor="#000000" align="left" style="vertical-align: bottom; padding: 2px;">
						<xsl:choose>
							<xsl:when test="$mode='email'">
							</xsl:when>
							<xsl:otherwise>
								<xsl:element name="img">
									<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/facilitor.gif</xsl:attribute>
									<xsl:attribute name="height">28</xsl:attribute>
								</xsl:element>
							</xsl:otherwise>
						</xsl:choose>
					</td>
					<td width="50%" bordercolor="#000000" style="text-align: right; vertical-align: bottom; padding: 0;">
						<xsl:choose>
							<xsl:when test="$mode='email'">
								<img src="cid:tmpl_logo.gif"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:element name="img">
									<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute>
									<xsl:attribute name="height">75</xsl:attribute>
								</xsl:element>
							</xsl:otherwise>
						</xsl:choose>
					</td>
				</tr>
				<tr>
					<td bgcolor="#538DD5" colspan="2" style='color:#FFFFFF; padding: 3px 4px 1px 4px;'><b><i>Registration number:&#160;<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></i></b>
					</td>
				</tr>
			</table>
		</xsl:element>
		</html>
	</xsl:template>

<xsl:template name="adres_afzender">
	AkzoNobel Nederland bv AFL-AL<br/>
	P.O. Box 9300<br/>
	6800 SB ARNHEM<br/>
	The Netherlands<br/>
	tel: +31 26 366 3645<br/>
	fax: +31 26 366 5757
</xsl:template>

<xsl:template name="facilitorstyles">
<style>
 html, body {
 font-family: Verdana;
 background-color: #FFFFFF;
 margin: 0;
 cursor: auto;
}

H1 {
  font-family: Tahoma;
  font-style:  normal;
  font-size:   11pt;
  font-weight: normal;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-left: 2px;
  margin-right: 2px;
  color: #000000;
}

table {
  border: 0;
}

th {
  font-family: Verdana;
  font-size: 9pt;
  font-weight: normal;
  color: #ffffff;
  text-decoration: none;
  padding-left:  3px;
  padding-right: 3px;
  padding-top: 3px;
  padding-bottom: 3px;
  background-color: #31398C;
}

td {
  font-family: Verdana;
  font-style: normal;
  font-size: 8pt;
  font-weight: normal;
  color:  #000000;
  text-align: left;
  vertical-align: top;
}

td.result {
  font-size: 7pt;
  text-decoration: none;
  padding-bottom: 2px;
  padding-top: 2px;
  padding-left: 2px;
  padding-right: 2px;
  background-color: #D6D8E8;
}

td.sec_heading {
  font-size: 9pt;
  text-decoration: none;
  padding-bottom: 2px;
  padding-top: 2px;
  padding-left: 2px;
  padding-right: 2px;
  text-align: left;
  background-color: #d0d0d0;
}

td.caption {
  font-size:   18pt;
  padding-bottom: 30px;
  padding-top: 40px;
}

td.sec_caption {
  font-size:   12pt;
  padding-bottom: 20px;
  padding-top: 20px;
}
td.label {
  font-weight: normal;
  text-align: right;
  padding-right: 10px;
}
td.bold {
  font-weight: bold;
}

td.value,
td.value b {
  font-style: italic;
  font-size: 10pt;
}

td.tekst {
  font-size: 10pt;
}

td.tekstkop {
  font-weight: bold;
  font-size: 10pt;
}

td.tiny {
  font-size: 6pt;
  text-align: right;
}
td.border {
  border: 1px solid #000;
}
p {
  font-family: Verdana;
  font-style: normal;
  font-size: 8pt;
}
p.MsoNormal {
  font-family: Arial;
  font-style: normal;
  font-size: 9pt;
  font-weight: normal;
  margin:0in;
}

.pagebreak {
  page-break-before:always;
}

.HH1 {
  font-family: Tahoma;
  font-style:  normal;
  font-size:   24pt;
  font-weight: bold;
  margin-bottom: 2px;
  margin-left: 7px;
  margin-right: 10px;
  color: #990000;
}
</style>
<xsl:call-template name="werkvergunning_style"/>
</xsl:template>


<xsl:template match="melding" mode="include">
  <xsl:choose>
  <xsl:when test="$srtnotificatiecode = 'CUST03'">
    <table border="0" width="100%" cellpadding="2">
    <tr>
      <td>
      <br/><br/><br/>
      Beste <xsl:value-of select="voor/naam_friendly"/>,<br/><br/>
      Let op over 7 dagen is de badge van <xsl:value-of select="kenmerk[@key=315]/perslid/naam_friendly"/> verlopen.<br/><br/>
      Verlenging van deze badge geschiedt uitsluitend op de volgende wijze: de aanvrager dient een melding in Facilitor te plaatsen voor receptie dat de badge voor bepaalde periode verlengd moet worden.<br/><br/>
      Receptie zal dan autorisaties van de badgehouder verlengen.<br/><br/>
      Bij geen verlenging, de medewerker instrueren, dat hij/zij de badge op de laatste werkdag moet inleveren zodra hij/zij vertrekt.<br/><br/>
      Alvast bedankt voor je medewerking.<br/><br/>
      Namens beveiligingsteam.
      </td>
    </tr>
    </table>
  </xsl:when>
  <xsl:otherwise>
	<table border="0" width="100%" cellpadding="2">
	<tr height="50px">
		<td colspan="2" align="center"><xsl:if test="spoed&lt;3"><h1><b>SPOED!</b></h1></xsl:if></td>
		<td colspan="2" style='text-align:center'>
			<h1><b>Melding
				&#160;<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b><xsl:if test="geprint = 1">&#160;&#160;(kopie)</xsl:if>
			</h1>
		</td>
	</tr>
	<tr>
		<td align="right" width="15%"><b>Aanvrager: </b></td>
		<td align="left"  width="40%">
			<xsl:choose>
				<xsl:when test="voor/geslacht=1">
					<xsl:choose>
						<xsl:when test="/facilitor/header/language='NL'">Dhr. </xsl:when>
					 	<xsl:when test="/facilitor/header/language='EN'">Mr. </xsl:when>
					</xsl:choose>
				</xsl:when>
				<xsl:when test="voor/geslacht=0">
					<xsl:choose>
						<xsl:when test="/facilitor/header/language='NL'">Mevr. </xsl:when>
					 	<xsl:when test="/facilitor/header/language='EN'">Ms/Mrs. </xsl:when>
					</xsl:choose>
				</xsl:when>
			</xsl:choose>
			<xsl:value-of select="voor/naam_full"/>
		</td>
        <td align="right" width="15%"><b>Telefoon: </b></td>
        <td align="left">
          <xsl:if test="voor/telefoonnr=''">-</xsl:if>
          <xsl:value-of select="voor/telefoonnr"/>
        </td>
	</tr>
	<tr>
		<td align="right"><b>Locatie:</b></td>
		<td align="left">
			<xsl:value-of select="voor/plaats/regio/district/locatie/code"/> (<xsl:value-of select="plaats/regio/district/locatie/omschrijving"/>)
		</td>
		<td align="right" valign="top"><b>Afdeling: </b></td>
		<td align="left"><xsl:value-of select="voor/afdeling/omschrijving"/></td>
	 </tr>
	 <tr>
		<td align="right" valign="top"><b>Werkplek: </b></td>
		<td align="left">
			<xsl:value-of select="voor/werkplek/plaats/plaatsaanduiding"/></td>
		<td></td>
		<td><xsl:choose><xsl:when test="kostenplaats/module!='ALG'">Kosten aanvrager</xsl:when></xsl:choose></td>
	</tr>
	<tr height="20px">
		<td colspan="4"><hr/></td>
	</tr>
	<tr>
		<td align="right"><b>Locatie: </b></td>
		<td align="left" ><xsl:value-of select="plaats/regio/district/locatie/code"/> (<xsl:value-of select="plaats/regio/district/locatie/omschrijving"/>)</td>
		<td align="right"><b>Melddatum: </b></td>
		<td align="left"><xsl:value-of select="gemeld/datum"/><xsl:text>&#160;</xsl:text><xsl:value-of select="gemeld/tijd"/></td>
	</tr>
	<tr>
		<xsl:choose>
			<xsl:when test="plaats/@type='T'">
				<td align="right"><b>Terrein: </b></td>
				<td align="left" ><xsl:value-of select="plaats/regio/district/locatie/terreinsector/code"/><xsl:text>&#160;</xsl:text><xsl:value-of select="plaats/regio/district/locatie/terreinsector/naam"/></td>
			</xsl:when>
			<xsl:otherwise>
				<td align="right"><b>Gebouw: </b></td>
				<td align="left" ><xsl:value-of select="plaats/regio/district/locatie/gebouw/code"/><xsl:text>&#160;</xsl:text><xsl:value-of select="plaats/regio/district/locatie/gebouw/naam"/></td>
			</xsl:otherwise>
		</xsl:choose>
		<xsl:choose>
			<xsl:when test="kostenplaats/module!='ALG'">
				<td align="right"><b>Bewoners ordernr: </b></td><td align="left"><xsl:value-of select="ordernr"/></td>
			</xsl:when>
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="plaats/@type='T'">
						<td align="right"><b>Intern ordernr: </b></td><td align="left"><xsl:value-of select="plaats/regio/district/locatie/terreinsector/ordernr"/></td>
					</xsl:when>
					<xsl:otherwise>
						<td align="right"><b>Intern ordernr: </b></td><td align="left"><xsl:value-of select="plaats/regio/district/locatie/gebouw/ordernr"/></td>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</tr>
	<tr>
		<xsl:if test="plaats/@type='T' or plaats/@type='G'"><td colspan="2"/></xsl:if>
		<xsl:if test="plaats/@type!='T' and plaats/@type!='G'">
			<td align="right" ><b>Bouwlaag: </b></td>
			<td align="left"><xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/code"/><xsl:text>&#160;</xsl:text><xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/omschrijving"/></td>
		</xsl:if>
		<td align="right"><b>Uitvoertijd: </b></td>
		<td align="left"><xsl:value-of select="uitvoertijd"/>
		<xsl:choose>
		    <xsl:when test="uitvoertijd[@eenheid='U']">&#160;<xsl:value-of select="//lcl/MLD/uren"/>
		    </xsl:when>
		    <xsl:otherwise>&#160;<xsl:value-of select="//lcl/FAC/dagen"/>
		    </xsl:otherwise>
        </xsl:choose>
    </td>
	</tr>
	<tr>
		<xsl:if test="plaats/@type='R'">
			<td align="right" valign="top"><b>Ruimte: </b></td>
			<td align="left"><xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/><xsl:text>&#160;</xsl:text><xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving"/></td>
		</xsl:if>
		<xsl:if test="plaats/@type!='R'">
			<td colspan="2"/>
		</xsl:if>
		<td align="right"><b>Status: </b></td>
		<td align="left"><xsl:value-of select="status"/></td>
	</tr>

	<tr height="16px">
		<td colspan="4"/>
	</tr>
	<tr>
		<td align="right"><b>Melding: </b></td>
		<td align="left">
			<xsl:if test="stdmelding/omschrijving=''">-</xsl:if>
			<xsl:value-of select="stdmelding/omschrijving"/>
		</td>
		<td align="right"><b>Vakgroep: </b></td>
		<td align="left">
			<xsl:if test="discipline/omschrijving=''">-</xsl:if>
			<xsl:value-of select="discipline/omschrijving"/>
		</td>
	</tr>
	<xsl:comment>als we binnen een opdracht zijn, tonen we de meldingtekst niet</xsl:comment>
	<xsl:if test="not(../../opdracht/omschrijving)">
		<tr>
			<td align="right" valign="top"><b>Omschrijving:</b></td>
			<td align="left" colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template></td>
		</tr>
		<xsl:for-each select="kenmerk[@type!='L' and @type!='Q']">
		<xsl:sort select="@volgnummer"/>
			<xsl:if test=".!=''">
				<tr>
					<td align="right"><b><xsl:value-of select="@naam"/>: </b></td>
					<td colspan="3"><xsl:value-of select="."/></td>
				</tr>
			</xsl:if>
		</xsl:for-each>
	</xsl:if>
	<xsl:if test="count(deel)>0">
		<xsl:for-each select="deel">
		<xsl:sort select="omschrijving"/>
			<tr>
				<xsl:choose>
					<!-- Lift -->
					<xsl:when test="srtdeel/key=5485">
						<td align="right" valign="top"><b>Lift:</b></td>
						<td align="left" valign="top"><xsl:value-of select="omschrijving"/></td>
						<td align="left" valign="top"><b><xsl:value-of select="kenmerk[@key=6505]/@naam"/>:</b></td>
						<td align="left" valign="top"><xsl:value-of select="kenmerk[@key=6505]"/></td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="position()=1">
								<td align="right" valign="top"><b>Objecten:</b></td>
							</xsl:when>
							<xsl:otherwise>
								<td/>
							</xsl:otherwise>
						</xsl:choose>
						<td align="left" valign="top"><xsl:value-of select="omschrijving"/></td>
						<td colspan="2" valign="top"><xsl:comment>NADER TE DEFINIEREN</xsl:comment></td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:for-each>
	</xsl:if>
	<xsl:if test="opmerking!=''">
		<tr>
			<td align="right" valign="top"><b>Opmerking:</b></td>
			<td colspan="3"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template></td>
		</tr>
	</xsl:if>
	</table>
  </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="melding" mode="full">
  <xsl:choose>
	  <xsl:when test="$mode='email' and plaats/regio/district/locatie/code='AMB' and $srtnotificatiecode='MLDNEW'">
      <xsl:call-template name="pageheader_AMB"/>
  		  <br/>
  		  <p>Dear
  		    <xsl:choose>
				    <xsl:when test="voor/geslacht=1">Mr. </xsl:when>
				    <xsl:when test="voor/geslacht=0">Ms/Mrs. </xsl:when>
			    </xsl:choose>
			    <xsl:value-of select="voor/naam_friendly"/></p>

        <p>We are pleased to inform you that your request:</p>

        <p>
          <table border="0" cellpadding="1" cellspacing="0" width="100%">
            <tr><td width="130">Subject:</td><td><xsl:value-of select="discipline/omschrijving"/></td></tr>
            <tr><td>Registration time:</td><td><xsl:value-of select="gemeld/datum"/><xsl:text>&#160;</xsl:text><xsl:value-of select="gemeld/tijd"/></td></tr>
          </table>
        </p>

        <p>is handled by our service center. When the problem is solved we will inform you by email.</p>

        <p>Kind regards<br/>Facility Service Center</p>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-imports/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="opdracht" mode="full">
	<xsl:variable name="Werkvergunning">
		<xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte/kenmerk[@naam='Werkvergunning']"/>
	</xsl:variable>
	<xsl:choose>
		<xsl:when test="$mode='summary'"><xsl:if test="$Werkvergunning='AkzoNobel' or $Werkvergunning='AkzoNobel RTC' or $Werkvergunning='Teijin Aramid'">(Vergunningsplichtig!) </xsl:if><xsl:value-of select="melding/plaats/plaatsaanduiding" />: <xsl:if test="melding/spoed&lt;3">(SPOED) </xsl:if>Opdracht <xsl:value-of select="melding/discipline/srtdiscipline/prefix"/><xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/> (<xsl:value-of select="melding/stdmelding/omschrijving"/>) <xsl:value-of select="omschrijving"/></xsl:when>
		<xsl:when test="opdrachttype/key=1053 or opdrachttype/key=1054"><xsl:apply-templates select="." mode="verzending"/></xsl:when>
		<xsl:otherwise>
			<html>
				<xsl:comment>================================ OPDRACHTEN ==============================</xsl:comment>
				<xsl:comment>Facilitor new style default XSL template for opdracht</xsl:comment>
				<xsl:call-template name="htmlhead"/>
				<xsl:element name="body">
					<xsl:if test="$mode!='email'">
						<xsl:attribute name="onload">window.print();</xsl:attribute>
					</xsl:if>
					<xsl:call-template name="pageheader"/>
					<xsl:apply-templates select="." mode="include"/>
				</xsl:element>
			</html>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template match="opdracht" mode="include">
   <table border="0" width="100%" cellpadding="2">
   <tr height="60px">
       <td colspan="5" style='text-align:center'>
        <h1><b>
			<xsl:choose>
				<xsl:when test="opdrachttype/key='5' or opdrachttype/key='1081'">Deelopdracht</xsl:when>
				<xsl:otherwise><xsl:value-of select="opdrachttype/omschrijving"/></xsl:otherwise>
			</xsl:choose>
	        <xsl:text>&#160;</xsl:text><xsl:value-of select="melding/discipline/srtdiscipline/prefix"/><xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></b><xsl:if test="geprint = 1">&#160;&#160;(kopie)</xsl:if>
		</h1></td>
   </tr>
<xsl:choose>
<xsl:when test="uitvoerende[@niveau='P']">
  <tr>
	<td width="15%" rowspan="5" align="right"><b>Factuuradres:</b></td>
	<td width="30%" rowspan="5">
		AkzoNobel Nederland B.V.<br/>
		T.a.v. Accounts Payable<br/>
		Postbus 9300<br/>
		6800 SB  Arnhem
	</td>
    <td width="15%" align="right"><b>Uitvoerder:</b></td>
    <td width="35%"><xsl:value-of select="uitvoerende/persoon/naam_friendly"/></td>
    <td width="5%"></td>
  </tr>
  <tr>
    <td width="15%" align="right"><b>Telefoon: </b></td>
    <td width="35%"><xsl:value-of select="uitvoerende/persoon/telefoonnr"/></td>
    <td width="5%"></td>
  </tr>
  <tr>
    <td colspan="3"></td>
  </tr>
  <tr>
    <td colspan="3"></td>
  </tr>
  <tr>
    <td colspan="3"></td>
  </tr>
</xsl:when>
<xsl:otherwise>
  <tr>
	<td width="15%" rowspan="5" align="right"><b>Factuuradres:</b></td>
	<td width="30%" rowspan="5">
		AkzoNobel Nederland B.V.<br/>
		T.a.v. Accounts Payable<br/>
		Postbus 9300<br/>
		6800 SB  Arnhem
	</td>
    <td width="15%" align="right"><b>Uitvoerende: </b></td>
    <td width="35%"><xsl:value-of select="uitvoerende/bedrijf/naam"/></td>
    <td width="5%"></td>
  </tr>
  <tr>
    <td width="15%" align="right"><b>Overeenkomstnummer: </b></td>
    <td width="35%"><xsl:value-of select="uitvoerende/bedrijf/overeenkomst_nr"/></td>
    <td width="5%"></td>
  </tr>
  <tr>
    <td align="right"><b>Adres: </b></td>
    <td><xsl:value-of select="uitvoerende/bedrijf/post_adres"/></td>
    <td></td>
  </tr>
  <tr>
    <td align="right"><b>Postcode: </b></td>
    <td><xsl:value-of select="uitvoerende/bedrijf/post_postcode"/></td>
    <td></td>
  </tr>
  <tr>
    <td align="right"><b>Plaats: </b></td>
    <td><xsl:value-of select="uitvoerende/bedrijf/post_plaats"/></td>
    <td></td>
  </tr>
</xsl:otherwise>
</xsl:choose>
  <tr>
    <td align="right"><b>Contactpersoon: </b></td>
    <td align="left"><xsl:value-of select="backoffice_contact/naam_full"/></td>
    <td colspan="3"/>
   </tr>
  <tr>
    <td align="right"><b>Telefoon: </b></td>
    <td align="left"><xsl:value-of select="backoffice_contact/telefoonnr"/></td>
    <td align="right"><b>Kostenplaats: </b></td>
    <td align="left"><xsl:value-of select="kostenplaats/nr"/>&#160;<xsl:value-of select="kostenplaats/omschrijving"/></td>
    <td/>
  </tr>
  <tr>
    <td colspan="2"/>
    <td align="right"><b>Ordernr: </b></td>
        <xsl:choose>
        <xsl:when test="kostenplaats/module!='ALG'">
            <td align="left"><xsl:value-of select="ordernr"/></td>
        </xsl:when>
        <xsl:otherwise>
                <xsl:choose>
                <xsl:when test="melding/plaats/@type='T'">
                 <td align="left"><xsl:value-of select="melding/plaats/regio/district/locatie/terreinsector/ordernr"/></td>
                </xsl:when>
                <xsl:otherwise>
                 <td align="left"><xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/ordernr"/></td>
                </xsl:otherwise>
                </xsl:choose>
       </xsl:otherwise>
       </xsl:choose>
    <td></td>
  </tr>
  <tr>
    <td colspan="2"/>
    <td align="right"><b>Datum gereed: </b></td>
    <td align="left"><xsl:value-of select="datumgereed/datum"/></td>
    <td/>
  </tr>
  <tr>
    <td colspan="2"/>
    <td align="right"><b>Status: </b></td>
    <td align="left"><xsl:value-of select="status"/></td>
    <td/>
  </tr>
    <tr height="10px">
      <td colspan="5"/>
   </tr>
  <tr>
     <td align="right" valign="top"><b>Omschrijving: </b></td>
     <td align="left" colspan="4"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="omschrijving"/></xsl:call-template></td>
   </tr>
    <tr height="10px">
      <td colspan="5"/>
   </tr>
  <xsl:if test="opmerking">
  <tr>
     <td align="right" valign="top"><b>Afhandeling: </b></td>
     <td align="left" colspan="4"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template></td>
  </tr>
  <tr height="10px">
      <td colspan="5"/>
  </tr>
  </xsl:if>
    <xsl:if test="(opdrachttype/key='5' and kenmerk[@key=241]='') or (opdrachttype/key='1081' and kenmerk[@key=583]='')"> <!-- Deelopdracht met/zonder werkvergunning-->
        <tr>
            <td align="right" valign="top"><b>Accordeerder: </b></td>
            <td align="left" colspan="4">Naam leesbaar invullen _______________________________</td>
        </tr>
    </xsl:if>

    <xsl:for-each select="kenmerk">
      <xsl:if test=".!='' and @key!=2 and @key!='581'">
        <xsl:if test="@type!='Q'">
          <tr>
            <xsl:if test="@type!='L'">
              <td align="right" valign="top"><b><xsl:value-of select="@naam"/>: </b></td>
              <td align="left" colspan="4"><xsl:value-of select="."/></td>
            </xsl:if>
            <xsl:if test="@type='L'">
              <td colspan="2" class="result"><xsl:value-of disable-output-escaping="yes" select="."/></td>
            </xsl:if>
          </tr>
        </xsl:if>
      </xsl:if>
    </xsl:for-each>
    <tr height="20px">
      <td colspan="5"><hr/></td>
   </tr>
    <tr>
      <td colspan="5" align="center">
        <table width="90%" style="background-color:#EEEEEE;border: 1px solid #888">
        <tr><td><xsl:apply-templates select="melding" mode="include"/></td></tr>
        </table>
      </td>
     </tr>
     <tr height="20px">
            <td colspan="5"><hr/></td>
     </tr>
     <xsl:variable name="arbeid" select="uren*uurloon"/>
     <tr>
        <td align="right"><b>Uren:</b></td>
        <td><xsl:value-of select="uren"/><b>&#160;à&#160;</b>&#8364;&#160;<xsl:value-of select="format-number(uurloon, '0,00', 'european')"/></td>
        <td align="right"><b>Arbeid:</b></td>
        <td style="width:1in;text-align:right">&#8364;&#160;<xsl:value-of select="format-number($arbeid, '0,00', 'european')"/></td>
        <td/>
      </tr>
     <tr>
        <td colspan="2"/>
        <td align="right"><b>Materiaal:</b></td>
        <td style="width:1in;text-align:right">&#8364;&#160;<xsl:value-of select="format-number(materiaal, '0,00', 'european')"/></td>
        <td></td>
      </tr>
     <xsl:variable name="aanneemsom" select="kenmerk[@key='2']"/>
     <xsl:if test="$aanneemsom!=''">
       <tr>
          <td colspan="2"/>
          <td align="right"><b>Aanneemsom:</b></td>
          <td style="width:1in;text-align:right">&#8364;&#160;<xsl:value-of select="format-number($aanneemsom, '0,00', 'european')"/></td>
          <td/>
        </tr>
     </xsl:if>
     <xsl:variable name="correctie0" select="$arbeid + materiaal"/>
     <xsl:variable name="correctie" select="kosten - $correctie0"/>
        <tr>
          <td colspan="2"/>
          <td align="right"><b>Correctie:</b></td>
          <td style="width:1in;text-align:right">&#8364;&#160;<xsl:value-of select="format-number($correctie, '0,00', 'european')"/></td>
          <td/>
        </tr>
      <tr>
        <td colspan="2"/>
        <td align="right"><b>Totaal:</b></td>
     <xsl:choose>
		 <xsl:when test="$aanneemsom!=''">
	        <td style="width:1in;text-align:right"><b>&#8364;&#160;<xsl:value-of select="format-number(kosten+$aanneemsom, '0,00', 'european')"/></b></td>
	     </xsl:when>
	     <xsl:otherwise>
	        <td style="width:1in;text-align:right"><b>&#8364;&#160;<xsl:value-of select="format-number(kosten, '0,00', 'european')"/></b></td>
	     </xsl:otherwise>
	 </xsl:choose>
        <td/>
      </tr>
    </table>
    <xsl:call-template name="pagefooter"/>

    <xsl:if test="kenmerk[@key=584]='Ja' or kenmerk[@key=585]='Ja'">
		<xsl:variable name="SoortWerkvergunning">
	      <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte/kenmerk[@naam='Werkvergunning']"/>
	    </xsl:variable>
	    <xsl:variable name="Ruimtebeheerder">
	      <xsl:value-of select="melding/plaats/regio/district/locatie/gebouw/verdieping/ruimte/kenmerk[@naam='Ruimtebeheerder']"/>
	    </xsl:variable>
	    <xsl:choose>
	    <xsl:when test="$SoortWerkvergunning='Teijin Aramid'">
	    <div class='pagebreak'>
	      <xsl:choose>
	        <xsl:when test="$mode='email'">
	          <b style="margin-left:0.8in"><img src="cid:teijin_twaron.gif" width="200" align="top"/></b>
	        </xsl:when>
	        <xsl:otherwise>
	          <b style="margin-left:0.8in"><img src="../../cust/akza/teijin_twaron.gif" width="200" align="top"/></b>
	        </xsl:otherwise>
	      </xsl:choose>
	      <b style="font-family:Arial;font-size:14pt;width:4.1in;text-align:right">Werkvergunning QRI</b>

	      <table cellspacing="0" cellpadding="0" style="width:2.25in;margin-left:5.1in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:1.40in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Volgnummer (jaar-nr.)</p>
	          </td>
	          <td style="width:0.85in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:0.15in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.95in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.45in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.65in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.3in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.15in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="7" style="width:7.0in;border:1px solid black;border-bottom:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>1. Algemeen</b></p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.1in;border:none;border-left:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Aanvrager werkzaamheden:&#160;</p>
	          </td>
	          <td style="width:1.45in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><xsl:value-of select="melding/voor/naam_full"/></p>
	          </td>
	          <td colspan="3" style="width:2.1in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Toezichthouder voor TeijinAramid:&#160;</p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><xsl:value-of select="substring-before($Ruimtebeheerder, ' /')"/></p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.1in;border:none;border-left:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Vergunning verleend aan / (firma):&#160;</p>
	          </td>
	          <td style="width:1.45in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><xsl:value-of select="uitvoerende/bedrijf/naam"/></p>
	          </td>
	          <td colspan="3" style="width:2.1in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Geldig op (datum en tijd):&#160;</p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.1in;border:none;border-left:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Aantal personen:&#160;</p>
	          </td>
	          <td style="width:1.45in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td colspan="3" style="width:2.1in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Afdeling/verdieping:&#160;</p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><xsl:value-of select="substring-after($Ruimtebeheerder, '/ ')"/></p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.1in;border:none;border-left:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Tel. nummer vergunninghouder:&#160;</p>
	          </td>
	          <td style="width:1.45in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td colspan="3" style="width:2.1in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#160;</p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="7" style="width:7.0in;border:none;border-left:1px solid black;border-right:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>Omschrijving werkzaamheden</b></p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:0.15in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td colspan="3" style="width:4.05in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">
	              Zie opdracht: <xsl:value-of select="melding/discipline/srtdiscipline/prefix"/><xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/>
	           </p>
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.3in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Machine / installatie onderdeel:</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:1.6in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.7in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.8in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="5" style="width:5.5in;border:1px solid black;border-bottom:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>2. Leidingen en apparatuur</b></p>
	          </td>
	          <td style="width:0.7in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> ja</p>
	          </td>
	          <td style="width:0.8in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> n.v.t.</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Par.</p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Par.</p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Uitgevoerd /&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:none;border-right:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Afsluiten</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Afblinden</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">controle door:&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Afkoppelen</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Neutraliseren</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Paraaf:&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> In-/uitwendig spoelen</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Drukvrij maken</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Datum:&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Leegmaken / -draaien</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Afkoelen</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td colspan="3" style="width:2.85in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="7" style="width:7.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Overig:</p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:1.6in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.7in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.8in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="5" style="width:5.5in;border:1px solid black;border-bottom:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>3. Elektrisch / mechanisch veiligstellen</b></p>
	          </td>
	          <td style="width:0.7in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> ja</p>
	          </td>
	          <td style="width:0.8in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> n.v.t.</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Par.</p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Par.</p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Uitgevoerd /&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:none;border-right:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Zekering trekken</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Aarding aanbrengen</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">controle door (E&amp;I):&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Motor afkoppelen</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Spanning meten</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Paraaf:&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Schakelaar blokkeren</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Hangslot plaatsen</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Datum:&#160;</p>
	          </td>
	          <td colspan="2" style="width:1.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Label (gevaar n.i.b.s.)</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.55in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> ...</p>
	          </td>
	          <td style="width:0.5in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td colspan="3" style="width:2.85in;border:1px solid black;border-top:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:1.6in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.9in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.25in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.55in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.6in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.3in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.3in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.35in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.15in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.2in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.8in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="7" style="width:5.5in;border:1px solid black;border-bottom:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>4. Omgeving</b></p>
	          </td>
	          <td colspan="3" style="width:0.7in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> ja</p>
	          </td>
	          <td style="width:0.8in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> n.v.t.</p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="3" style="width:2.75in;border:none;border-left:1px solid black;background:#CCCCCC;height:.15in;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Controleren op:</p>
	          </td>
	          <td colspan="8" style="width:4.25in;border:none;border-right:1px solid black;background:#CCCCCC;height:.15in;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Maatregelen:</p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-bottom:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Brandgevaarlijke stoffen/dampen</p>
	          </td>
	          <td style="width:0.25in;border:none;border-top:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;border-bottom:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> verwijderen / afschermen met:</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="3" style="width:2.75in;border:1px solid black;border-top:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-top:none;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> LEL meting / O2 meting</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Lekkages aan pijpen/app</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> afdichten met:</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Openingen / sparingen wand/vloer</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> afzetten met:</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Kanalen/riolen</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> afdekken met:</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Electrische kabels/leidingen</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> afdekken / markeren met:</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Gevaar voor derden</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="2" style="width:1.15in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> afzetten met:</p>
	          </td>
	          <td colspan="4" style="width:2.1in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right;padding:0in .35in 0in 0in"><span style="font-size:9pt">&#x25A1;</span> waarschuwingsbord</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Zuurstofgebrek / besloten ruimte</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> meten / ventileren / 50V gereedschap/ reddingslijn</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="2" style="width:2.5in;border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Toxische dampen</p>
	          </td>
	          <td style="width:0.25in;border:1px solid black;border-left:none;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">&#8594;</p>
	          </td>
	          <td colspan="6" style="width:3.25in;border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> meten / ventileren</p>
	          </td>
	          <td colspan="2" style="width:1.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="11" style="width:7.0in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Overig...</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.6in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Uitgevoerd/controle door:&#160;</p>
	          </td>
	          <td colspan="3" style="width:1.7in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.6in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Paraaf:&#160;</p>
	          </td>
	          <td style="width:1.3in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	          <td colspan="2" style="width:0.65in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Datum:&#160;</p>
	          </td>
	          <td colspan="3" style="width:1.15in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:2.3in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:2.1in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.8in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.9in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.9in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="3" style="border:1px solid black;border-bottom:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>5. Heetwerk (lassen, slijpen, openvuur en vonken) toegestaan ja/nee</b></p>
	          </td>
	          <td style="border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> ja</p>
	          </td>
	          <td style="border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> nee / n.v.t.</p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="5" style="border:1px solid black;border-top:none;border-bottom:none;background:#CCCCCC;height:.15in;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Maatregelen:</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Handblusser nabij, type:</p>
	          </td>
	          <td style="border:1px solid black;border-bottom:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Brandwacht</p>
	          </td>
	          <td style="border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Uitgevoerd:&#160;</p>
	          </td>
	          <td colspan="2" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Brandslang/haspel</p>
	          </td>
	          <td style="border:1px solid black;border-top:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><i>&#160;&#160;&#160;&#160;Naam:</i></p>
	          </td>
	          <td style="border:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Paraaf:&#160;</p>
	          </td>
	          <td colspan="2" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Smeul-controle tm 30 min na werk</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> LEL meting / &lt;10%</p>
	          </td>
	          <td style="border:none;border-bottom:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right">Datum:&#160;</p>
	          </td>
	          <td colspan="2" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:2.1in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:2.3in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.8in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.0in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:0.8in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="3" style="border:1px solid black;border-bottom:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>6. Maatregelen te nemen door uitvoerenden en Persoonlijke Beschermings middelen</b></p>
	          </td>
	          <td style="border:1px solid black;border-right:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> ja</p>
	          </td>
	          <td style="border:1px solid black;border-left:none;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> n.v.t.</p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="5" style="border:1px solid black;border-top:none;background:#CCCCCC;height:.15in;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A0;</span> Veiligheidsbril</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Handschoenen warmtebestendig</p>
	          </td>
	          <td colspan="3" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Steiger / stellingcontrole</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A0;</span> Veiligheidsschoenen</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Handschoenen overig:</p>
	          </td>
	          <td colspan="3" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Tankgordel / reddingslijn</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A0;</span> Overall / werkpak</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Lange mouwen (zuurbestendig)</p>
	          </td>
	          <td colspan="3" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Valbeveiliging / harnas</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Handschoenen zuurbestendig</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Gehoorbescherming</p>
	          </td>
	          <td colspan="3" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Deactiveren brandmelders</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Veiligheidshelm</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Adembescherming type:</p>
	          </td>
	          <td colspan="3" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Gebruik portofoons</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Chemisch bestendig schort</p>
	          </td>
	          <td style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A1;</span> Gelaatsscherm</p>
	          </td>
	          <td colspan="3" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A0;</span> Communicatie overlast naar derden</p>
	          </td>
	        </tr>
	        <tr>
	          <td colspan="5" style="border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><span style="font-size:9pt">&#x25A0;</span> Overig / Bijzondere instructies:</p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:2.4in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.6in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.75in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:2.4in;border:1px solid black;border-right:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>7. Autorisatie</b></p>
	          </td>
	          <td style="width:1.6in;border:1px solid black;border-left:none;border-right:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Naam:</p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;border-left:none;border-right:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Datum:</p>
	          </td>
	          <td style="width:1.75in;border:1px solid black;border-left:none;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Handtekening:</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:2.4in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Vergunningverlener</p>
	          </td>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	          <td style="width:1.75in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:2.4in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Vergunninghouder / uitvoerder (firma)*</p>
	          </td>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	          <td style="width:1.75in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:2.4in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Overig:  </p>
	          </td>
	          <td style="width:1.6in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	          <td style="width:1.75in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal" align="right" style="text-align:right"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:7.0in;margin-left:0.35in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="width:1.9in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:none;height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.9in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"><b>8. Verlenging (max 4 x 1 dag)</b></p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Dag-datum / paraaf</p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Dag-datum / paraaf</p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Dag-datum / paraaf</p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;background:#CCCCCC;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Dag-datum / paraaf</p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.9in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Vergunninghouder</p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	        <tr>
	          <td style="width:1.9in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal">Ruimtebeheerder</p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.25in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	          <td style="width:1.35in;border:1px solid black;padding:0in 0pt 0in 3pt">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	      </table>

	      <table cellspacing="0" cellpadding="0" style="width:6.25in;margin-left:0.7in;border-collapse:collapse;border:none">
	        <tr>
	          <td style="height:.15in">
	            <p class="MsoNormal"> </p>
	          </td>
	        </tr>
	         <tr>
	          <td>
	            <p class="MsoNormal">
	              <span style="font-size:7.0pt;color:gray">
	                Bijlage Procedure ESH 2.30rev2 / versie 21 DEC 2006  Alleen geldig met handtekeningen. *
	                Vergunninghouder verklaart zich bekend met veiligheidsvoorschriften en zich te houden aan
	                voorgeschreven maatregelen. Na beeindiging werkzaamheden, vergunning inleveren bij
	                vergunningverlener. Bij <u>wijziging werk is nieuwe vergunning verplicht. Max 1 week geldig
	                met dagverlenging</u>. 
	              </span>
	              <span style="font-size:8.0pt">
	                <b>Intern alarmnummer: 8000</b>
	              </span>
	            </p>
	          </td>
	        </tr>
	      </table>
	    </div>
	    </xsl:when>
	    <xsl:otherwise>
			<xsl:apply-templates select="." mode="werkvergunning"/>
	    </xsl:otherwise>
	    </xsl:choose>
	</xsl:if>
</xsl:template>

<xsl:template name="eur-verklaring">
	<xsl:param name="land"/>
	<xsl:choose>
		<xsl:when test="$land='NORWAY'">
			<tr><td colspan="3" class="border">
				Vergunning inspecteur der invoerrechten en accijnzen te Arnhem nummer 6515/14216.<br/>
				The exporter of the products covered by this document (customs authorization no. 90/1 P9/2125 d.d. 14-12-1990
				Douanedistrict Arnhem) declares that, except where otherwise clearly indicated, these products are of EEA
				preferential origin.<br/>
				Toegelaten exporteur EUR-1.
			</td></tr>
		</xsl:when>
		<xsl:when test="$land='SWITZERLAND'">
			<tr><td colspan="3" class="border">
				Vergunning insp. I/A Arnhem d.d. 14.12.90 nr. 90/1P/2125<br/>
				<strong>EN</strong> The exporter of the products covered by this document (customs authorization no. 90/1 P9/2125
				d.d. 14-12-1990 Douanedistrict Arnhem) declares that, except where otherwise clearly indicated, these products are
				of EEA preferential origin.<br/>
				<strong>FR</strong> L'exportateur des produits couverts par le present document (l'autorisation douaniere no.
				6515/14216 Douanedistrict Arnhem) sauf indication claire du contraire ces produits ont l'origine preferentielle CE
				(EEE).<br/>
				<strong>DE</strong> Der Ausfuehrer (Ermaechtiger Ausfuehrer; Bewilligungs-nr 6515/14216 Douanedienst Arnhem) der
				Waren, af die sich dieses Handelspapier bezieht, erklaert, dass diese Waren, soweit nicht anders angegeben,
				Praeferentzbeguenstigte waren mit ursprung in der EG (EWR) sind.<br/>
				Toegelaten exporteur EUR-1.
			</td></tr>
		</xsl:when>
	</xsl:choose>
</xsl:template>

<xsl:template name="hout-verklaring">
	<xsl:param name="land"/>
	<xsl:choose>
		<xsl:when test="$land='UNITED STATES' or $land='CHINA'">
			<table id="verklaring" class="pagebreak">
				<tr><th colspan="2">Declaration of Non-Wood Packing Material</th></tr>
				<tr>
					<td class="label bold" width="30%"><br/><br/>To:</td>
					<td width="69%">
						<xsl:choose>
						<xsl:when test="$land='CHINA'">
							<br/><br/>China General Administration for Entry-Exit Inspection and Quarantine of People's Republic of China
						</xsl:when>
						<xsl:otherwise>
							<br/><br/>________________________________________________________________________
						</xsl:otherwise>
						</xsl:choose>
						<br/><br/>
					</td>
				</tr>
				<tr>
					<td colspan="2">It is declared that this shipment:<br/><br/></td>
				</tr>
				<tr>
					<td class="label bold">No. (HAWB):</td>
					<td>____________________________________,</td>
				</tr>
				<tr>
					<td class="label bold">Piece(s):</td>
					<td><xsl:value-of select="kenmerk[@naam='Aantal dozen']"/>,</td>
				</tr>
				<tr>
					<td class="label bold">Weight:</td>
					<td><xsl:value-of select="format-number(kenmerk[@naam='Totaalgewicht'], '0,00', 'european')"/> kgs,</td>
				</tr>
				<tr>
					<td colspan="2"><br/>including its container does not contain any wood packing material.<br/><br/></td>
				</tr>
				<tr>
					<td class="label bold">Shipper:</td>
					<td>AkzoNobel Nederland bv
						<xsl:if test="melding/voor/afdeling/naam='080600' or melding/voor/afdeling/parent/naam='080600'">
							on behalf of AkzoNobel Engineering &amp; Operational Solutions
						</xsl:if>
					</td>
				</tr>
				<tr>
					<td class="label bold">Date:</td>
					<td><xsl:value-of select="datumbegin/datum"/></td>
				</tr>
				<tr>
					<td class="label bold">Signature (or chop):</td>
					<td>____________________________________</td>
				</tr>
				<tr>
					<td/>
					<td><br/><br/><br/></td>
				</tr>
			</table>
		</xsl:when>
	</xsl:choose>
</xsl:template>

<xsl:template match="opdracht" mode="verzending">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<title>Facilitor Pro Forma Invoice</title>
	<xsl:call-template name="facilitorstyles"/>
	<style>
		body {
		  font-size: 8pt;
		}
		div#header {
		  margin-bottom: 30px;
		}
		td {
		  font-size: 8pt;
		}
	    div#footer {
	      position: fixed;
	      bottom: 0;
	      width: 100%;
	    }
		div#pakketgegevens {
		  float: right;
		  border: 1px solid #000;
		  margin: 50px 10px;
		  padding: 5px;
		}
		table#verklaring {
		  width: 80%;
		  page-break-before: always;
		  border: 1px solid #000;
		  font-size: 10pt;
		  padding: 0;
		}
		#verklaring th {
		  font-size: 14pt;
		  font-weight: bold;
		  background-color: #fff;
		  color: #000;
		  margin: 0;
		}
		#verklaring td {
		  margin: 0;
		}
    </style>
</head>
<xsl:element name="body">
<xsl:attribute name="onload">window.print();</xsl:attribute>
	<!-- Header met adres -->
	<div id="header">
		<table width="100%">
			<tr>
				<td width="36%">
					<strong>
						<xsl:value-of select="melding/kenmerk[@naam='Naam']"/><br/>
						<xsl:if test="melding/kenmerk[@naam='Naam (extra)']!=''">
							<xsl:value-of select="melding/kenmerk[@naam='Naam (extra)']"/><br/>
						</xsl:if>
						<xsl:value-of select="melding/kenmerk[@naam='Adres']"/><br/>
						<xsl:if test="melding/kenmerk[@naam='Adres (extra)']!=''">
							<xsl:value-of select="melding/kenmerk[@naam='Adres (extra)']"/><br/>
						</xsl:if>
						<xsl:value-of select="melding/kenmerk[@naam='Postcode']"/><xsl:text>&#160;</xsl:text><xsl:value-of select="melding/kenmerk[@naam='Plaats']"/><br/>
						<xsl:if test="melding/kenmerk[@naam='Staat (VS)']!=''">
							<xsl:value-of select="melding/kenmerk[@naam='Staat (VS)']"/><br/>
						</xsl:if>
						<xsl:value-of select="melding/kenmerk[@naam='Land']"/>
					</strong>
				</td>
				<td width="27%">
					<xsl:element name="img">
						<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute>
						<xsl:attribute name="height">75</xsl:attribute>
					</xsl:element>
				</td>
				<td width="36%" class="caption" align="right">
					Pro Forma Invoice
				</td>
			</tr>
		</table>
	</div>
	<!-- Overzicht te verzenden items -->
	<div id="content">
		<table width="100%">
			<tr>
				<td colspan="2">Dossiernr: <xsl:value-of select="melding_key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></td>
				<td colspan="2" align="right" style="text-align: right;">Date: <xsl:value-of select="datumbegin/datum"/></td>
			</tr>
			<tr><td colspan="4"><hr/></td></tr>
			<tr>
				<td width="15%">Lbs/Kgs/Pieces<br/>Kg/Aantal<br/>Kg/Stuck<br/>Kg/Quantite</td>
				<td width="15%">Price per unit<br/>Eenheidsprijs<br/>Preis pro Einheit<br/>Prix par Unite</td>
				<td width="55%">Description<br/>Omschrijving<br/>Umschreibung<br/>Description</td>
				<td width="15%">Amount<br/>Bedrag<br/>Betrag<br/>Montant</td>
			</tr>
			<tr><td colspan="4"><hr/></td></tr>
		<xsl:for-each select="materialen[code='vm']">
		<xsl:sort select="volgnr"/>
			<tr>
				<td><xsl:value-of select="format-number(aantal, '0,00', 'european')"/></td>
				<td><xsl:value-of select="format-number(stuksprijs, '0,00', 'european')"/></td>
				<td><xsl:value-of select="omschrijving"/></td>
				<td><xsl:value-of select="format-number(totaalprijs, '0,00', 'european')"/> EUR</td>
			</tr>
		</xsl:for-each>
		</table>

		<div style="width: 100%; margin-top: 50px;">
			DELIVERY:
			<xsl:choose>
			<xsl:when test="kenmerk[@naam='Afwijkende leveringsvoorwaarden']!=''">
				<xsl:value-of select="translate(kenmerk[@naam='Afwijkende leveringsvoorwaarden'], $lowercase, $uppercase)"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="translate(kenmerk[@naam='Leveringsvoorwaarden'], $lowercase, $uppercase)"/>
			</xsl:otherwise>
			</xsl:choose>
				<xsl:text>&#160;</xsl:text><xsl:value-of select="translate(melding/kenmerk[@naam='Plaats'], $lowercase, $uppercase)"/><br/>
			<xsl:choose>
			<xsl:when test="kenmerk[@naam='Afwijkend soort goederen']!=''">
				<xsl:value-of select="translate(kenmerk[@naam='Afwijkend soort goederen'], $lowercase, $uppercase)"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="translate(kenmerk[@naam='Soort goederen'], $lowercase, $uppercase)"/>
			</xsl:otherwise>
			</xsl:choose>
				OF NO COMMERCIAL VALUE<br/>
			FREE OF CHARGE<br/>
			VALUE FOR CUSTOMS PURPOSES ONLY: &#8364; <xsl:value-of select="format-number(sum(materialen[code='vm']/totaalprijs), '0,00', 'european')"/><br/>
			EORI NUMBER: NL 001824521
		</div>
		<xsl:if test="kenmerk[@naam='Vrije tekst op bon']!=''">
		<div style="width: 60%; margin-top: 10px; padding: 5px; border: 1px solid #000;">
			<xsl:call-template name="linebreaks">
				<xsl:with-param name="string" select="string(kenmerk[@naam='Vrije tekst op bon'])"/>
			</xsl:call-template>
		</div>
		</xsl:if>
	</div>
	<!-- Footer -->
	<div id="footer">
		<div id="pakketgegevens">
			<table border="0" cellpadding="5" cellspacing="0">
				<tr>
					<td>Nett weight kgs.</td>
					<td><xsl:value-of select="format-number(kenmerk[@naam='Nettogewicht'], '0,00', 'european')"/></td>
				</tr>
				<tr>
					<td>Gross weight kgs.</td>
					<td><xsl:value-of select="format-number(kenmerk[@naam='Totaalgewicht'], '0,00', 'european')"/></td>
				</tr>
				<tr>
					<td colspan="2"><xsl:value-of select="kenmerk[@naam='Aantal units']"/><xsl:text>&#160;</xsl:text><xsl:value-of select="melding/kenmerk[@naam='Verpakkingseenheid']"/>(s)</td>
				</tr>
			</table>
		</div>
		<table width="100%" cellpadding="3" cellspacing="10">
			<xsl:if test="opdrachttype/key=1054">
				<xsl:call-template name="eur-verklaring">
					<xsl:with-param name="land" select="melding/kenmerk[@naam='Land']"/>
				</xsl:call-template>
			</xsl:if>
			<tr>
				<td width="50%" class="border">
					Sent by AkzoNobel Nederland bv<br/>
					<xsl:choose>
					<xsl:when test="melding/voor/afdeling/naam='080600' or melding/voor/afdeling/parent/naam='080600'">
						on behalf of <strong>AKZONOBEL ENGINEERING &amp; OPERATIONAL SO</strong><br/>
						BTW-no.: <strong>NL001823401-B01</strong><br/>
					</xsl:when>
					<xsl:otherwise>
						BTW-no.: <strong>NL001824521-B13</strong><br/>
					</xsl:otherwise>
					</xsl:choose>
					Shipment/Verzenden/Versand/Expedition <strong>
						<xsl:choose>
						<xsl:when test="kenmerk[@naam='Afwijkende vervoerder']">
							<xsl:value-of select="kenmerk[@naam='Afwijkende vervoerder']"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="kenmerk[@naam='Vervoerder (wereldwijd)']"/>
							<xsl:value-of select="kenmerk[@naam='Vervoerder (Europa)']"/>
						</xsl:otherwise>
						</xsl:choose>
					</strong><br/>
					Country of destination/Land van bestemming/ Bestimmungsland/Pays de destination <strong><xsl:value-of select="melding/kenmerk[@naam='Land']"/></strong>
				</td>
				<td width="20%" class="border">
					Signed by:
				</td>
				<td width="30%" class="border">
					<xsl:call-template name="adres_afzender"/>
				</td>
			</tr>
		</table>
	</div>

	<xsl:call-template name="hout-verklaring">
		<xsl:with-param name="land" select="melding/kenmerk[@naam='Land']"/>
	</xsl:call-template>

</xsl:element> <!-- body -->
</html>
</xsl:template>

<xsl:template match="afspraak" mode="full">
  <xsl:variable name="gastheer">
    <xsl:value-of select="host_user/voornaam"/>&#xA0;<xsl:value-of select="host_user/tussenvoegsel"/><xsl:if test="host_user/tussenvoegsel!=''">&#xA0;</xsl:if><xsl:value-of select="host_user/naam"/></xsl:variable>
  <xsl:variable name="nrOfVisitors">
    <xsl:value-of select="count(bezoeker)"/>
  </xsl:variable>
  <xsl:variable name="nrOfpark">
    <xsl:value-of select="count(bezoeker/parkeerplaats)"/>
  </xsl:variable>
  <xsl:choose>
    <xsl:when test="$srtnotificatiecode='CUST04'">
      <xsl:comment>== Notificatie naar bezoeker ==</xsl:comment>
      <html>
        <xsl:call-template name="htmlhead"/>
        <xsl:call-template name="pageheader_small_logo"/>
        <body>
          <p><em>Please do not reply to this e-mail as we are not able to respond to messages sent to this mailbox.</em></p>
          <p>&#xA0;</p>

          <p>Dear guest,</p>

          <p>You are invited by <xsl:value-of select="$gastheer"/> to visit the AkzoNobel Meeting Center, Amsterdam. We are pleased to confirm the details of your visit.</p>

          <p>BOOKING DETAILS</p>

          <p>
            <table border="0" cellpadding="1" cellspacing="0" width="100%">
            <xsl:choose>
              <xsl:when test="rsv_ruimte/van/datum!=''">
                <tr><td width="150">Date visit:</td><td><xsl:value-of select="rsv_ruimte/van/datum"/></td></tr>
                <tr><td>Start time visit:</td><td><xsl:value-of select="rsv_ruimte/van/tijd"/></td></tr>
                <tr><td>End time visit:</td><td><xsl:value-of select="rsv_ruimte/tot/tijd"/></td></tr>
                <tr><td>Meeting room:</td><td><xsl:value-of select="rsv_ruimte/res_ruimte/nr"/></td></tr>
              </xsl:when>
              <xsl:otherwise>
                <tr><td width="150">Date visit:</td><td><xsl:value-of select="bezoeker/afspraak/datum/datum"/></td></tr>
                <tr><td>Start time visit:</td><td><xsl:value-of select="bezoeker/afspraak/datum/tijd"/></td></tr>
                <tr><td>End time visit:</td><td><xsl:value-of select="bezoeker/afspraak/eind/tijd"/></td></tr>
              </xsl:otherwise>
            </xsl:choose>
              <tr><td>Parking space:</td><td>
                <xsl:choose>
                  <xsl:when test="$nrOfpark=0">
                    No parking space is available, please
                      <xsl:element name="a">
                        <xsl:attribute name="href">https://www.akzonobel.com/system/images/AkzoNobel_mobility_options_tcm9-94331.pdf</xsl:attribute>
                        <xsl:attribute name="title">AkzoNobel website - mobility options</xsl:attribute>
                        click here
                      </xsl:element>
                    for travel information.
                  </xsl:when>
                  <xsl:otherwise>
                    We have reserved a parking space for you,
                      <xsl:element name="a">
                        <xsl:attribute name="href">https://www.akzonobel.com/system/images/AkzoNobel_Routedescription_GB_tcm9-3820.pdf</xsl:attribute>
                        <xsl:attribute name="title">AkzoNobel website - route description</xsl:attribute>
                        click here
                      </xsl:element>
                    for a route description.
                  </xsl:otherwise>
                </xsl:choose>
              </td></tr>
            </table>
          </p>

          <p>The Meeting Center is part of a state-of–the-art sustainable building. It has many interesting features that you can discover as part of a site tour while visiting.</p>

          <p>If you arrive early, you are welcome in our hospitality area and to use the coffee corner and free WiFi.</p>

          <p>At AkzoNobel, safety is a top priority for employees and visitors. To ensure the building is secure, all guests must identify themselves with a driving license, passport or identity card. You can learn about AkzoNobel’s health and safety rules at
            <xsl:element name="a">
              <xsl:attribute name="href">https://www.akzonobel.com/system/images/AkzoNobel_safety_rules_tcm9-94334.pdf</xsl:attribute>
              <xsl:attribute name="title">AkzoNobel website - safety rules</xsl:attribute>
              our website</xsl:element>.</p>

          <p>Have pleasant visit and, if you have any questions, please ask one of our hosts to assist you.</p>

          <p>We look forward to welcoming you at the Meeting Center.</p>

          <p>Regards,</p>

          <p>AkzoNobel Amsterdam</p>

          <p>
            <table border="0" cellpadding="1" cellspacing="0" width="100%">
              <tr><td width="100">E-mail:</td><td>
                <xsl:element name="a">
                  <xsl:attribute name="href">mailto:NL_AMB_Service_Center@akzonobel.com</xsl:attribute>
                  <xsl:attribute name="title">email us</xsl:attribute>
                  NL_AMB_Service_Center@akzonobel.com</xsl:element></td></tr>
              <tr><td>Telephone:</td><td>+31 88 969 7974</td></tr>
              <tr><td>Address:</td><td>Christian Neefestraat 2<br/>1077 WW  AMSTERDAM</td></tr>
            </table>
          </p>
        </body>
      </html>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-imports/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="reservering" mode="include">
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
    <TR>
      <TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"/>
      <TD>
        <xsl:choose>
           <xsl:when test="$srtnotificatiecode='RESDEL' and verwijder">
            <table>
              <tr>
                <td height="20"/>
              </tr>
              <tr>
                <td class="caption" style="color: red"><xsl:value-of select="//lcl/RES/annulering"/></td>
              </tr>
            </table>
          </xsl:when>
        </xsl:choose>
          <!-- Bevestiging reservering -->
          <!-- Ook tonen voor verwijderde reserveringen -->

          <!-- De algemene gegevens van de deelreservering met het laagste volgnummer worden gebruikt als referentie gegevens! -->
          <xsl:variable name="min_volgnr">
            <xsl:value-of select="//reservering/rsv_ruimte/volgnr[not(. &gt; //reservering/rsv_ruimte/volgnr)]"/>
          </xsl:variable>

      <xsl:choose>
        <xsl:when test="$srtnotificatiecode='RESNEW' and rsv_ruimte[volgnr=$min_volgnr]/res_ruimte/plaats/regio/district/locatie/key=201">
          <p><em>Please do not reply to this e-mail as we are not able to respond to messages sent to this mailbox.</em></p>

          <p>Dear colleague,</p>

          <p>Thank you for choosing the AkzoNobel Meeting Center for your meeting. We are pleased to confirm your reservation. Please follow the instructions below if you wish to register your guests or require any additional services.</p>

          <p>BOOKING DETAILS</p>

          <p>
            <table border="0" cellpadding="1" cellspacing="0" width="100%">
              <tr>
                <td width="200">Booking reference number:</td>
                <td>
                  <xsl:choose>
                    <xsl:when test="@content='complete'"><xsl:value-of select="key"/></xsl:when>
                    <xsl:otherwise><xsl:value-of select="key"/>/<xsl:value-of select="rsv_ruimte/volgnr"/></xsl:otherwise>
                  </xsl:choose>
                </td>
              </tr>
              <tr><td>Meeting/event:</td><td><xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/omschrijving)!=''"><xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/omschrijving"/></xsl:if>&#xA0;</td></tr>
              <tr><td>Total attendees:</td><td><xsl:value-of select="rsv_ruimte/bezoekers"/></td></tr>
              <tr><td>Date meeting:</td><td><xsl:value-of select="rsv_ruimte/van/datum"/></td></tr>
              <tr><td>Start time meeting:</td><td><xsl:value-of select="rsv_ruimte/van/tijd"/></td></tr>
              <tr><td>End time meeting:</td><td><xsl:value-of select="rsv_ruimte/tot/tijd"/></td></tr>
              <tr><td>Meeting room:</td><td><xsl:value-of select="rsv_ruimte/res_ruimte/nr"/></td></tr>
            </table>
          </p>

          <p>
            Please use
            <xsl:element name="a">
              <xsl:attribute name="href">http://facilitor.akzonobel.intra/?<xsl:value-of select="/facilitor/bookmarks/reservering"/><xsl:value-of select="rsv_ruimte/key"/></xsl:attribute>
              <xsl:attribute name="title">Open in FACILITOR</xsl:attribute>
              this link
            </xsl:element>
            to indicate which of your guests will need to be registered and/or require a parking space, or whether any additional services (coffee, lunch, etc.) are required.
          </p>

          <p>If you have any questions regarding this reservation, or if we can be of further service, please contact the Service Center by e-mail or by telephone.</p>

          <p>We look forward to welcoming you.</p>

          <p>Regards,</p>

          <p>Service Center Amsterdam</p>

          <p>E-mail: NL_AMB_Service_Center@akzonobel.com<br/>
          Telephone: +31 88 969 7974</p>

        </xsl:when>
        <xsl:otherwise>
          <table border="0" bordercolor="#ffffff" width="100%">
            <tr>
              <td class="caption" valign="top" colspan="2">
                <xsl:choose>
                  <xsl:when test="@content='complete'"><xsl:value-of select="//lcl/RES/reservering"/>&#xA0;<xsl:value-of select="key"/><br/></xsl:when>
                  <xsl:otherwise><xsl:value-of select="//lcl/RES/deelreservering"/>&#xA0;<xsl:value-of select="key"/> / <xsl:value-of select="$min_volgnr"/><br/></xsl:otherwise>
                </xsl:choose>
                <xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/omschrijving)!=''">(<xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/omschrijving"/>)</xsl:if>&#xA0;</td>
            </tr>
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/FAC/aanvrager"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full"/></td>
            </tr>
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/FAC/e-mail"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/email"/></td>
            </tr>
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/FAC/locatie"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
            </tr>
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/FAC/afdeling"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/afdeling/omschrijving"/></td>
            </tr>
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/RES/gastheer_vrouw"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full"/></td>
            </tr>
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/FAC/kostenplaats"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr"/>&#xA0;
                <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/omschrijving"/>
              </td>
            </tr>
           <xsl:if test="$srtnotificatiecode='RESDEL'">
            <tr>
              <td width="20%" class="label"><xsl:value-of select="//lcl/RES/begintijd"/></td>
              <td width="80%" class="value">: <xsl:value-of select="rsv_ruimte/van/datum"/>&#xA0;<xsl:value-of select="rsv_ruimte/van/tijd"/></td>
            </tr>
           </xsl:if>
            <tr>
              <td height="30px"/>
            </tr>
            <xsl:if test="rsv_ruimte[volgnr=$min_volgnr]/contact_user/key!=ingevoerd_user/key">
              <tr>
                <td width="20%" class="label"><xsl:value-of select="//lcl/RES/behandeld_door"/></td>
                <td width="80%" class="value">: <xsl:value-of select="ingevoerd_user/naam_full"/></td>
              </tr>
              <tr>
                <td height="30px"/>
              </tr>
            </xsl:if>
            <tr>
              <td colspan="2" class="tekst">
                <xsl:choose>
                  <xsl:when test="$srtnotificatiecode='RESNEW'"/>
                  <xsl:when test="$srtnotificatiecode='RESDEL'"><xsl:value-of select="//lcl/RES/reservering_vervallen"/></xsl:when>
                  <xsl:otherwise>
                    <xsl:call-template name="res_begintext"/>
                  </xsl:otherwise>
                </xsl:choose>
              </td>
            </tr>
              <xsl:choose>
                <xsl:when test="$srtnotificatiecode!='RESDEL'">
                  <tr>
                    <td height="10px"/>
                  </tr>
                  <tr>
                    <td class="tekstkop" colspan="2" style="text-decoration:underline"><xsl:value-of select="//lcl/RES/reserveringsgegevens"/></td>
                  </tr>
                  <tr>
                    <td height="5px"/>
                  </tr>
                  <xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/opmerking)!=''">
                    <tr>
                      <td colspan="2" class="label"><xsl:value-of select="//lcl/FAC/opmerking"/></td>
                    </tr>
                    <tr>
                      <td colspan="2" class="value">
                        <xsl:call-template name="linebreaks">
                          <xsl:with-param name="string" select="rsv_ruimte[volgnr=$min_volgnr]/opmerking"/>
                        </xsl:call-template>
                      </td>
                    </tr>
                    <tr>
                      <td height="5px"/>
                    </tr>
                  </xsl:if>
                  <tr>
                    <td colspan="2">
                      <table cellpadding="0" cellspacing="0" border="1" bordercolor="#000000" frame="box">
                        <!-- rsv_ruimte -->
                        <xsl:for-each select="rsv_ruimte">
                          <xsl:sort select="van/timestamp"/>
                          <xsl:call-template name="rsv_ruimte">
                            <xsl:with-param name="min_volgnr" select="$min_volgnr"/>
                          </xsl:call-template>
                        </xsl:for-each>
                        <!-- totaal reservering -->
                        <tr>
                          <td height="10px" style="border-style:solid;border-width:0px;"/>
                        </tr>
                        <tr>
                          <td class="tekstkop" align="right" colspan="2" style="border-width:0px;"><xsl:value-of select="//lcl/RES/totaalprijs_reservering"/>:</td>
                          <td class="tekstkop" style="text-align:right;border-width:0px;">
                            <xsl:call-template name="europrijs">
                                <xsl:with-param name="prijs" select="sum(rsv_ruimte/prijs[string(number(.))!='NaN'])+sum(rsv_ruimte/rsv_deel/prijs[string(number(.))!='NaN'])+sum(rsv_ruimte/rsv_artikel/prijs[string(number(.))!='NaN'])"/>
                            </xsl:call-template>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                  <xsl:call-template name="res_endtext">
                    <xsl:with-param name="min_volgnr" select="$min_volgnr"/>
                  </xsl:call-template>
              </xsl:when>
            </xsl:choose>
          </table>
        </xsl:otherwise>
      </xsl:choose>
          <!-- Bevestiging reservering -->
      </TD>
      <TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
    </TR>
  </TABLE>
</xsl:template>

<xsl:template match="reservering" mode="full">
	<xsl:choose>
		<xsl:when test="$mode='summary'"></xsl:when>
		<xsl:when test="$srtnotificatiecode = 'OUTLOOK'">
			<xsl:apply-templates select="." mode="outlook"/>
		</xsl:when>
	<xsl:otherwise>
		<html>
			<xsl:comment>================================ RESERVERINGEN ==============================</xsl:comment>
			<xsl:comment>Facilitor new style default XSL template for reservering</xsl:comment>
			<xsl:call-template name="htmlhead"/>
			<xsl:element name="body">
				<xsl:if test="$mode!='email'">
					<xsl:attribute name="onload">window.print();</xsl:attribute>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="not(boolean(rsv_ruimte))">
						<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
						<TR>
							<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"/>
							<TD>
								<table>
								<tr>
									<td height="20"/>
								</tr>
								<tr>
									<td class="caption"><xsl:value-of select="/facilitor/lcl/RES/annulering"/></td>
								</tr>
								<tr>
									<td>
										<b>Op uw naam heeft een reservering<xsl:if test="key!=''"> onder nummer <xsl:value-of select="key"/></xsl:if> plaatsgevonden, die vervolgens direct weer is verwijderd.</b>
										<br/>
										<br/>Deze reservering wordt niet verder verwerkt.<br/><br/>
										Wilt u toch een reservering aanmaken voeg dan een nieuwe reservering toe waarbij een zaal, voorziening of artikel gereserveerd is.
									</td>
								</tr>
								</table>
							</TD>
							<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
						</TR>
						</TABLE>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="./rsv_ruimte/res_activiteit/key = '41'">
								<xsl:call-template name="pageheader_small_logo"/>
								<xsl:apply-templates select="." mode="ritten"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="pageheader"/>
								<xsl:apply-templates select="." mode="include"/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:element>
		</html>
	</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template match="reservering" mode="ritten">
	<xsl:for-each select="rsv_ruimte">
	<xsl:sort select="volgnr" data-type="number"/>
		<xsl:apply-templates select="." mode="rit">
			<xsl:with-param name="p_key" select="../key"/>
			<xsl:with-param name="p_pos" select="position()"/>
			<xsl:with-param name="p_last" select="last()"/>
		</xsl:apply-templates>
	</xsl:for-each>
</xsl:template>

<xsl:template match="rsv_ruimte" mode="rit">
	<xsl:param name="p_key"/>
	<xsl:param name="p_pos"/>
	<xsl:param name="p_last"/>
	<xsl:variable name="l_kostenplaats">
		<xsl:value-of select="kostenplaats/nr"/>&#160;<xsl:value-of select="kostenplaats/omschrijving"/>
	</xsl:variable>

	<!-- Bevestiging reservering -->
	<table border="0" bordercolor="#ffffff" width="100%">
		<xsl:call-template name="ritbon">
			<xsl:with-param name="p_key" select="$p_key"/>
			<xsl:with-param name="p_volgnr" select="volgnr"/>
			<xsl:with-param name="p_dag"/>
			<xsl:with-param name="p_datum" select="van/datum"/>
			<xsl:with-param name="p_vertrek_tijd" select="van/tijd"/>
			<xsl:with-param name="p_std_vertrek_plaats" select="kenmerk[@key=82]"/>
			<xsl:with-param name="p_afw_vertrek_plaatsnaam" select="kenmerk[@key=85]"/>
			<xsl:with-param name="p_afw_vertrek_adres" select="kenmerk[@key=86]"/>
			<xsl:with-param name="p_afw_vertrek_tijd" select="kenmerk[@key=87]"/>
			<xsl:with-param name="p_std_via_plaats" select="kenmerk[@key=124]"/>
			<xsl:with-param name="p_afw_via_plaatsnaam" select="kenmerk[@key=126]"/>
			<xsl:with-param name="p_afw_via_adres" select="kenmerk[@key=125]"/>
			<xsl:with-param name="p_via_tijd" select="kenmerk[@key=127]"/>
			<xsl:with-param name="p_std_aankomst_plaats" select="kenmerk[@key=89]"/>
			<xsl:with-param name="p_afw_aankomst_plaatsnaam" select="kenmerk[@key=92]"/>
			<xsl:with-param name="p_afw_aankomst_adres" select="kenmerk[@key=93]"/>
			<xsl:with-param name="p_afw_aankomst_tijd" select="kenmerk[@key=94]"/>
			<xsl:with-param name="p_chauffeur" select="res_ruimte/nr"/>
			<xsl:with-param name="p_auto" select="rsv_deel/res_deel/deel/omschrijving"/>
			<xsl:with-param name="p_gastheer" select="host_user/naam_full"/>
			<xsl:with-param name="p_kostenplaats" select="$l_kostenplaats"/>
			<xsl:with-param name="p_opmerking" select="opmerking"/>
		</xsl:call-template>

		<xsl:call-template name="res_rit_endtext">
			<xsl:with-param name="p_pos" select="$p_pos"/>
			<xsl:with-param name="p_last" select="$p_last"/>
		</xsl:call-template>
	</table>
</xsl:template>

<xsl:template name="ritbon">
	<xsl:param name="p_key"/>
	<xsl:param name="p_volgnr"/>
	<xsl:param name="p_dag"/>
	<xsl:param name="p_datum"/>
	<xsl:param name="p_vertrek_tijd"/>
	<xsl:param name="p_std_vertrek_plaats"/>
	<xsl:param name="p_afw_vertrek_plaatsnaam"/>
	<xsl:param name="p_afw_vertrek_adres"/>
	<xsl:param name="p_afw_vertrek_tijd"/>
	<xsl:param name="p_std_via_plaats"/>
	<xsl:param name="p_afw_via_plaatsnaam"/>
	<xsl:param name="p_afw_via_adres"/>
	<xsl:param name="p_via_tijd"/>
	<xsl:param name="p_std_aankomst_plaats"/>
	<xsl:param name="p_afw_aankomst_plaatsnaam"/>
	<xsl:param name="p_afw_aankomst_adres"/>
	<xsl:param name="p_afw_aankomst_tijd"/>
	<xsl:param name="p_chauffeur"/>
	<xsl:param name="p_auto"/>
	<xsl:param name="p_gastheer"/>
	<xsl:param name="p_kostenplaats"/>
	<xsl:param name="p_opmerking"/>
	<tr>
		<td width="10%" class="tekstkop">Ritopdracht</td>
		<td colspan="2" width="90%" class="value">: <xsl:value-of select="$p_key"/> / <xsl:value-of select="$p_volgnr"/></td>
	</tr>
	<tr>
		<td width="10%" class="label">Vervoerdatum</td>
		<td colspan="2" width="90%" class="value">: <xsl:value-of select="$p_dag"/>&#160;<xsl:value-of select="$p_datum"/></td>
	</tr>
	<tr>
		<td width="10%" class="label">Starttijd</td>
		<td colspan="2" width="90%" class="value">:
			<xsl:call-template name="starttijd">
				<xsl:with-param name="p_volgnr" select="$p_volgnr"/>
				<xsl:with-param name="p_vertrek_tijd" select="$p_vertrek_tijd"/>
				<xsl:with-param name="p_afw_vertrek_tijd" select="$p_afw_vertrek_tijd"/>
			</xsl:call-template>
		</td>
	</tr>
	<tr>
		<!-- Van, oftewel de vertrekplaats -->
		<td width="10%" class="label">Van</td>
		<td colspan="2" width="90%" class="value">: <b>
			<xsl:call-template name="vertrekplaats">
				<xsl:with-param name="p_std_vertrek_plaats" select="$p_std_vertrek_plaats"/>
				<xsl:with-param name="p_afw_vertrek_plaatsnaam" select="$p_afw_vertrek_plaatsnaam"/>
				<xsl:with-param name="p_afw_vertrek_adres" select="$p_afw_vertrek_adres"/>
			</xsl:call-template></b>
		</td>
	</tr>
	<xsl:if test="$p_std_via_plaats!='' or $p_afw_via_plaatsnaam!=''">
		<tr>
			<!-- Via, oftewel het tussenstation -->
			<td width="10%" class="label">Via</td>
			<td colspan="2" width="90%" class="value">: <b>
				<xsl:call-template name="vertrekplaats">
					<xsl:with-param name="p_std_vertrek_plaats" select="$p_std_via_plaats"/>
					<xsl:with-param name="p_afw_vertrek_plaatsnaam" select="$p_afw_via_plaatsnaam"/>
					<xsl:with-param name="p_afw_vertrek_adres" select="$p_afw_via_adres"/>
				</xsl:call-template></b>
				<xsl:if test="$p_via_tijd!=''">
					&#160;(<xsl:value-of select="$p_via_tijd"/>)
				</xsl:if>
			</td>
		</tr>
	</xsl:if>
	<tr>
		<!-- Naar, oftewel de plaats van bestemming -->
		<td width="10%" class="label">Naar</td>
		<td colspan="2" width="90%" class="value">: <b>
			<xsl:call-template name="vertrekplaats">
				<xsl:with-param name="p_std_vertrek_plaats" select="$p_std_aankomst_plaats"/>
				<xsl:with-param name="p_afw_vertrek_plaatsnaam" select="$p_afw_aankomst_plaatsnaam"/>
				<xsl:with-param name="p_afw_vertrek_adres" select="$p_afw_aankomst_adres"/>
			</xsl:call-template></b>
		</td>
	</tr>
	<tr>
		<td colspan="3" width="60%" height="5px"/>
	</tr>
	<tr>
		<td width="10%" class="label">Chauffeur</td>
		<td width="30%" class="value">: <xsl:value-of select="$p_chauffeur"/></td>
		<td width="40%" rowspan="5">
			<table width="100%" cellpadding="3" cellspacing="0" border="1" bordercolor="#000000" frame="box">
			<tr>
				<td colspan="2" class="label"><b>In te vullen door chauffeur</b></td>
			</tr>
			<tr>
				<td width="40%" class="label"><b>Gereden KM</b></td>
				<td class="label"> </td>
			</tr>
			<tr>
				<td width="40%" class="label"><b>Starttijd</b></td>
				<td class="label"> </td>
			</tr>
			<tr>
				<td width="40%" class="label"><b>Eindtijd</b></td>
				<td class="label"> </td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td width="10%" class="label">Auto</td>
		<td width="40%" class="value">: <xsl:value-of select="$p_auto"/></td>
	</tr>
	<tr>
		<td width="10%" class="label">Voor</td>
		<td width="40%" class="value">: <xsl:value-of select="$p_gastheer"/></td>
	</tr>
	<tr>
		<td width="10%" class="label">Kostenplaats</td>
		<td width="40%" class="value">: <xsl:value-of select="$p_kostenplaats"/></td>
	</tr>
	<tr>
		<td width="50%" colspan="2" height="10px"></td>
	</tr>
	<tr>
		<td colspan="3" class="tekstkop">Toelichting:</td>
	</tr>
	<xsl:if test="string($p_opmerking) !=''">
		<tr>
			<td colspan="3" height="60px" class="value" style="border:solid;border-width:1px;border-color:#000000">
				<xsl:call-template name="linebreaks">
					<xsl:with-param name="string" select="string($p_opmerking)"/>
				</xsl:call-template>
			</td>
		</tr>
	</xsl:if>
	<!-- Bevestiging reservering -->
</xsl:template>

<xsl:template name="res_rit_endtext">
	<xsl:param name="p_pos"/>
	<xsl:param name="p_last"/>
	<tr>
		<xsl:choose>
			<xsl:when test="$p_pos = $p_last">
			</xsl:when>
			<xsl:when test="$p_pos mod 2 = 1">
				<td colspan="3" height="80px" class="tekst">&#xA0;</td>
			</xsl:when>
			<xsl:otherwise>
				<td colspan="3" height="240px" class="tekst">&#xA0;</td>
			</xsl:otherwise>
		</xsl:choose>
	</tr>
</xsl:template>

<xsl:template name="starttijd">
	<xsl:param name="p_vertrek_tijd"/>
	<xsl:param name="p_afw_vertrek_tijd"/>
	<xsl:choose>
		<xsl:when test="string-length(normalize-space($p_afw_vertrek_tijd)) = 0">
			<xsl:value-of select="$p_vertrek_tijd"/>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="$p_afw_vertrek_tijd"/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template name="vertrekplaats">
	<xsl:param name="p_std_vertrek_plaats"/>
	<xsl:param name="p_afw_vertrek_plaatsnaam"/>
	<xsl:param name="p_afw_vertrek_adres"/>
	<xsl:choose>
		<xsl:when test="(string-length(normalize-space($p_afw_vertrek_plaatsnaam)) = 0) and (string-length(normalize-space($p_afw_vertrek_adres)) = 0)">
			<xsl:value-of select="$p_std_vertrek_plaats"/>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="$p_afw_vertrek_plaatsnaam"/>, <xsl:value-of select="$p_afw_vertrek_adres"/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>


<!-- Zelfde als in default.xsl (5.3.1), behalve: flexkenmerken type label verbergen -->
<xsl:template name="rsv_ruimte">
    <xsl:param name="min_volgnr"/>
    <tr>
      <xsl:choose>
        <xsl:when test="res_ruimte!=''">
          <td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
            <br/><xsl:value-of select="van/datum"/>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="//lcl/RES/deelreservering"/>  <xsl:value-of select="volgnr"/>&#xA0;
            <xsl:if test="string(res_activiteit/omschrijving)!=''">(<xsl:value-of select="res_activiteit/omschrijving"/>)&#xA0;</xsl:if>
            <xsl:value-of select="res_ruimte/plaats/regio/district/locatie/omschrijving"/>

          </td>
        </xsl:when>
        <!-- "roomservice" -->
        <xsl:otherwise>
          <td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
            <br/><xsl:value-of select="van/datum"/><xsl:if test="string(van/datum)!=string(tot/datum)">&#xA0;-&#xA0;<xsl:value-of select="tot/datum"/></xsl:if>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="//lcl/RES/deelreservering"/>  <xsl:value-of select="volgnr"/>&#xA0;
            <xsl:value-of select="plaats/plaatsaanduiding"/>
          </td>
        </xsl:otherwise>
      </xsl:choose>
    </tr>
    <xsl:if test="string(omschrijving)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/omschrijving)">
      <tr>
        <td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/omschrijving"/>:</td>
        <td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
          <xsl:value-of select="omschrijving"/>
        </td>
      </tr>
    </xsl:if>
    <xsl:if test="string(opmerking)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/opmerking)">
      <tr>
        <td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/opmerking"/>:</td>
        <td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
          <xsl:call-template name="linebreaks">
            <xsl:with-param name="string" select="opmerking"/>
          </xsl:call-template>
        </td>
      </tr>
    </xsl:if>
    <xsl:if test="string(contact_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full)">
      <tr>
        <td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/aanvrager"/>:</td>
        <td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
          <xsl:value-of select="contact_user/naam_full"/>/ <xsl:value-of select="contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
      </tr>
    </xsl:if>
    <xsl:if test="string(host_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full)">
      <tr>
        <td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/RES/gastheer_vrouw"/>:</td>
        <td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
          <xsl:value-of select="host_user/naam_full"/>
        </td>
      </tr>
    </xsl:if>
    <xsl:if test="string(kostenplaats/nr)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr)">
      <tr>
        <td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/kostenplaats"/>:</td>
        <td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
          <xsl:value-of select="kostenplaats/nr"/>&#xA0;<xsl:value-of select="kostenplaats/omschrijving"/></td>
      </tr>
    </xsl:if>
    <tr>
      <th><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
      <th><xsl:value-of select="//lcl/RES/aantal"/></th>
      <th style="text-align:right"><xsl:value-of select="//lcl/RES/prijs"/></th>
      <!--<th width="80">Datum</th>-->
      <th style="text-align:right"><xsl:value-of select="//lcl/RES/begintijd"/></th>
      <th style="text-align:right"><xsl:value-of select="//lcl/RES/eindtijd"/></th>
      <th><xsl:value-of select="//lcl/RES/status"/></th>
      <th><xsl:value-of select="//lcl/RES/opstelling"/></th>
    </tr>
    <xsl:if test="res_ruimte!=''">
      <tr>
        <td class="result" style="text-align:left"><xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
          <xsl:value-of select="res_ruimte/nr"/>
          <br/>(max. <xsl:value-of select="res_ruimte/bezoekers"/> <xsl:value-of select="//lcl/FAC/personen"/>)</td>
        <td class="result" style="text-align:left">
          <xsl:value-of select="bezoekers"/>&#xA0;<xsl:value-of select="//lcl/FAC/personen"/></td>
        <td class="result" style="text-align:right">
          <xsl:call-template name="europrijs">
            <xsl:with-param name="prijs" select="prijs"/>
          </xsl:call-template>
        </td>
        <!--<td class="result" style="text-align:right">
          <xsl:value-of select="van/datum"/>
        </td>-->
        <td class="result" style="text-align:right">
          <xsl:value-of select="van/tijd"/>
        </td>
        <td class="result" style="text-align:right">
          <xsl:value-of select="tot/tijd"/>
        </td>
        <td class="result" style="text-align:left">
          <xsl:value-of select="status_fo"/>
        </td>
        <td class="result" style="text-align:left">
          <xsl:value-of select="res_ruimte/opstelling"/>
        </td>
      </tr>
    </xsl:if>
    <!-- rsv_deel-lijst gesorteerd op van-tijd -->
    <xsl:for-each select="rsv_deel">
      <xsl:sort select="van/tijd"/>
      <tr>
        <td class="result"><xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
          <xsl:value-of select="res_deel/deel/omschrijving"/>
        </td>
        <td class="result">
          <xsl:value-of select="aantal"/>
        </td>
        <td class="result" style="text-align:right">
          <xsl:call-template name="europrijs">
            <xsl:with-param name="prijs" select="prijs"/>
          </xsl:call-template>
        </td>
        <!--<td class="result" style="text-align:right">
          <xsl:value-of select="van/datum"/>
        </td>-->
        <td class="result" style="text-align:right">
          <xsl:value-of select="van/tijd"/>
        </td>
        <td class="result" style="text-align:right">
          <xsl:value-of select="tot/tijd"/>
        </td>
      </tr>
    </xsl:for-each>
    <!-- rsv_artikel-lijst gesorteerd op van-tijd -->
    <xsl:for-each select="rsv_artikel">
      <xsl:sort select="levering/tijd"/>
      <tr>
        <td class="result">
          <xsl:value-of select="res_artikel/omschrijving"/>
        </td>
        <td class="result">
          <xsl:value-of select="aantal"/>
        </td>
        <td class="result" style="text-align:right">
          <xsl:call-template name="europrijs">
            <xsl:with-param name="prijs" select="prijs"/>
          </xsl:call-template>
        </td>
        <!--<td class="result" style="text-align:right">
          <xsl:value-of select="levering/datum"/>
        </td>-->
        <td class="result" style="text-align:right">
          <xsl:value-of select="levering/tijd"/>
        </td>
      </tr>
    </xsl:for-each>
    <!-- totaal per deelreservering -->
    <tr>
      <td class="tekst" colspan="2" style="border-style:solid;border-width:0px;"><xsl:value-of select="//lcl/RES/totaal_deelreservering"/></td>
      <td class="tekst" style="text-align:right;border-style:solid;border-width:0px;">
             <xsl:call-template name="europrijs">
               <xsl:with-param name="prijs" select="sum(prijs[string(number(.))!='NaN'])+sum(rsv_deel/prijs[string(number(.))!='NaN'])+sum(rsv_artikel/prijs[string(number(.))!='NaN'])"/>
             </xsl:call-template>
      </td>
    </tr>
    <!-- afspraak-lijst gesorteerd op naam -->
    <xsl:for-each select="afspraak/bezoeker">
      <xsl:sort select="naam"/>
      <xsl:choose>
        <xsl:when test="position() = 1">
          <tr>
            <td class="tekst" style="border-style:solid;border-width:0px;">
              <br/><xsl:value-of select="//lcl/BEZ/bezoekers"/></td>
          </tr>
          <tr>
            <th><xsl:value-of select="//lcl/FAC/naam"/></th>
            <th colspan="3"><xsl:value-of select="//lcl/FAC/bedrijf"/></th>
            <th colspan="4"><xsl:value-of select="//lcl/BEZ/parkeerplaats"/></th>
          </tr>
        </xsl:when>
      </xsl:choose>
      <tr>
        <td class="result">
          <xsl:value-of select="naam"/>
        </td>
        <td class="result" colspan="3">
          <xsl:value-of select="bedrijf"/>
        </td>
        <td class="result" colspan="4">
          <xsl:value-of select="deel/omschrijving"/>
        </td>
      </tr>
    </xsl:for-each>

    <!-- kenmerk -->
    <xsl:if test="kenmerk">
    <tr>
    <td colspan="5">
    <table>
      <xsl:for-each select="kenmerk[count(@xmlnode)=0]">
        <xsl:sort select="@volgnummer" data-type="number"/>
        <xsl:if test="(.!='' and @type!='L' and @type!='l' and @type!='Q')">
          <tr>
            <td class="label">
              <xsl:value-of select="@naam"/></td>
            <td class="value">
              : <xsl:value-of select="."/>
            </td>
          </tr>
        </xsl:if>
      </xsl:for-each>
    </table>
    </td>
    </tr>
    </xsl:if>

</xsl:template>


  <xsl:template name="qrc_ins_new_page">
    <xsl:param name="p_page"/>
    <xsl:param name="p_rows"/>
    <xsl:param name="p_cols"/>

    <table cellpadding="0" cellspacing="0" style="margin:0 0 0 2mm; padding:0">
    <tr>
      <td style="height: 1.7cm; width 4.5cm">&#160;</td>
      <td style="height: 1.7cm; width 5.5cm">&#160;</td>
      <td style="height: 1.7cm; width 4.5cm">&#160;</td>
      <td style="height: 1.7cm; width 5.5cm">&#160;</td>
    </tr>
    <xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
    <xsl:sort select="INS_DEEL_OMSCHRIJVING"/>
        <xsl:if test="position() &gt;= (($p_page - 1)*($p_rows*$p_cols)+1) and position() &lt;= ($p_page*($p_rows*$p_cols))">
            <xsl:if test="(position() mod $p_cols) = 0">
                <xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
                <xsl:call-template name="qrc_ins_new_tr">
                    <xsl:with-param name="p_pos" select="position() - $p_cols + 1"/>
                    <xsl:with-param name="p_cols" select="$p_cols"/>
                </xsl:call-template>
            </xsl:if>
            <xsl:if test="(position() = last()) and (position() mod $p_cols) != 0">
                <xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
                <xsl:call-template name="qrc_ins_new_tr">
                    <xsl:with-param name="p_pos" select="floor(position() div $p_cols) * $p_cols + 1"/>
                    <xsl:with-param name="p_cols" select="$p_cols"/>
                </xsl:call-template>
            </xsl:if>
        </xsl:if>
    </xsl:for-each>
    </table>
  </xsl:template>


  <xsl:template name="qrc_ins_new_tr">
    <xsl:param name="p_pos"/>
    <xsl:param name="p_cols"/>

    <tr height="4.2cm">
    <xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
    <xsl:sort select="INS_DEEL_OMSCHRIJVING"/>
      <xsl:if test="position() &gt;= $p_pos and position() &lt;= $p_pos + $p_cols - 1">
        <td style="text-align: center; vertical-align: top; margin:0;padding:0">
          <xsl:element name="img">
            <xsl:attribute name="style">height: 4.25cm; width: 4.25cm; margin:0cm; padding:0; border:none</xsl:attribute>
            <xsl:attribute name="src">
              ../../appl/shared/qrcode.asp?size=16&amp;text=/%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26ins_key%3D<xsl:value-of select="INS_DEEL_KEY"/>
            </xsl:attribute>
          </xsl:element>
        </td>
        <td style="text-align:left; vertical-align: top; margin:0;padding:0; font-size: 11pt; font-weight: bold">
          <xsl:element name="img">
            <xsl:attribute name="style">width: 5.2cm; margin: 0.5cm 0.65cm 0.2cm 0</xsl:attribute>
            <xsl:attribute name="src">
              ../../cust/akza/akzonobel.gif
            </xsl:attribute>
          </xsl:element>
          <br/><br/>
          &#160;&#160;&#160;<xsl:value-of select="INS_DEEL_OMSCHRIJVING"/><br/>
        </td>
      </xsl:if>
    </xsl:for-each>
    </tr>
  </xsl:template>


<xsl:template match="rapport">
	<html>
		<xsl:call-template name="facilitorstyles"/>

	    <xsl:if test="$srtnotificatiecode = 'CUST01'">
			<table width="100%" CLASS='DefResultsetTable'>
			<xsl:if test=" count(rapport_data/data_row) = 0">
				<tr><td>
					<center><b>Geen gegevens gevonden</b></center>
				</td></tr>
			</xsl:if>

			<tr>
				<td align="right" width="20%"><b>Sleutelkaart</b></td>
				<td align="left"  colspan="4">Datum: <xsl:value-of select="//header/dateTime"/></td>
				<td/>
			</tr>
			<tr height="20px">
				<td colspan="5"/>
			</tr>
			<tr>
				<td align="right"><b>Personeelsnr.:</b></td>
				<td align="left" colspan="4"><xsl:value-of select="rapport_data/data_row/PERSONEELSNR"/></td>
			</tr>
			<tr>
				<td align="right"><b>Naam:</b></td>
				<td align="left" colspan="4"><xsl:value-of select="rapport_data/data_row/FCLT_F_BEZITTER"/></td>
				<td/>
				<td/>
				<td/>
			</tr>
			<tr>
				<td align="right"><b>Afdeling:</b></td>
				<td align="left" colspan="4"><xsl:value-of select="rapport_data/data_row/AFDELING"/></td>
				<td/>
				<td/>
			</tr>
			<tr>
				<td align="right"><b>Telefoon:</b></td>
				<td align="left" colspan="4"><xsl:value-of select="rapport_data/data_row/TELEFOONNR"/></td>
				<td/>
				<td/>
			</tr>
			<tr height="20px">
				<td colspan="5"/>
			</tr>
			<tr>
				<td colspan="5">
				Volgens ons systeem bent u in het bezit van de volgende sleutels. Bent u van mening dat het overzicht niet klopt neem dan even contact op met de sleutelwerkgroep.
				</td>
			<tr height="20px">
				<td colspan="5"/>
			</tr>
			</tr>

			<tr>
				<th width="15%">Sluitplan</th>
				<th width="15%">Soort</th>
				<th width="15%">Sleutelnr.</th>
				<th width="15%">Datum</th>
				<th width="40%">Opmerking</th>
			</tr>
			<xsl:for-each select="rapport_data/data_row">
				<tr>
					<td width="15%"><xsl:value-of select="FCLT_F_SLUITPLAN"/></td>
					<td width="15%"><xsl:value-of select="SOORT"/></td>
					<td width="15%"><xsl:value-of select="SLEUTELNR"/></td>
					<td width="15%"><xsl:value-of select="DATUM"/></td>
					<td width="40%"><xsl:value-of select="OPMERKING"/></td>
				</tr>
			</xsl:for-each>
			<tr height="20px">
				<td colspan="5"/>
			</tr>
			<tr>
				<td colspan="4">Het verlies van een sleutel, of de vermindering van de bruikbaarheid moet direct gemeld worden bij de bedrijfsbeveiliging!<br/>
				Overdracht mag <u>UITSLUITEND</u> via de bedrijfsbeveiliging plaatsvinden!</td>
			</tr>
				<tr height="20px">
				<td colspan="5"/>
			</tr>
			<tr>
				<td align="right" colspan="5"><b>Sleutelwerkgroep ALF-VS</b></td>
			</tr>
			<tr>
				<td align="right"><b>Telefoon:</b></td>
				<td align="left">3500</td>
				<td/>
				<td/>
				<td/>
			</tr>
			<tr>
				<td align="right"><b>E-mail:</b></td>
				<td align="left" colspan="4">Meldkamer Beveiliging ALF_VS</td>

			</tr>
			</table>
	    </xsl:if>

	    <xsl:if test="@view = 'AKZA_V_RIT_GEPLANDE_RITTEN'">
			<xsl:for-each select="rapport_data/data_row">
		    <xsl:sort select="DATUM"/>
				<!-- Bevestiging reservering -->
				<xsl:if test="position() != 1">
					<div style="page-break-before:always; margin:0; padding:0; height:0">&#160;</div>
				</xsl:if>
				<xsl:if test="$mode = 'print'">
					<xsl:call-template name="pageheader_small_logo"/>
				</xsl:if>
				<table border="0" bordercolor="#ffffff" width="100%">

				<xsl:call-template name="ritbon">
					<xsl:with-param name="p_key" select="HIDE_F_RESERVERINGKEY"/>
					<xsl:with-param name="p_volgnr" select="HIDE_F_RESERVERINGVOLGNR"/>
					<xsl:with-param name="p_dag" select="DAG"/>
					<xsl:with-param name="p_datum" select="concat(substring(DATUM,9,2),'-',substring(DATUM,6,2),'-',substring(DATUM,1,4))"/>
					<xsl:with-param name="p_vertrek_tijd" select="STARTTIJD"/>
					<xsl:with-param name="p_std_vertrek_plaats" select="VAN"/>
					<xsl:with-param name="p_afw_vertrek_plaatsnaam"/>
					<xsl:with-param name="p_afw_vertrek_adres"/>
					<xsl:with-param name="p_afw_vertrek_tijd"/>
					<xsl:with-param name="p_std_via_plaats" select="VIA"/>
					<xsl:with-param name="p_afw_via_plaatsnaam"/>
					<xsl:with-param name="p_afw_via_adres"/>
					<xsl:with-param name="p_via_tijd" select="VIATIJD"/>
					<xsl:with-param name="p_std_aankomst_plaats" select="NAAR"/>
					<xsl:with-param name="p_afw_aankomst_plaatsnaam"/>
					<xsl:with-param name="p_afw_aankomst_adres"/>
					<xsl:with-param name="p_afw_aankomst_tijd"/>
					<xsl:with-param name="p_chauffeur" select="FCLT_F_CHAUFFEUR"/>
					<xsl:with-param name="p_auto" select="FCLT_F_AUTO"/>
					<xsl:with-param name="p_gastheer" select="HIDE_F_GASTHEERVROUW"/>
					<xsl:with-param name="p_kostenplaats" select="FCLT_F_KOSTENPLAATS"/>
					<xsl:with-param name="p_opmerking" select="TOELICHTINGEN"/>
				</xsl:call-template>

				</table>
			</xsl:for-each>
		</xsl:if>

	    <xsl:if test="@view = 'AKZA_V_EXTRAPHONE'">
			<table width="100%" CLASS='DefResultsetTable'>

			<tr>
				<th class="DefResultsetHeading">GROEP</th>
				<th class="DefResultsetHeading">OMSCHRIJVING</th>
				<th class="DefResultsetHeading">PLAATS</th>
				<th class="DefResultsetHeading">BEREIKEN</th>
				<th class="DefResultsetHeading">NUMMER/EMAIL</th>
			</tr>

			<xsl:if test=" count(rapport_data/data_row) = 0">
				<tr><td>
					<center><b>Geen gegevens gevonden</b></center>
				</td></tr>
			</xsl:if>

			<xsl:for-each select="rapport_data/data_row">
			<xsl:sort select="FCLT_F_GROEP"/>
			<xsl:sort select="FCLT_F_OMSCHRIJVING"/>
			<xsl:sort select="FCLT_F_PLAATS"/>
			<xsl:sort select="FCLT_F_BEREIKEN"/>

				<tr>
					<td class="DRR"><xsl:value-of select="FCLT_F_GROEP"/></td>
					<td class="DRR"><xsl:value-of select="FCLT_F_OMSCHRIJVING"/></td>
					<td class="DRR"><xsl:value-of select="FCLT_F_PLAATS"/></td>
					<td class="DRR"><xsl:value-of select="FCLT_F_BEREIKEN"/></td>
					<td class="DRR">
					<xsl:choose>
						<xsl:when test="(contains(NUMMER_EMAIL, '@') and $mode != 'print')">
							<xsl:element name="A">
								<xsl:attribute name="href">mailto:<xsl:value-of select="NUMMER_EMAIL"/></xsl:attribute>
								<xsl:value-of select="NUMMER_EMAIL"/>
							</xsl:element>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="NUMMER_EMAIL"/>
						</xsl:otherwise>
					</xsl:choose>
					</td>
				</tr>

			</xsl:for-each>
			</table>
	    </xsl:if>

      <xsl:if test="@view = 'AKZA_V_INS_QRC'">
        <xsl:variable name="p_rows" select="6"/>
        <xsl:variable name="p_cols" select="2"/>
        <!--
        <style>td {border: 1px solid #888; }</style>
        <table border="0" width="100%" cellpadding="2">
            <tr height="300"><td align="center"><span style="font-size:24pt;color:#000000">QR Code</span></td></tr>
            <tr height="300"><td align="center"><span style="font-size:24pt;color:#000000">Generator</span></td></tr>
        </table>
        -->

        <xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
        <xsl:sort select="INS_DEEL_OMSCHRIJVING"/>
           <xsl:if test="position() mod ($p_rows * $p_cols) = 0">
                <xsl:comment>=== Na elke p_rows*p_cols records (m*n passen op 1 A4) =====</xsl:comment>
		            <xsl:call-template name="qrc_ins_new_page">
		                <xsl:with-param name="p_page" select="floor(position() div ($p_rows * $p_cols))"/>
		                <xsl:with-param name="p_rows" select="$p_rows"/>
		                <xsl:with-param name="p_cols" select="$p_cols"/>
		            </xsl:call-template>
                <div style="page-break-after:always; margin:0;padding:0">&#160;</div>
	         </xsl:if>
	         <xsl:if test="position() = last() and position() mod ($p_rows * $p_cols) != 0 ">
                <xsl:comment>=== De laatste paar, zijn minder dan m*n =====</xsl:comment>
		            <xsl:call-template name="qrc_ins_new_page">
		                <xsl:with-param name="p_page" select="floor((position() div ($p_rows * $p_cols))+1)"/>
		                <xsl:with-param name="p_rows" select="$p_rows"/>
		                <xsl:with-param name="p_cols" select="$p_cols"/>
		            </xsl:call-template>
	         </xsl:if>
        </xsl:for-each>
      </xsl:if>

	</html>
</xsl:template>


<xsl:template name="prs_begintext">
	<xsl:choose>
		<xsl:when test="$srtnotificatiecode = 'PRSINF'">
			<tr>
				<td colspan="2" class="tekst">Binnen FACILITOR is een nieuw personeelslid toegevoegd. Hieronder zijn de belangrijkste gegevens uitgelijst.
					Via
					<xsl:element name="a">
						<xsl:attribute name="href">
							<!--<xsl:text disable-output-escaping="yes">-->http://serviceweb.ahq.intra/?Jumpto=appl/prs/prs_perslid.asp?key=<xsl:value-of select="key"/><!--</xsl:text>-->
						</xsl:attribute>
					deze link</xsl:element>
					kunt u verdere persoonsgegevens opvragen binnen FACILITOR (mits u hiervoor voldoende rechten heeft).
					<br/><br/>
					De algemene gegevens van deze persoon zijn:
				</td>
			</tr>
			<tr><td><br/></td></tr>
		</xsl:when>
		<xsl:when test="$srtnotificatiecode = 'CUST02'">
			<tr>
				<td colspan="2" class="tekst">Onderstaand persoon is uit dienst of gaat binnenkort uit dienst. Dit bericht is bedoeld om u op de hoogte te stellen, zodat u benodigde vervolgacties kunt ondernemen.
					Deze persoon is of wordt uit FACILITOR verwijderd, waardoor verdere persoonsgegevens daar niet meer aanwezig zullen zijn. Hiervoor verwijzen wij u naar het secretariaat van de betreffende afdeling.
					<br/><br/>
					De algemene gegevens van de persoon zijn:
				</td>
			</tr>
			<tr><td><br/></td></tr>
		</xsl:when>
		<xsl:otherwise/>
	</xsl:choose>
</xsl:template>

<xsl:template match="perslid" mode="full">
	<html>
	<head>
		<xsl:call-template name="facilitorstyles"/>
	</head>
	<body>
		<table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="50%">
			<xsl:call-template name="prs_begintext"/>
			<tr>
				<td class="label" width="20%">Naam</td>
				<td class="value" width="80%">: <xsl:value-of select="naam_full"/></td>
			</tr>
			<tr>
				<td class="label">Organisatie</td>
				<td>
					<table cellpadding="0" cellspacing="0" bordercolor="#000000">
					<tr>
						<td class="value">:</td>
						<td class="value">
							<xsl:choose>
								<xsl:when test="afdeling/parent/omschrijving!=''">
									<xsl:value-of select="afdeling/parent/omschrijving"/>
									<br/>
									<xsl:if test="afdeling/omschrijving!=''">
										<xsl:value-of select="afdeling/omschrijving"/>
										<br/>
									</xsl:if>
								</xsl:when>

								<xsl:otherwise>
									<xsl:if test="afdeling/omschrijving!=''">
										<xsl:value-of select="afdeling/omschrijving"/>
										<br/>
									</xsl:if>
								</xsl:otherwise>
							</xsl:choose>
						</td>
					</tr>
					</table>
				</td>
			</tr>
			<xsl:if test="srtperslid/omschrijving!='-Onbekend-'">
			<tr>
				<td class="label">Functie</td>
				<td class="value">: <xsl:value-of select="srtperslid/omschrijving"/></td>
			</tr>
			</xsl:if>
			<xsl:if test="werkplek/plaats/plaatsaanduiding!=''">
				<tr>
					<td class="label">Werkplek</td>
					<td class="value">: <xsl:value-of select="werkplek/plaats/plaatsaanduiding"/></td>
				</tr>
			</xsl:if>
		</table>
	</body>
	</html>
</xsl:template>

</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\TEMP\AKZA_files\melding184206_20160222124402.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->