<?xml version="1.0" encoding="ISO-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:output method="html" indent="no" omit-xml-declaration="yes" encoding="ISO-8859-15" media-type="text/html; charset=ISO-8859-15;"/>
<!--Variables-->
<xsl:variable name="XMLC_PortalVersion">
<xsl:value-of select="/document/XMLC_Params/XMLC_PortalVersion"/>
</xsl:variable>
<xsl:variable name="XMLC_InstanceName">
<xsl:value-of select="/document/XMLC_Params/XMLC_InstanceName"/>
</xsl:variable>
<xsl:variable name="XMLC_Portal">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_AbsolutePortal = '1'">
<xsl:value-of select="/document/XMLC_Params/XMLC_Portal"/>
</xsl:when>
<xsl:otherwise>/<xsl:value-of select="/document/XMLC_Params/XMLC_Portal"/>/</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="XMLC_SkinPath">
<xsl:choose>
<xsl:when test="(/document/XMLC_Profile/XMLC_LocalPortal = '1') and (/document/XMLC_Profile/XMLC_LocalPortalPath != '')">
<xsl:value-of select="/document/XMLC_Profile/XMLC_LocalPortalPath"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$XMLC_Portal"/>
</xsl:otherwise>
</xsl:choose>Skins/<xsl:value-of select="/document/XMLC_Params/XMLC_Skin"/>/</xsl:variable>
<xsl:variable name="XMLC_PictosPath">
<xsl:choose>
<xsl:when test="(/document/XMLC_Profile/XMLC_LocalPortal = '1') and (/document/XMLC_Profile/XMLC_LocalPortalPath != '')">
<xsl:value-of select="/document/XMLC_Profile/XMLC_LocalPortalPath"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$XMLC_Portal"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_Pictos != ''">Pictos/<xsl:value-of select="/document/XMLC_Params/XMLC_Pictos"/>/</xsl:when>
<xsl:otherwise>Skins/<xsl:value-of select="/document/XMLC_Params/XMLC_Skin"/>/pictos/</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="XMLC_ReadOnly" select="/document/XMLC_Params/XMLC_ReadOnly"/>
<xsl:variable name="XMLC_UseXMLC_Action">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action">
<xsl:value-of select="/document/XMLC_Params/XMLC_UseXMLC_Action"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!--Components-->
<xsl:template name="xslc:Page">
<xsl:param name="ActivePageName"/>
<xsl:param name="ActionMenu"/>
<xsl:param name="ActionMenuPosition">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_ActionMenuPosition">
<xsl:value-of select="/document/XMLC_Profile/XMLC_ActionMenuPosition"/>
</xsl:when>
<xsl:when test="/document/XMLC_Params/XMLC_ActionMenuPosition">
<xsl:value-of select="/document/XMLC_Params/XMLC_ActionMenuPosition"/>
</xsl:when>
<xsl:otherwise>Left</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="Head"/>
<xsl:param name="Title"/>
<xsl:param name="PageTitle"/>
<xsl:param name="Body"/>
<xsl:param name="BodyAttributes">
<dummy/>
</xsl:param>
<xsl:param name="CheckPortalVersion">0</xsl:param>
<xsl:param name="ContextMenu"/>
<xsl:param name="DisplayActionMenu">
<!--0: none, 1: display, 2: hidden-->
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayActionMenu">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayActionMenu"/>
</xsl:when>
<xsl:when test="/document/XMLC_Params/XMLC_DisplayActionMenu">
<xsl:value-of select="/document/XMLC_Params/XMLC_DisplayActionMenu"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayActionMenuToggler" select="$DisplayActionMenu"/>
<xsl:param name="DisplayActionMenuTogglerSeparator">1</xsl:param>
<xsl:param name="DisplayPageTitle">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayPageTitle">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayPageTitle"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayTabControl" select="/document/XMLC_Profile/XMLC_DisplayTabControl"/>
<xsl:param name="DisplayTabs" select="/document/XMLC_Profile/XMLC_DisplayTabs"/>
<xsl:param name="DisplayTabsCaption" select="/document/XMLC_Profile/XMLC_DisplayTabsCaption"/>
<xsl:param name="DisplayTabControlBody">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayTabControlBody">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayTabControlBody"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayToolbar">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayToolbar">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbar"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Params/XMLC_DisplayToolbar"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayToolbarGradient">
<xsl:choose>
<xsl:when test="not(/document/XMLC_Profile/XMLC_DisplayToolbarGradient)">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayToolbarBorderLeft">0</xsl:param>
<xsl:param name="DisplayToolbarBorderRight">1</xsl:param>
<xsl:param name="FontSize" select="/document/XMLC_Profile/XMLC_FontSize"/>
<xsl:param name="HandleScrollbars">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_HandleScrollbars">
<xsl:value-of select="/document/XMLC_Profile/XMLC_HandleScrollbars"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="Height"/>
<xsl:param name="HtmlAttributes">
<dummy/>
</xsl:param>
<xsl:param name="ToolbarButtonsLeft">
<dummy/>
</xsl:param>
<xsl:param name="ToolbarButtonsRight">
<dummy/>
</xsl:param>
<xsl:param name="OutputBaseHRef">1</xsl:param>
<xsl:param name="OutputPartialFrame">1</xsl:param>
<xsl:param name="PageMargin">8</xsl:param>
<xsl:param name="MarginTop">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_MarginTop != ''">
<xsl:value-of select="/document/XMLC_Params/XMLC_MarginTop"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$PageMargin"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="MarginLeft">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_MarginLeft != ''">
<xsl:value-of select="/document/XMLC_Params/XMLC_MarginLeft"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$PageMargin"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="Tabs">
<dummy/>
</xsl:param>
<xsl:param name="TabPages">
<dummy/>
</xsl:param>
<xsl:param name="UpdateParentTitle">1</xsl:param>
<xsl:param name="WaterMark"/>
<xsl:param name="Width">100%</xsl:param>
<xsl:param name="XMLC_BaseHRef">
<xsl:if test="(/document/XMLC_Params/XMLC_Host) and (/document/XMLC_Params/XMLC_Host != '') and (/document/XMLC_Params/XMLC_ScriptName) and (/document/XMLC_Params/XMLC_ScriptName != '')">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_HTTPS = '1'">https</xsl:when>
<xsl:otherwise>http</xsl:otherwise>
</xsl:choose>://<xsl:value-of select="/document/XMLC_Params/XMLC_Host"/>
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:if test="$XMLC_UseXMLC_Action != '1'">/</xsl:if>
</xsl:if>
</xsl:param>
<xsl:variable name="VBodyAttributes" select="msxsl:node-set($BodyAttributes)"/>
<xsl:variable name="VHtmlAttributes" select="msxsl:node-set($HtmlAttributes)"/>
<xsl:variable name="VToolbarButtonsLeft" select="msxsl:node-set($ToolbarButtonsLeft)"/>
<xsl:variable name="VToolbarButtonsRight" select="msxsl:node-set($ToolbarButtonsRight)"/>
<xsl:variable name="BuildActionMenu">
<xsl:choose>
<xsl:when test="not($ActionMenu)">0</xsl:when>
<xsl:when test="not(msxsl:node-set($ActionMenu)/*)">0</xsl:when>
<xsl:when test="$DisplayActionMenu = '1' or $DisplayActionMenu = '2'">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="BuildTabControl">
<xsl:choose>
<xsl:when test="not($Tabs)">0</xsl:when>
<xsl:when test="msxsl:node-set($Tabs)/dummy">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="BuildPageTitle">
<!--0: no PageTitle; 1: Top of the page; 2: Under tabs-->
<xsl:choose>
<xsl:when test="not($PageTitle) or ($PageTitle = '')">0</xsl:when>
<xsl:when test="$DisplayPageTitle = '2' and $Tabs = ''">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$DisplayPageTitle"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="BuildToolbar">
<xsl:choose>
<xsl:when test="$DisplayToolbar != '1'">0</xsl:when>
<xsl:when test="($VToolbarButtonsRight/dummy) and ($VToolbarButtonsLeft/dummy)">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<html>
<xsl:if test="$VHtmlAttributes">
<xsl:copy-of select="$VHtmlAttributes/Attributes/@*"/>
</xsl:if>
<xsl:comment>#<xsl:value-of select="/document/XMLC_Params/XMLC_RequestNo"/>&#160;<xsl:value-of select="/document/XMLC_Params/XMLC_Date"/>
</xsl:comment>
<head>
<title>
<xsl:value-of select="$Title"/>
</title>
<xsl:if test="($OutputBaseHRef = '1') and ($XMLC_BaseHRef != '')">
<base href="{$XMLC_BaseHRef}"/>
</xsl:if>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="MSThemeCompatible" content="yes"/>
<script language="javascript">
<xsl:if test="(/document/XMLC_Params/XMLC_TrapJavascriptError) and (/document/XMLC_Params/XMLC_TrapJavascriptError = '1')"><![CDATA[function trapError() { return true; }
window.onerror = trapError;
]]></xsl:if><![CDATA[var XMLC_BaseHRef = ']]><xsl:value-of select="$XMLC_BaseHRef"/><![CDATA[';
var XMLC_SkinPath = ']]><xsl:value-of select="$XMLC_SkinPath"/><![CDATA[';
var XMLC_Portal = ']]><xsl:value-of select="$XMLC_Portal"/><![CDATA[';
var XMLC_PictosPath = ']]><xsl:value-of select="$XMLC_PictosPath"/><![CDATA[';
var XMLC_HandleScrollbars = ']]><xsl:value-of select="$HandleScrollbars"/><![CDATA[';]]><xsl:if test="$UpdateParentTitle = '1' and $Title != ''"><![CDATA[if (top != null)
  top.document.title = document.title;]]></xsl:if>
<xsl:if test="/document/Locales/*[@javascriptText='1']">
<xsl:variable name="Quote">'</xsl:variable>
<xsl:variable name="DblQuote">"</xsl:variable>
<xsl:for-each select="/document/Locales/*[@javascriptText='1']">
<xsl:variable name="Value" select="translate(., $DblQuote, $Quote)"/>
<xsl:value-of select="name()"/><![CDATA[ = "]]><xsl:value-of select="$Value"/><![CDATA[";]]></xsl:for-each>
</xsl:if>
</script>
<script language="javascript" src="{$XMLC_Portal}xslc.js"/>
<script language="javascript" src="{$XMLC_Portal}common.js"/>
<!--Javascript string localization-->
<link rel="stylesheet" type="text/css" href="{$XMLC_SkinPath}xslc.css"/>
<link rel="stylesheet" type="text/css" href="{$XMLC_SkinPath}common.css"/>
<xsl:if test="$FontSize != ''">
<link rel="stylesheet" type="text/css" href="{$XMLC_SkinPath}xslc.{$FontSize}.css"/>
</xsl:if>
<xsl:if test="$BuildActionMenu = '1'">
<xsl:call-template name="xslc:ActionPanel.Head"/>
</xsl:if>
<!--It is very important that HeadAdditions is at the end of the block, so as to override ALL preceding settings-->
<xsl:copy-of select="$Head"/>
</head>
<body tabindex="-1">
<xsl:variable name="onload">
<xsl:if test="$HandleScrollbars = '1'">SetPageContentSize();</xsl:if>
<xsl:if test="($CheckPortalVersion = '1') and (/document/XMLC_Params/XMLC_PortalVersion)">if (CheckPortalVersion) CheckPortalVersion('<xsl:value-of select="/document/XMLC_Params/XMLC_PortalVersion"/>', 'divCheckPortalVersion');</xsl:if>
<xsl:value-of select="$VBodyAttributes/Attributes/@onload"/>
</xsl:variable>
<xsl:if test="$onload != ''">
<xsl:attribute name="onload"><xsl:value-of select="$onload"/></xsl:attribute>
</xsl:if>
<xsl:if test="$HandleScrollbars = '1'">
<xsl:attribute name="onresize">SetPageContentSize();<xsl:value-of select="$VBodyAttributes/Attributes/@onresize"/></xsl:attribute>
</xsl:if>
<xsl:if test="$VBodyAttributes/Attributes">
<xsl:choose>
<xsl:when test="$HandleScrollbars = '1'">
<xsl:copy-of select="$VBodyAttributes/Attributes/@*[(name() != 'onload') and (name() != 'onresize')]"/>
</xsl:when>
<xsl:when test="$onload != ''">
<xsl:copy-of select="$VBodyAttributes/Attributes/@*[name() != 'onload']"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$VBodyAttributes/Attributes/@*"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:copy-of select="$ContextMenu"/>
<table cellpadding="0" cellspacing="0" height="100%" width="100%">
<xsl:if test="$BuildToolbar='1'">
<tr>
<td>
<xsl:if test="$BuildActionMenu = '1'">
<xsl:attribute name="colspan">2</xsl:attribute>
</xsl:if>
<div id="xslcToolbar" class="PageToolbar">
<xsl:call-template name="xslc:Toolbar">
<xsl:with-param name="DisplayToolbarGradient" select="$DisplayToolbarGradient"/>
<xsl:with-param name="ToolbarButtonsLeft">
<xsl:if test="($ActionMenuPosition = 'Left') or ($ActionMenuPosition = 'LEFT')">
<xsl:call-template name="xslc:ToolButtonActionMenuToggler">
<xsl:with-param name="DisplayActionMenuToggler" select="$BuildActionMenu"/>
<xsl:with-param name="DisplaySeparator">RIGHT</xsl:with-param>
<xsl:with-param name="DisplayReduceButton">
<xsl:choose>
<xsl:when test="$DisplayActionMenu = '2'">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:copy-of select="$ToolbarButtonsLeft"/>
</xsl:with-param>
<xsl:with-param name="ToolbarButtonsRight">
<xsl:copy-of select="$ToolbarButtonsRight"/>
<xsl:if test="($ActionMenuPosition = 'Right') or ($ActionMenuPosition = 'RIGHT')">
<xsl:call-template name="xslc:ToolButtonActionMenuToggler">
<xsl:with-param name="DisplayActionMenuToggler" select="$BuildActionMenu"/>
<xsl:with-param name="DisplaySeparator">LEFT</xsl:with-param>
<xsl:with-param name="DisplayReduceButton">
<xsl:choose>
<xsl:when test="$DisplayActionMenu = '2'">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:with-param>
<xsl:with-param name="DisplayBorderLeft" select="$DisplayToolbarBorderLeft"/>
<xsl:with-param name="DisplayBorderRight" select="$DisplayToolbarBorderRight"/>
</xsl:call-template>
</div>
</td>
</tr>
</xsl:if>
<tr height="100%" width="100%">
<xsl:if test="($BuildActionMenu = '1') and (($ActionMenuPosition = 'Left') or ($ActionMenuPosition = 'LEFT'))">
<td height="100%" valign="top">
<div id="xslcActionMenu" class="PageActionMenuLeft">
<xsl:attribute name="style"><xsl:if test="$HandleScrollbars = '1'">overflow: auto;</xsl:if><xsl:if test="$DisplayActionMenu = '2'">display: none;</xsl:if></xsl:attribute>
<xsl:call-template name="xslc:ActionPanelContainer">
<xsl:with-param name="Content" select="$ActionMenu"/>
<xsl:with-param name="Padding">
<xsl:value-of select="$MarginTop"/>px 0px <xsl:value-of select="$PageMargin"/>px <xsl:value-of select="$PageMargin"/>px</xsl:with-param>
</xsl:call-template>
</div>
</td>
</xsl:if>
<td height="100%" valign="top" width="100%">
<div id="xslcPageContent" class="PageContent">
<xsl:attribute name="style">padding: <xsl:value-of select="$MarginTop"/>px <xsl:value-of select="$PageMargin"/>px <xsl:value-of select="$PageMargin"/>px <xsl:value-of select="$MarginLeft"/>px;<xsl:if test="$HandleScrollbars = '1'">overflow: auto;</xsl:if><xsl:if test="$WaterMark != ''">background-attachment:fixed; background-image:url(<xsl:value-of select="$WaterMark"/>); background-position:bottom right; background-repeat:no-repeat</xsl:if></xsl:attribute>
<xsl:comment>XMLC_INSERT_COMMENTS</xsl:comment>
<xsl:if test="$BuildPageTitle = '1'">
<xsl:call-template name="xslc:Title">
<xsl:with-param name="Title" select="$PageTitle"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="($CheckPortalVersion = '1') and (/document/XMLC_Params/XMLC_PortalVersion)">
<div id="divCheckPortalVersion">
<xsl:call-template name="xslc:Exception">
<xsl:with-param name="Message" select="/document/Locales/PortalVersionMismatchCaption"/>
<xsl:with-param name="ExtendedMessage">
<a href="{$XMLC_BaseHRef}XMLC_HelpEmptyCache" target="_blank">
<xsl:value-of select="/document/Locales/XMLC_EmptyCacheHelpLink"/>
</a>
</xsl:with-param>
</xsl:call-template>
</div>
</xsl:if>
<xsl:choose>
<xsl:when test="$BuildTabControl = '1'">
<xsl:call-template name="xslc:TabControl">
<xsl:with-param name="ActivePageName" select="$ActivePageName"/>
<xsl:with-param name="Tabs" select="$Tabs"/>
<xsl:with-param name="TabPages" select="$TabPages"/>
<xsl:with-param name="DisplayTabControl" select="$DisplayTabControl"/>
<xsl:with-param name="DisplayTabs" select="$DisplayTabs"/>
<xsl:with-param name="DisplayTabControlBody" select="$DisplayTabControlBody"/>
<xsl:with-param name="DisplayTabsCaption" select="$DisplayTabsCaption"/>
<xsl:with-param name="PageTitle" select="$PageTitle"/>
<xsl:with-param name="Page" select="$Body"/>
<xsl:with-param name="Height" select="$Height"/>
<xsl:with-param name="Width" select="$Width"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$Body"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$OutputPartialFrame = '1'">
<iframe id="XMLC_PartialFrame" name="XMLC_PartialFrame" style="display: none;" src="{$XMLC_SkinPath}blank.htm"/>
</xsl:if>
</div>
</td>
<xsl:if test="($BuildActionMenu = '1') and (($ActionMenuPosition = 'Right') or ($ActionMenuPosition = 'RIGHT'))">
<td height="100%" valign="top">
<div id="xslcActionMenu" class="PageActionMenuRight">
<xsl:attribute name="style"><xsl:if test="$HandleScrollbars = '1'">overflow: auto;</xsl:if><xsl:if test="$DisplayActionMenu = '2'">display: none;</xsl:if></xsl:attribute>
<xsl:call-template name="xslc:ActionPanelContainer">
<xsl:with-param name="Content" select="$ActionMenu"/>
<xsl:with-param name="Padding">
<xsl:value-of select="$MarginTop"/>px <xsl:value-of select="$MarginLeft"/>px <xsl:value-of select="$PageMargin"/>px <xsl:value-of select="$PageMargin"/>px</xsl:with-param>
</xsl:call-template>
</div>
</td>
</xsl:if>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template name="xslc:Toolbar">
<xsl:param name="DisplayToolbarGradient">
<xsl:choose>
<xsl:when test="not(/document/XMLC_Profile/XMLC_DisplayToolbarGradient)">0</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayBorderLeft">0</xsl:param>
<xsl:param name="DisplayBorderRight">1</xsl:param>
<xsl:param name="ToolbarButtonsLeft">
<dummy/>
</xsl:param>
<xsl:param name="ToolbarButtonsRight">
<dummy/>
</xsl:param>
<xsl:variable name="VToolbarButtonsLeft" select="msxsl:node-set($ToolbarButtonsLeft)"/>
<xsl:variable name="VToolbarButtonsRight" select="msxsl:node-set($ToolbarButtonsRight)"/>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<xsl:attribute name="class">clToolbar<xsl:if test="$DisplayToolbarGradient = '1'">Gradient</xsl:if></xsl:attribute>
<tr valign="top">
<xsl:if test="$DisplayBorderLeft = '1'">
<td>
<img>
<xsl:attribute name="src"><xsl:value-of select="$XMLC_SkinPath"/>toolbar/toolbar<xsl:if test="$DisplayToolbarGradient = '1'">_Gradient</xsl:if>_left.gif</xsl:attribute>
</img>
</td>
</xsl:if>
<xsl:if test="$VToolbarButtonsLeft">
<xsl:for-each select="$VToolbarButtonsLeft//ToolbarButton">
<td nowrap="">
<xsl:copy-of select="* | text()"/>
</td>
</xsl:for-each>
<xsl:for-each select="$VToolbarButtonsLeft/Item">
<td nowrap="">
<xsl:choose>
<xsl:when test="@Separator and @Separator = '1'">
<img align="abdmiddle" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="AlwaysDropdown" select="@AlwaysDropdown"/>
<xsl:with-param name="Caption">
<xsl:choose>
<xsl:when test="Caption">
<xsl:copy-of select="Caption/*"/>
</xsl:when>
<xsl:when test="@Image">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}{@Image}" title="{@Hint}"/>
</xsl:when>
<xsl:when test="@ImagePath">
<img align="absmiddle" border="0" src="{@ImagePath}" title="{@Hint}"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@Caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="CaptionText" select="@CaptionText"/>
<xsl:with-param name="CaptionDisabled">
<xsl:choose>
<xsl:when test="CaptionDisable">
<xsl:copy-of select="CaptionDisabled/*"/>
</xsl:when>
<xsl:when test="@ImagePathDisabled">
<img align="absmiddle" border="0" src="{@ImagePathDisabled}" title="{@HintDisabled}"/>
</xsl:when>
<xsl:otherwise>dummy</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="CaptionHighlight" select="@CaptionHighlight"/>
<xsl:with-param name="DisplayToolbarRollover">
<xsl:choose>
<xsl:when test="@DisplayToolbarRollover">
<xsl:value-of select="@DisplayToolbarRollover"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarRollover"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownContent">
<xsl:choose>
<xsl:when test="DropdownContent">
<xsl:copy-of select="DropdownContent"/>
</xsl:when>
<xsl:otherwise>dummy</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownItems">
<xsl:choose>
<xsl:when test="DropdownContent">
<xsl:copy-of select="DropdownItems"/>
</xsl:when>
<xsl:otherwise>
<dummy/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownHint" select="@DropdownHint"/>
<xsl:with-param name="DropdownClick" select="@DropdownClick"/>
<xsl:with-param name="DropdownHeight" select="@DropdownHeight"/>
<xsl:with-param name="DropdownMenuRollover">
<xsl:choose>
<xsl:when test="@DropdownMenuRollover">
<xsl:value-of select="@DropdownMenuRollover"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayDropdownMenuRollover"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownPopupClass">
<xsl:choose>
<xsl:when test="@DropdownPopupClass">
<xsl:value-of select="@DropdownPopupClass"/>
</xsl:when>
<xsl:otherwise>PopupFrame</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownPosition" select="@DropdownPosition"/>
<xsl:with-param name="DropdownWidth" select="@DropdownWidth"/>
<xsl:with-param name="HRef" select="@HRef"/>
<xsl:with-param name="Mode" select="@Mode"/>
<xsl:with-param name="Name" select="@Name"/>
<xsl:with-param name="Selected">
<xsl:choose>
<xsl:when test="@Selected">
<xsl:value-of select="@Selected"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Params/XMLC_ToolbarButtonSelected"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="Target" select="@Target"/>
<xsl:with-param name="OnClick" select="@OnClick"/>
<xsl:with-param name="Size" select="@Size"/>
<xsl:with-param name="Width">
<xsl:choose>
<xsl:when test="@Width">
<xsl:value-of select="@Width"/>
</xsl:when>
<xsl:otherwise>10</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</xsl:if>
<td width="100%">&#160;</td>
<xsl:if test="$VToolbarButtonsRight">
<xsl:for-each select="$VToolbarButtonsRight//ToolbarButton">
<td nowrap="">
<xsl:copy-of select="* |text()"/>
</td>
</xsl:for-each>
<xsl:for-each select="$VToolbarButtonsRight/Item">
<td nowrap="">
<xsl:choose>
<xsl:when test="@Separator and @Separator = '1'">
<img align="abdmiddle" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="AlwaysDropdown" select="@AlwaysDropdown"/>
<xsl:with-param name="Caption">
<xsl:choose>
<xsl:when test="Caption">
<xsl:copy-of select="Caption/*"/>
</xsl:when>
<xsl:when test="@Image">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}{@Image}" title="{@Hint}"/>
</xsl:when>
<xsl:when test="@ImagePath">
<img align="absmiddle" border="0" src="{@ImagePath}" title="{@Hint}"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@Caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="CaptionText" select="@CaptionText"/>
<xsl:with-param name="CaptionDisabled">
<xsl:choose>
<xsl:when test="CaptionDisable">
<xsl:copy-of select="CaptionDisabled/*"/>
</xsl:when>
<xsl:when test="@ImagePathDisabled">
<img align="absmiddle" border="0" src="{@ImagePathDisabled}" title="{@HintDisabled}"/>
</xsl:when>
<xsl:otherwise>dummy</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="CaptionHighlight" select="@CaptionHighlight"/>
<xsl:with-param name="DisplayToolbarRollover">
<xsl:choose>
<xsl:when test="@DisplayToolbarRollover">
<xsl:value-of select="@DisplayToolbarRollover"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarRollover"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownContent">
<xsl:choose>
<xsl:when test="DropdownContent">
<xsl:copy-of select="DropdownContent"/>
</xsl:when>
<xsl:otherwise>dummy</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownItems">
<xsl:choose>
<xsl:when test="DropdownContent">
<xsl:copy-of select="DropdownItems"/>
</xsl:when>
<xsl:otherwise>
<dummy/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownHint" select="@DropdownHint"/>
<xsl:with-param name="DropdownClick" select="@ropdownClick"/>
<xsl:with-param name="DropdownHeight" select="@DropdownHeight"/>
<xsl:with-param name="DropdownMenuRollover">
<xsl:choose>
<xsl:when test="@DropdownMenuRollover">
<xsl:value-of select="@DropdownMenuRollover"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayDropdownMenuRollover"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownPopupClass">
<xsl:choose>
<xsl:when test="@DropdownPopupClass">
<xsl:value-of select="@DropdownPopupClass"/>
</xsl:when>
<xsl:otherwise>PopupFrame</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="DropdownPosition" select="@DropdownPosition"/>
<xsl:with-param name="DropdownWidth" select="@DropdownWidth"/>
<xsl:with-param name="HRef" select="@HRef"/>
<xsl:with-param name="Mode" select="@Mode"/>
<xsl:with-param name="Name" select="@Name"/>
<xsl:with-param name="Selected">
<xsl:choose>
<xsl:when test="@Selected">
<xsl:value-of select="@Selected"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Params/XMLC_ToolbarButtonSelected"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="Target" select="@Target"/>
<xsl:with-param name="OnClick" select="@OnClick"/>
<xsl:with-param name="Size" select="@Size"/>
<xsl:with-param name="Width">
<xsl:choose>
<xsl:when test="@Width">
<xsl:value-of select="@Width"/>
</xsl:when>
<xsl:otherwise>10</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:for-each>
</xsl:if>
<xsl:if test="$DisplayBorderRight = '1'">
<td>
<img>
<xsl:attribute name="src"><xsl:value-of select="$XMLC_SkinPath"/>toolbar/toolbar<xsl:if test="$DisplayToolbarGradient = '1'">_Gradient</xsl:if>_right.gif</xsl:attribute>
</img>
</td>
</xsl:if>
</tr>
</table>
</xsl:template>
<xsl:template name="xslc:Title">
<xsl:param name="Id"/>
<xsl:param name="Image"/>
<xsl:param name="Kind"/>
<xsl:param name="Title"/>
<div class="PageTitle{$Kind}">
<xsl:if test="$Id">
<xsl:attribute name="id"><xsl:value-of select="$Id"/></xsl:attribute>
</xsl:if>
<xsl:if test="$Image">
<xsl:copy-of select="$Image"/>&#160;</xsl:if>
<xsl:copy-of select="$Title"/>
</div>
</xsl:template>
<xsl:template name="xslc:TabControl">
<xsl:param name="Name"/>
<xsl:param name="ActivePage"/>
<xsl:param name="ActivePageName"/>
<xsl:param name="MinTabHeight">31</xsl:param>
<xsl:param name="MinTabWidth">20</xsl:param>
<xsl:param name="Width">100%</xsl:param>
<xsl:param name="Height"/>
<xsl:param name="Tabs">
<dummy/>
</xsl:param>
<xsl:param name="TabPages">
<dummy/>
</xsl:param>
<xsl:param name="Page"/>
<xsl:param name="PageTitle"/>
<xsl:param name="DisplayActiveTabCaption" select="/document/XMLC_Profile/XMLC_DisplayActiveTabCaption"/>
<xsl:param name="DisplayPageTitle">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayPageTitle">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayPageTitle"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayTabs" select="/document/XMLC_Profile/XMLC_DisplayTabs"/>
<xsl:param name="DisplayTabControl" select="/document/XMLC_Profile/XMLC_DisplayTabControl"/>
<xsl:param name="DisplayTabsCaption" select="/document/XMLC_Profile/XMLC_DisplayTabsCaption"/>
<xsl:param name="DisplayTabControlBody">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayTabControlBody">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayTabControlBody"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:variable name="VTabs" select="msxsl:node-set($Tabs)"/>
<xsl:variable name="VTabPages" select="msxsl:node-set($TabPages)"/>
<xsl:variable name="TabCount" select="count($VTabs/Item) + count($VTabs//Tab)"/>
<xsl:variable name="ColCount" select="2 * $TabCount + 1"/>
<xsl:variable name="ActivePagePosition">
<xsl:choose>
<xsl:when test="$VTabs//*[(name() = 'Tab' or name() = 'Item') and (@Name = $ActivePageName)]">
<xsl:for-each select="$VTabs//*[name() = 'Tab' or name() = 'Item']">
<xsl:if test="@Name = $ActivePageName">
<xsl:value-of select="position()"/>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$ActivePage"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="PageContent">
<xsl:if test="$PageTitle != '' and $DisplayPageTitle = '2'">
<xsl:call-template name="xslc:Title">
<xsl:with-param name="Title" select="$PageTitle"/>
</xsl:call-template>
</xsl:if>
<xsl:copy-of select="$Page"/>
</xsl:variable>
<xsl:variable name="DisplayPowered">
<xsl:choose>
<xsl:when test="@DisplayPowered = 'no'">no</xsl:when>
<xsl:otherwise>yes</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$DisplayTabControl = '0'">
<xsl:copy-of select="$PageContent"/>
</xsl:when>
<xsl:when test="$DisplayTabs = '0'">
<xsl:call-template name="xslc:Panel">
<xsl:with-param name="Height" select="$Height"/>
<xsl:with-param name="Width" select="$Width"/>
<xsl:with-param name="Page" select="$PageContent"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$VTabPages/Page">
<script language="javascript"><![CDATA[var ]]><xsl:value-of select="$Name"/><![CDATA[CurrentActiveTabName = ']]><xsl:value-of select="$ActivePageName"/><![CDATA[';
var ]]><xsl:value-of select="$Name"/><![CDATA[TabNames = new Array(]]><xsl:for-each select="$VTabs/Item">'<xsl:value-of select="@Name"/>'<xsl:if test="position() != last()">,</xsl:if>
</xsl:for-each><![CDATA[);]]></script>
</xsl:if>
<table border="0" cellpadding="0" cellspacing="0" class="clTabControl" width="{$Width}">
<xsl:if test="$Height!=''">
<xsl:attribute name="height"><xsl:value-of select="$Height"/></xsl:attribute>
</xsl:if>
<xsl:if test="@xslc_id">
<xsl:attribute name="xslc_id"><xsl:value-of select="@xslc_id"/></xsl:attribute>
</xsl:if>
<xsl:if test="@Class">
<xsl:attribute name="class"><xsl:value-of select="@Class"/></xsl:attribute>
</xsl:if>
<!--Top line-->
<tr>
<td width="10">
<img src="{$XMLC_SkinPath}spacer.gif" height="1"/>
</td>
<xsl:for-each select="$VTabs/Item">
<td>
<img src="{$XMLC_SkinPath}spacer.gif" width="{$MinTabWidth}" height="1"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif" height="1"/>
</td>
</xsl:for-each>
<xsl:for-each select="$VTabs//Tab">
<td>
<img src="{$XMLC_SkinPath}spacer.gif" width="{$MinTabWidth}" height="1"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif" height="1"/>
</td>
</xsl:for-each>
<td width="50000">
<img src="{$XMLC_SkinPath}spacer.gif" height="1"/>
</td>
<td width="10">
<img src="{$XMLC_SkinPath}spacer.gif" height="1"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif" height="1"/>
</td>
</tr>
<!--Body line (Tab Captions)-->
<tr>
<td>
<img id="{$Name}TabLeft" height="{$MinTabHeight}">
<xsl:attribute name="src"><xsl:value-of select="$XMLC_SkinPath"/>tabcontrol/<xsl:if test="$ActivePagePosition=1">active</xsl:if>tab_left.gif</xsl:attribute>
</img>
</td>
<xsl:for-each select="$VTabs//*[name() = 'Tab' or name() = 'Item']">
<xsl:variable name="TabName" select="@Name"/>
<xsl:variable name="Position" select="position()"/>
<xsl:variable name="IsActiveTab" select="$Position = $ActivePagePosition"/>
<td id="{$Name}Tab{$TabName}" align="center" valign="middle" nowrap="">
<xsl:attribute name="class"><xsl:choose><xsl:when test="$IsActiveTab">clActiveTab</xsl:when><xsl:otherwise>clTab</xsl:otherwise></xsl:choose></xsl:attribute>
<xsl:choose>
<xsl:when test="name() = 'Item'">
<xsl:variable name="ElementName">
<xsl:choose>
<xsl:when test="@HRef or @OnClick">a</xsl:when>
<xsl:otherwise>span</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="@ImagePath != ''">
<xsl:element name="{$ElementName}">
<xsl:if test="$ElementName = 'a'">
<xsl:attribute name="href"><xsl:choose><xsl:when test="@HRef and @HRef != ''"><xsl:value-of select="@HRef"/></xsl:when><xsl:otherwise>.</xsl:otherwise></xsl:choose></xsl:attribute>
<xsl:attribute name="hidefocus">true</xsl:attribute>
<xsl:attribute name="onfocus">this.blur()</xsl:attribute>
</xsl:if>
<xsl:if test="(@OnClick) or ($VTabPages/Page[@Name = $TabName])">
<xsl:attribute name="onclick"><xsl:value-of select="@OnClick"/><xsl:if test="$VTabPages/Page[@Name = $TabName]">return DisplayTab('<xsl:value-of select="$Name"/>', '<xsl:value-of select="$TabName"/>');</xsl:if></xsl:attribute>
</xsl:if>
<img alt="{@Hint}" align="absmiddle" border="0" src="{@ImagePath}" title="{@Hint}"/>
</xsl:element>
</xsl:if>
<xsl:if test="(@Caption != '') and (($IsActiveTab and $DisplayActiveTabCaption = '1') or ($DisplayTabsCaption = '1'))">
<xsl:if test="@ImagePath != ''">&#160;</xsl:if>
<xsl:element name="{$ElementName}">
<xsl:if test="$ElementName = 'a'">
<xsl:attribute name="href"><xsl:choose><xsl:when test="@HRef and @HRef != ''"><xsl:value-of select="@HRef"/></xsl:when><xsl:otherwise>.</xsl:otherwise></xsl:choose></xsl:attribute>
<xsl:attribute name="hidefocus">true</xsl:attribute>
<xsl:attribute name="onfocus">this.blur()</xsl:attribute>
</xsl:if>
<xsl:if test="(@OnClick) or ($VTabPages/Page[@Name = $TabName])">
<xsl:attribute name="onclick"><xsl:value-of select="@OnClick"/><xsl:if test="$VTabPages/Page[@Name = $TabName]">return DisplayTab('<xsl:value-of select="$Name"/>', '<xsl:value-of select="$TabName"/>');</xsl:if></xsl:attribute>
</xsl:if>
<span>
<xsl:value-of select="@Caption"/>
</span>
</xsl:element>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="*"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<img id="{$Name}Tab{$TabName}Right" height="{$MinTabHeight}">
<xsl:attribute name="src"><xsl:value-of select="$XMLC_SkinPath"/>tabcontrol/<xsl:choose><xsl:when test="$IsActiveTab and $Position = $TabCount">activetab_right</xsl:when><xsl:when test="$IsActiveTab">activetab_joint_right</xsl:when><xsl:when test="($Position + 1) = $ActivePagePosition">activetab_joint_left</xsl:when><xsl:when test="$Position &lt; $ActivePagePosition">tab_joint_left</xsl:when><xsl:when test="$Position = $TabCount">tab_right</xsl:when><xsl:otherwise>tab_joint_right</xsl:otherwise></xsl:choose>.gif</xsl:attribute>
</img>
</td>
</xsl:for-each>
<td colspan="2">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
</tr>
<!--Bottom line (joint with page borders)-->
<tr>
<td id="{$Name}TabBottomLeft" width="10">
<xsl:attribute name="background"><xsl:value-of select="$XMLC_SkinPath"/>tabcontrol/tab_bottom_left_<xsl:choose><xsl:when test="$ActivePagePosition = 1">first</xsl:when><xsl:otherwise>others</xsl:otherwise></xsl:choose>.gif</xsl:attribute>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<xsl:for-each select="$VTabs//*[name() = 'Tab' or name() = 'Item']">
<xsl:variable name="TabName" select="@Name"/>
<xsl:variable name="Position" select="position()"/>
<td id="{$Name}TabBottom{$TabName}">
<xsl:attribute name="background"><xsl:value-of select="$XMLC_SkinPath"/>tabcontrol/<xsl:choose><xsl:when test="$Position = $ActivePagePosition">activetab_bottom</xsl:when><xsl:otherwise>main_top</xsl:otherwise></xsl:choose>.gif</xsl:attribute>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td id="{$Name}TabBottom{$TabName}Right">
<xsl:attribute name="background"><xsl:value-of select="$XMLC_SkinPath"/>tabcontrol/<xsl:choose><xsl:when test="($Position = $ActivePagePosition) and ($Position = $TabCount)">activetab_bottom_right</xsl:when><xsl:when test="$Position = $ActivePagePosition">activetab_bottom_joint_right</xsl:when><xsl:when test="($Position + 1) = $ActivePagePosition">activetab_bottom_joint_left</xsl:when><xsl:otherwise>main_top</xsl:otherwise></xsl:choose>.gif</xsl:attribute>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
</xsl:for-each>
<td background="{$XMLC_SkinPath}tabcontrol/main_top.gif">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_top_right.gif"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
</tr>
<!--Page body-->
<xsl:choose>
<xsl:when test="$DisplayTabControlBody = '1'">
<tr valign="top">
<xsl:if test="$Height!=''">
<xsl:attribute name="height"><xsl:value-of select="$Height"/></xsl:attribute>
</xsl:if>
<td width="10" background="{$XMLC_SkinPath}tabcontrol/main_left.gif">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td background="{$XMLC_SkinPath}tabcontrol/main_background.gif" style="padding-top: 10px;">
<xsl:if test="$Height!=''">
<xsl:attribute name="height"><xsl:value-of select="$Height"/></xsl:attribute>
</xsl:if>
<xsl:attribute name="colspan"><xsl:value-of select="$ColCount"/></xsl:attribute>
<xsl:choose>
<xsl:when test="$VTabPages/Page">
<xsl:for-each select="$VTabs/Item">
<xsl:variable name="ItemName" select="@Name"/>
<xsl:variable name="Position" select="position()"/>
<xsl:if test="$VTabPages//Page[@Name = $ItemName]">
<div id="{$Name}TabPage{$ItemName}">
<xsl:if test="$Position != $ActivePagePosition">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$VTabPages/Page[@Name = $ItemName]"/>
</div>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$PageContent"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td width="10" background="{$XMLC_SkinPath}tabcontrol/main_right.gif">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
</tr>
<tr>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_bottom_left.gif"/>
</td>
<td background="{$XMLC_SkinPath}tabcontrol/main_bottom.gif">
<xsl:attribute name="colspan"><xsl:value-of select="$ColCount"/></xsl:attribute>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_bottom_right.gif"/>
</td>
<td>
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<td style="padding: 10px;">
<xsl:attribute name="colspan"><xsl:value-of select="$ColCount + 3"/></xsl:attribute>
<xsl:if test="$Height!=''">
<xsl:attribute name="height"><xsl:value-of select="$Height"/></xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$VTabPages/Page">
<xsl:for-each select="$VTabs/Item">
<xsl:variable name="ItemName" select="@Name"/>
<xsl:variable name="Position" select="position()"/>
<xsl:if test="$VTabPages//Page[@Name = $ItemName]">
<div id="{$Name}TabPage{$ItemName}">
<xsl:if test="$Position != $ActivePagePosition">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$VTabPages/Page[@Name = $ItemName]"/>
</div>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$PageContent"/>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="xslc:Panel">
<xsl:param name="Width">100%</xsl:param>
<xsl:param name="Height"/>
<xsl:param name="Page"/>
<table border="0" cellpadding="0" cellspacing="0" class="clTabControl" width="{$Width}">
<xsl:if test="$Height!=''">
<xsl:attribute name="height"><xsl:value-of select="$Height"/></xsl:attribute>
</xsl:if>
<tr>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_top_left.gif"/>
</td>
<td background="{$XMLC_SkinPath}tabcontrol/main_top.gif" width="{$Width}">
<img src="{$XMLC_SkinPath}tabcontrol/main_top.gif"/>
</td>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_top_right.gif"/>
</td>
</tr>
<tr valign="top">
<xsl:if test="$Height!=''">
<xsl:attribute name="height"><xsl:value-of select="$Height"/></xsl:attribute>
</xsl:if>
<td background="{$XMLC_SkinPath}tabcontrol/main_left.gif" width="10">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td background="{$XMLC_SkinPath}tabcontrol/main_background.gif" width="{$Width}">
<xsl:copy-of select="$Page"/>
</td>
<td background="{$XMLC_SkinPath}tabcontrol/main_right.gif" width="10">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
</tr>
<tr>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_bottom_left.gif"/>
</td>
<td background="{$XMLC_SkinPath}tabcontrol/main_bottom.gif" width="{$Width}">
<img src="{$XMLC_SkinPath}spacer.gif"/>
</td>
<td width="10">
<img src="{$XMLC_SkinPath}tabcontrol/main_bottom_right.gif"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="xslc:ButtonPad">
<xsl:param name="AlignButtonPadOnLeft">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayButtonPadLeft">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayButtonPadLeft"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayButtonPad">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayButtonPad">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayButtonPad"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="Button_Submit"/>
<xsl:param name="Button_Submit_Click"/>
<xsl:param name="CustomButtonsLeft">
<dummy/>
</xsl:param>
<xsl:param name="CustomButtons">
<dummy/>
</xsl:param>
<xsl:param name="CustomButtonsRight">
<dummy/>
</xsl:param>
<xsl:param name="DeletePrompt">Are you sure you want to delete this item?\nClick OK to confirm.</xsl:param>
<xsl:param name="DeleteAction"/>
<xsl:param name="DisplayDeleteButton">1</xsl:param>
<xsl:param name="DisplayRefreshButton">0</xsl:param>
<xsl:param name="DisplayResetButton">0</xsl:param>
<xsl:param name="DisplayButtonRollover">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayButtonRollover">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayButtonRollover"/>
</xsl:when>
<xsl:when test="/document/XMLC_Params/XMLC_DisplayButtonRollover">
<xsl:value-of select="/document/XMLC_Params/XMLC_DisplayButtonRollover"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:param name="RefreshURL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
<xsl:if test="/document/XMLC_Params/XMLC_InputParams!=''">
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/>
</xsl:if>
</xsl:param>
<xsl:variable name="VCustomButtonsLeft" select="msxsl:node-set($CustomButtonsLeft)"/>
<xsl:variable name="VCustomButtons" select="msxsl:node-set($CustomButtons)"/>
<xsl:variable name="VCustomButtonsRight" select="msxsl:node-set($CustomButtonsRight)"/>
<xsl:if test="($XMLC_ReadOnly != '1') and ($DisplayButtonPad = '1')">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<!--CustomButtonsLeft-->
<xsl:if test="$VCustomButtonsLeft">
<xsl:for-each select="$VCustomButtonsLeft/CustomButton">
<td>
<xsl:copy-of select="*"/>
</td>
</xsl:for-each>
</xsl:if>
<xsl:if test="$AlignButtonPadOnLeft = '1'">
<td width="100%"/>
</xsl:if>
<!--Button Submit-->
<td>
<xsl:choose>
<xsl:when test="$Button_Submit">
<xsl:copy-of select="$Button_Submit"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="Submit_OnClickValue">
<xsl:choose>
<xsl:when test="$Button_Submit_Click = ''">SubmitForm('<xsl:value-of select="$Form"/>'); return false;</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$Button_Submit_Click"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="." onclick="{$Submit_OnClickValue}">
<img alt="{/document/Locales/Submit}" border="0" src="{$XMLC_SkinPath}button_submit.gif">
<xsl:if test="$DisplayButtonRollover = '1'">
<xsl:attribute name="onmouseover">ImgOver(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_submit');</xsl:attribute>
<xsl:attribute name="onmouseout">ImgOut(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_submit');</xsl:attribute>
<xsl:attribute name="onmousedown">ImgDown(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_submit');</xsl:attribute>
</xsl:if>
</img>
</a>
</xsl:otherwise>
</xsl:choose>
</td>
<!--Button Reset-->
<xsl:if test="$DisplayResetButton = '1'">
<td>
<a href="." onclick="reset(); return false;">
<img alt="{/document/Locales/Reset}" border="0" src="{$XMLC_SkinPath}button_reset.gif">
<xsl:if test="$DisplayButtonRollover = '1'">
<xsl:attribute name="onmouseover">ImgOver(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_reset');</xsl:attribute>
<xsl:attribute name="onmouseout">ImgOut(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_reset');</xsl:attribute>
<xsl:attribute name="onmousedown">ImgDown(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_reset');</xsl:attribute>
<xsl:attribute name="onmouseup">ImgOver(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_reset');</xsl:attribute>
</xsl:if>
</img>
</a>
</td>
</xsl:if>
<!--Button Refresh-->
<xsl:if test="$DisplayRefreshButton = '1'">
<td>
<a href="{$RefreshURL}">
<img alt="{/document/Locales/Refresh}" border="0" src="{$XMLC_SkinPath}button_refresh.gif">
<xsl:if test="$DisplayButtonRollover = '1'">
<xsl:attribute name="onmouseover">ImgOver(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_refresh');</xsl:attribute>
<xsl:attribute name="onmouseout">ImgOut(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_refresh');</xsl:attribute>
<xsl:attribute name="onmousedown">ImgDown(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_refresh');</xsl:attribute>
</xsl:if>
</img>
</a>
</td>
</xsl:if>
<!--Button Delete-->
<xsl:if test="($DeleteAction) and ($DisplayDeleteButton = '1')">
<td>
<a href="." onclick="ConfirmDelete('{$Form}','{$DeleteAction}','{$DeletePrompt}'); return false;">
<img alt="{/document/Locales/Delete}" border="0" src="{$XMLC_SkinPath}button_delete.gif">
<xsl:if test="$DisplayButtonRollover = '1'">
<xsl:attribute name="onmouseover">ImgOver(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_delete');</xsl:attribute>
<xsl:attribute name="onmouseout">ImgOut(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_delete');</xsl:attribute>
<xsl:attribute name="onmousedown">ImgDown(this, '<xsl:value-of select="$XMLC_SkinPath"/>button_delete');</xsl:attribute>
</xsl:if>
</img>
</a>
</td>
</xsl:if>
<!--CustomButtons-->
<xsl:if test="$VCustomButtons">
<xsl:for-each select="$VCustomButtons/CustomButton">
<td>
<xsl:copy-of select="*"/>
</td>
</xsl:for-each>
</xsl:if>
<xsl:if test="$AlignButtonPadOnLeft  != '1'">
<td width="100%"/>
</xsl:if>
<xsl:if test="$VCustomButtonsRight">
<xsl:for-each select="$VCustomButtonsRight/CustomButton">
<td align="right">
<xsl:copy-of select="*"/>
</td>
</xsl:for-each>
</xsl:if>
</tr>
</table>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:Button">
<xsl:param name="Caption"/>
<xsl:param name="CaptionText"/>
<xsl:param name="Hint"/>
<xsl:param name="HRef"/>
<xsl:param name="OnClick"/>
<xsl:param name="Width">10</xsl:param>
<xsl:param name="DisplayButtonRollover">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayButtonRollover">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayButtonRollover"/>
</xsl:when>
<xsl:when test="/document/XMLC_Params/XMLC_DisplayButtonRollover">
<xsl:value-of select="/document/XMLC_Params/XMLC_DisplayButtonRollover"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:variable name="OnClickValue">
<xsl:choose>
<xsl:when test="$OnClick!=''">
<xsl:value-of select="$OnClick"/>
</xsl:when>
<xsl:when test="$HRef!=''">location.href='<xsl:value-of select="$HRef"/>';</xsl:when>
</xsl:choose>
</xsl:variable>
<table border="0" cellpadding="0" cellspacing="0" style="cursor: pointer;" width="{$Width}">
<xsl:if test="$Hint != ''">
<xsl:attribute name="title"><xsl:value-of select="$Hint"/></xsl:attribute>
</xsl:if>
<xsl:if test="$OnClickValue!=''">
<xsl:attribute name="onclick"><xsl:value-of select="$OnClickValue"/></xsl:attribute>
</xsl:if>
<xsl:if test="$DisplayButtonRollover = '1'">
<xsl:attribute name="onmousedown">BtnDown(this);</xsl:attribute>
<xsl:attribute name="onmouseout">BtnOut(this);</xsl:attribute>
<xsl:attribute name="onmouseover">BtnOver(this);</xsl:attribute>
<xsl:attribute name="onmouseup">BtnOver(this);</xsl:attribute>
</xsl:if>
<tr>
<td style="border: 0px">
<img id="BtnLeft" border="0" src="{$XMLC_SkinPath}button/button_left.gif"/>
</td>
<td id="BtnMain" align="center" background="{$XMLC_SkinPath}button/button_main.gif" nowrap="" style="border: 0px" width="100%">
<xsl:copy-of select="$Caption"/>
<xsl:if test="$CaptionText != ''">&#160;<xsl:value-of select="$CaptionText"/>
</xsl:if>
</td>
<td style="border: 0px">
<img id="BtnRight" border="0" src="{$XMLC_SkinPath}button/button_right.gif"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="xslc:ToolbarButtonPad">
<xsl:param name="Button_Submit"/>
<xsl:param name="Button_Submit_Click"/>
<xsl:param name="CustomButtonsLeft">
<dummy/>
</xsl:param>
<xsl:param name="CustomButtons">
<dummy/>
</xsl:param>
<xsl:param name="DeletePrompt" select="/document/Locales/DeletePrompt"/>
<xsl:param name="DeleteAction"/>
<xsl:param name="DeleteOnClick"/>
<xsl:param name="DisplayButtonRollover">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayToolbarButtonRollover">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarButtonRollover"/>
</xsl:when>
<xsl:when test="/document/XMLC_Params/XMLC_DisplayToolbarButtonRollover">
<xsl:value-of select="/document/XMLC_Params/XMLC_DisplayToolbarButtonRollover"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DisplayDeleteButton">1</xsl:param>
<xsl:param name="DisplayResetButton">0</xsl:param>
<xsl:param name="DisplaySeparatorLeft">1</xsl:param>
<xsl:param name="DisplaySeparatorRight">0</xsl:param>
<xsl:param name="DisplayToolbarButtonPad">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayToolbarButtonPad">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarButtonPad"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:variable name="VCustomButtonsLeft" select="msxsl:node-set($CustomButtonsLeft)"/>
<xsl:variable name="VCustomButtons" select="msxsl:node-set($CustomButtons)"/>
<xsl:if test="($XMLC_ReadOnly != '1') and ($DisplayToolbarButtonPad = '1')">
<xsl:if test="$DisplaySeparatorLeft = '1'">
<ToolbarButton>
<img border="0" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
</xsl:if>
<!--CustomButtonsLeft-->
<xsl:if test="$VCustomButtonsLeft">
<xsl:for-each select="$VCustomButtonsLeft/ToolbarButton">
<ToolbarButton>
<xsl:copy-of select="*"/>
</ToolbarButton>
</xsl:for-each>
<xsl:for-each select="$VCustomButtonsLeft/CustomButton">
<ToolbarButton>
<xsl:copy-of select="*"/>
</ToolbarButton>
</xsl:for-each>
</xsl:if>
<!--Button Submit-->
<ToolbarButton>
<xsl:choose>
<xsl:when test="$Button_Submit">
<xsl:copy-of select="$Button_Submit"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="Submit_OnClickValue">
<xsl:choose>
<xsl:when test="$Button_Submit_Click = ''">SubmitForm('<xsl:value-of select="$Form"/>');</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$Button_Submit_Click"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a href="." onclick="{$Submit_OnClickValue}; return false;">
<img alt="{/document/Locales/Submit}" border="0" src="{$XMLC_PictosPath}Buttons/Common/Save.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</ToolbarButton>
<!--Button Reset-->
<xsl:if test="$DisplayResetButton = '1'">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a href="." onclick="document.{$Form}.reset(); return false;">
<img alt="{/document/Locales/Reset}" border="0" src="{$XMLC_PictosPath}Buttons/Common/Reset.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
</xsl:if>
<!--Button Delete-->
<xsl:if test="(($DeleteAction != '') or ($DeleteOnClick != '')) and ($DisplayDeleteButton = '1')">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<img alt="{/document/Locales/Delete}" border="0" src="{$XMLC_PictosPath}Buttons/Common/delete.gif"/>
</xsl:with-param>
<xsl:with-param name="OnClick">
<xsl:if test="$DeleteOnClick != ''">
<xsl:value-of select="$DeleteOnClick"/>
</xsl:if>
<xsl:if test="$DeleteAction != ''">ConfirmDelete('<xsl:value-of select="$Form"/>','<xsl:value-of select="$DeleteAction"/>','<xsl:value-of select="$DeletePrompt"/>');</xsl:if>return false;</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
</xsl:if>
<!--CustomButtons-->
<xsl:if test="$VCustomButtons">
<xsl:for-each select="$VCustomButtons/ToolbarButton">
<ToolbarButton>
<xsl:copy-of select="*"/>
</ToolbarButton>
</xsl:for-each>
<xsl:for-each select="$VCustomButtons/CustomButton">
<ToolbarButton>
<xsl:copy-of select="*"/>
</ToolbarButton>
</xsl:for-each>
</xsl:if>
<xsl:if test="$DisplaySeparatorRight = '1'">
<ToolbarButton>
<img border="0" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:ToolbarButton">
<xsl:param name="AlwaysDropdown" select="/document/XMLC_Profile/XMLC_AlwaysDropDownToolbarMenu"/>
<xsl:param name="Caption"/>
<xsl:param name="CaptionText"/>
<xsl:param name="CaptionDisabled">dummy</xsl:param>
<xsl:param name="CaptionHighlight">dummy</xsl:param>
<xsl:param name="DisplayToolbarRollover">
<xsl:choose>
<xsl:when test="/document/XMLC_Profile/XMLC_DisplayToolbarRollover">
<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarRollover"/>
</xsl:when>
<xsl:when test="/document/XMLC_Params/XMLC_DisplayToolbarRollover">
<xsl:value-of select="/document/XMLC_Params/XMLC_DisplayToolbarRollover"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="DropdownContent">dummy</xsl:param>
<xsl:param name="DropdownItems">
<dummy/>
</xsl:param>
<xsl:param name="DropdownHint"/>
<xsl:param name="DropdownClick"/>
<xsl:param name="DropdownHeight"/>
<xsl:param name="DropdownMenuRollover" select="/document/XMLC_Profile/XMLC_DisplayDropdownMenuRollover"/>
<xsl:param name="DropdownPopupClass">DropdownMenu</xsl:param>
<xsl:param name="DropdownWidth"/>
<xsl:param name="AlwaysDropdownFirstItem">0</xsl:param>
<xsl:param name="Hint"/>
<xsl:param name="HRef"/>
<xsl:param name="Mode"/>
<xsl:param name="Name"/>
<xsl:param name="Selected" select="/document/XMLC_Params/XMLC_ToolbarButtonSelected"/>
<xsl:param name="Target"/>
<xsl:param name="OnClick"/>
<xsl:param name="Size"/>
<xsl:param name="Width">10</xsl:param>
<xsl:param name="IsSelected">
<xsl:choose>
<xsl:when test="$Selected = $Name">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:variable name="id">
<xsl:choose>
<xsl:when test="$Name != ''">
<xsl:value-of select="$Name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="generate-id()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="DisplayCaptionHighlight" select="$CaptionHighlight != 'dummy'"/>
<xsl:variable name="DisplayDisabled" select="$Name != ''  and $CaptionDisabled != 'dummy'"/>
<xsl:variable name="VDropdownItems" select="msxsl:node-set($DropdownItems)"/>
<xsl:variable name="DisplayPushedGradient" select="$Size = 'BIG' and /document/XMLC_Profile/XMLC_DisplayToolbarGradient = '1'"/>
<xsl:variable name="ImagePath">
<xsl:value-of select="$XMLC_SkinPath"/>toolbarbutton/<xsl:if test="$Size = 'BIG'">Big/</xsl:if>
</xsl:variable>
<xsl:variable name="VAlwaysDropdown" select="($AlwaysDropdown = '1') and (($VDropdownItems/Item) or ($DropdownContent != 'dummy'))"/>
<xsl:if test="$DisplayDisabled">
<table id="{$Name}Disabled" border="0" cellpadding="0" cellspacing="0" width="{$Width}" onclick="return false;">
<xsl:if test="$Mode != 'DISABLED'">
<xsl:attribute name="style">display: none; visibility; hidden;</xsl:attribute>
</xsl:if>
<tr>
<td style="border-width: 0px">
<img border="0" id="BtnLeft" src="{$XMLC_SkinPath}toolbarbutton/toolbutton_left.gif"/>
</td>
<td id="BtnMain" align="center" nowrap="" style="border-width: 0px;" width="100%" background="{$XMLC_SkinPath}toolbarbutton/toolbutton_main.gif">
<xsl:copy-of select="$CaptionDisabled"/>
</td>
<td style="border-width: 0px">
<img border="0" id="BtnRight" src="{$XMLC_SkinPath}toolbarbutton/toolbutton_right.gif"/>
</td>
</tr>
</table>
</xsl:if>
<table border="0" cellpadding="0" cellspacing="0" width="{$Width}">
<xsl:if test="$Name != ''">
<xsl:attribute name="id"><xsl:value-of select="$Name"/></xsl:attribute>
</xsl:if>
<xsl:if test="$Mode = 'TOGGLE' or $Mode = 'PUSH' or $VAlwaysDropdown = '1'">
<xsl:attribute name="Pushed"><xsl:value-of select="$IsSelected"/></xsl:attribute>
</xsl:if>
<xsl:if test="$DisplayToolbarRollover = '1'">
<xsl:attribute name="onmousedown">BtnDown(this, 'TOOL', '<xsl:value-of select="$Size"/>'<xsl:if test="$DisplayCaptionHighlight">, '<xsl:value-of select="$id"/>'</xsl:if>);</xsl:attribute>
<xsl:attribute name="onmouseout">BtnOut(this, 'TOOL', '<xsl:value-of select="$Size"/>', '<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>'<xsl:if test="$DisplayCaptionHighlight">, '<xsl:value-of select="$id"/>'</xsl:if>);</xsl:attribute>
<xsl:attribute name="onmouseover">BtnOver(this, 'TOOL', '<xsl:value-of select="$Size"/>', '<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>'<xsl:if test="$DisplayCaptionHighlight">, '<xsl:value-of select="$id"/>'</xsl:if>);</xsl:attribute>
<xsl:attribute name="onmouseup">BtnOver(this, 'TOOL', '<xsl:value-of select="$Size"/>'<xsl:if test="$DisplayCaptionHighlight">, '<xsl:value-of select="$id"/>'</xsl:if>);</xsl:attribute>
</xsl:if>
<xsl:attribute name="style">cursor: pointer;<xsl:if test="$DisplayDisabled and $Mode = 'DISABLED'">display: none; visibility; hidden;</xsl:if></xsl:attribute>
<xsl:attribute name="onclick"><xsl:choose><xsl:when test="$Mode = 'TOGGLE'">BtnToggleClick(this, 'TOOL', '<xsl:value-of select="$Size"/>', '<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>'<xsl:if test="$DisplayCaptionHighlight">, '<xsl:value-of select="$id"/>'</xsl:if>);</xsl:when><xsl:when test="$Mode = 'PUSH'">BtnPushed(this, 'TOOL', '<xsl:value-of select="$Size"/>', '<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>');</xsl:when></xsl:choose><xsl:choose><xsl:when test="$VAlwaysDropdown"><xsl:choose><xsl:when test="$DropdownClick != ''"><xsl:value-of select="$DropdownClick"/></xsl:when><xsl:otherwise>BtnDropdown(event, '<xsl:value-of select="$id"/>', '<xsl:value-of select="$Size"/>', '<xsl:value-of select="$DropdownWidth"/>', '<xsl:value-of select="$DropdownHeight"/>' ,'<xsl:value-of select="$DisplayCaptionHighlight"/>'); return false;</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="$OnClick != ''"><xsl:value-of select="$OnClick"/></xsl:when></xsl:choose></xsl:attribute>
<tr>
<td style="border-width: 0px;">
<img border="0" id="BtnLeft">
<xsl:attribute name="src"><xsl:value-of select="$ImagePath"/>toolbutton_left<xsl:if test="$IsSelected = '1'">_Pushed<xsl:if test="$DisplayPushedGradient">_Gradient</xsl:if></xsl:if>.gif</xsl:attribute>
</img>
</td>
<td id="BtnMain" align="center" class="ToolbarButtonCaption" nowrap="" style="border-width: 0px;" width="100%">
<xsl:attribute name="background"><xsl:value-of select="$ImagePath"/>toolbutton_main<xsl:if test="$IsSelected = '1'">_Pushed<xsl:if test="$DisplayPushedGradient">_Gradient</xsl:if></xsl:if>.gif</xsl:attribute>
<xsl:choose>
<xsl:when test="($HRef = '') or ($VAlwaysDropdown)">
<span id="{$id}.Caption">
<xsl:if test="$DisplayCaptionHighlight and $IsSelected != '0'">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$Caption"/>
</span>
<xsl:if test="$DisplayCaptionHighlight">
<span id="{$id}.CaptionHighlight">
<xsl:if test="$IsSelected = '0'">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$CaptionHighlight"/>
</span>
</xsl:if>
<xsl:if test="$CaptionText != ''">
<br/>
<xsl:value-of select="$CaptionText"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<a hidefocus="true" onfocus="this.blur();" href="{$HRef}">
<xsl:if test="$Target != ''">
<xsl:attribute name="target"><xsl:value-of select="$Target"/></xsl:attribute>
</xsl:if>
<span id="{$id}.Caption">
<xsl:if test="$DisplayCaptionHighlight and $IsSelected != '0'">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$Caption"/>
</span>
<xsl:if test="$DisplayCaptionHighlight">
<span id="{$id}.CaptionHighlight">
<xsl:if test="$IsSelected = '0'">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$CaptionHighlight"/>
</span>
</xsl:if>
<xsl:if test="$CaptionText != ''">
<br/>
<xsl:value-of select="$CaptionText"/>
</xsl:if>
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$VAlwaysDropdown">&#160;<img align="absmiddle" alt="{/document/Locales/AltItemCreation}" border="0" src="{$XMLC_SkinPath}Toolbar_ExpandBottom.gif"/>
</xsl:if>
</td>
<td style="border-width: 0px">
<img border="0" id="BtnRight">
<xsl:attribute name="src"><xsl:value-of select="$ImagePath"/>toolbutton_right<xsl:if test="$IsSelected = '1'">_Pushed<xsl:if test="$DisplayPushedGradient">_Gradient</xsl:if></xsl:if>.gif</xsl:attribute>
</img>
</td>
<xsl:if test="($VDropdownItems/Item or $DropdownContent != 'dummy') and ($AlwaysDropdown != '1')">
<td>
<table border="0" cellpadding="0" cellspacing="0" style="cursor: pointer;">
<xsl:attribute name="id"><xsl:value-of select="$id"/>Dropdown</xsl:attribute>
<xsl:if test="$DisplayToolbarRollover = '1'">
<xsl:attribute name="onmousedown">BtnDown(this, 'TOOL','<xsl:value-of select="$Size"/>');</xsl:attribute>
<xsl:attribute name="onmouseout">BtnOut(this, 'TOOL','<xsl:value-of select="$Size"/>', '<xsl:value-of select="/document/XMLC_Profile/XMLC_DisplayToolbarGradient"/>');</xsl:attribute>
<xsl:attribute name="onmouseover">BtnOver(this, 'TOOL','<xsl:value-of select="$Size"/>');</xsl:attribute>
<xsl:attribute name="onmouseup">BtnOver(this, 'TOOL','<xsl:value-of select="$Size"/>');</xsl:attribute>
</xsl:if>
<xsl:attribute name="onclick"><xsl:choose><xsl:when test="$DropdownClick != ''"><xsl:value-of select="$DropdownClick"/></xsl:when><xsl:otherwise>BtnDropdown(event, '<xsl:value-of select="$id"/>', '<xsl:value-of select="$Size"/>', '<xsl:value-of select="$DropdownWidth"/>', '<xsl:value-of select="$DropdownHeight"/>', '<xsl:value-of select="$DisplayCaptionHighlight"/>'); CancelEvent(event); return false;</xsl:otherwise></xsl:choose></xsl:attribute>
<tr>
<td style="border-width: 0px">
<img id="BtnLeft" border="0" src="{$ImagePath}toolbutton_left.gif"/>
</td>
<td id="BtnMain" align="center" nowrap="" style="border-width: 0px;">
<xsl:attribute name="background"><xsl:value-of select="$ImagePath"/>toolbutton_main.gif</xsl:attribute>
<img alt="{/document/Locales/AltItemCreation}" border="0" src="{$XMLC_SkinPath}Toolbar_ExpandBottom.gif"/>
</td>
<td style="border-width: 0px">
<img id="BtnRight" border="0" src="{$ImagePath}toolbutton_right.gif"/>
</td>
</tr>
</table>
</td>
</xsl:if>
</tr>
</table>
<xsl:if test="$VDropdownItems/Item or $DropdownContent != 'dummy'">
<div id="{$id}Content" style="display: none;">
<xsl:variable name="AlwaysDropdownCreateFirstItem" select="($AlwaysDropdownFirstItem = '1') and ($VAlwaysDropdown = '1')"/>
<xsl:if test="($AlwaysDropdownCreateFirstItem = '1') or ($VDropdownItems/Item)">
<table id="Content" class="Menu" cellpadding="0" cellspacing="0" onclick="parent.HideFilledFrame();">
<xsl:if test="$AlwaysDropdownCreateFirstItem">
<tr class="MenuRow">
<xsl:variable name="ItemTarget">
<xsl:choose>
<xsl:when test="$Target and $Target != ''">
<xsl:value-of select="$Target"/>
</xsl:when>
<xsl:otherwise>_parent</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ItemOnClick">
<xsl:if test="$OnClick and $OnClick != ''">
<xsl:value-of select="$OnClick"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$HRef != ''">return LoadFrameURL('<xsl:value-of select="$ItemTarget"/>', '<xsl:value-of select="$HRef"/>', event);</xsl:when>
<xsl:otherwise>return false;</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$DropdownMenuRollover = '1'">
<xsl:attribute name="onmouseover">this.className = 'MenuRowRollover';</xsl:attribute>
<xsl:attribute name="onmouseout">this.className = 'MenuRow';</xsl:attribute>
</xsl:if>
<td class="MenuRowIcon" nowrap="">
<xsl:if test="$Hint = ''">
<xsl:attribute name="style">border-width: 1px 1px 1px 1px;</xsl:attribute>
</xsl:if>
<a class="MenuCaption" href="{$HRef}" onfocus="this.blur();" target="{$ItemTarget}">
<xsl:if test="$ItemOnClick and $ItemOnClick != ''">
<xsl:attribute name="onclick"><xsl:value-of select="$ItemOnClick"/></xsl:attribute>
</xsl:if>
<xsl:copy-of select="$Caption"/>
</a>
</td>
<xsl:if test="$Hint != ''">
<td class="MenuRowCaption" nowrap="">
<a class="MenuCaption" href="{$HRef}" onfocus="this.blur();" target="{$ItemTarget}">
<xsl:if test="$ItemOnClick and $ItemOnClick != ''">
<xsl:attribute name="onclick"><xsl:value-of select="$ItemOnClick"/></xsl:attribute>
</xsl:if>
<xsl:value-of select="$Hint"/>
</a>
</td>
</xsl:if>
</tr>
</xsl:if>
<xsl:for-each select="$VDropdownItems/Item">
<xsl:variable name="DisplayCaption" select="@Caption and @Caption != ''"/>
<tr class="MenuRow">
<xsl:choose>
<xsl:when test="@Separator = '1'">
<td colspan="2" class="MenuRowSeparator"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="ItemTarget">
<xsl:choose>
<xsl:when test="@Target and @Target != ''">
<xsl:value-of select="@Target"/>
</xsl:when>
<xsl:otherwise>_parent</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ItemHRef" select="@HRef"/>
<xsl:variable name="ItemOnClick">
<xsl:if test="@OnClick and @OnClick != ''">
<xsl:value-of select="@OnClick"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$ItemHRef != ''">return LoadFrameURL('<xsl:value-of select="$ItemTarget"/>', '<xsl:value-of select="$ItemHRef"/>', event);</xsl:when>
<xsl:otherwise>return false;</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$DropdownMenuRollover = '1'">
<xsl:attribute name="onmouseover">this.className = 'MenuRowRollover';</xsl:attribute>
<xsl:attribute name="onmouseout">this.className = 'MenuRow';</xsl:attribute>
</xsl:if>
<td class="MenuRowIcon" nowrap="">
<xsl:if test="not($DisplayCaption)">
<xsl:attribute name="style">border-width: 1px 1px 1px 1px;</xsl:attribute>
</xsl:if>
<a class="MenuCaption" href="{$ItemHRef}" onfocus="this.blur();" target="{$ItemTarget}">
<xsl:if test="$ItemOnClick and $ItemOnClick != ''">
<xsl:attribute name="onclick"><xsl:value-of select="$ItemOnClick"/></xsl:attribute>
</xsl:if>
<img alt="{@Hint}" border="0" src="{@ImagePath}"/>
</a>
</td>
<xsl:if test="$DisplayCaption">
<td class="MenuRowCaption" nowrap="">
<a class="MenuCaption" href="{$ItemHRef}" onfocus="this.blur();" target="{$ItemTarget}">
<xsl:if test="$ItemOnClick and $ItemOnClick != ''">
<xsl:attribute name="onclick"><xsl:value-of select="$ItemOnClick"/></xsl:attribute>
</xsl:if>
<xsl:value-of select="@Caption"/>
</a>
</td>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</xsl:if>
<xsl:if test="$DropdownContent != 'dummy'">
<xsl:copy-of select="$DropdownContent"/>
</xsl:if>
</div>
<iframe id="{$id}Menu" border="0" class="{$DropdownPopupClass}" frameborder="0" marginheight="0" marginwidth="0" name="{$id}" scrolling="no" style="position: absolute; display: none; " src="{$XMLC_SkinPath}blank.htm"/>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:ListFooter">
<xsl:param name="colspan">1</xsl:param>
<xsl:param name="CommonURL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
<xsl:if test="/document/XMLC_Params/XMLC_NavigationParams!=''">
<xsl:value-of select="/document/XMLC_Params/XMLC_NavigationParams"/>&amp;</xsl:if>
<xsl:value-of select="@RecordName"/>_StartingRow=</xsl:param>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:param name="OnClick"/>
<xsl:param name="URLParams"/>
<xsl:param name="MaxPages"/>
<xsl:param name="NavigationPad">
<xsl:choose>
<xsl:when test="@ExactPaging and @ExactPaging = '1'">1</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="IndexNavigation">1</xsl:param>
<xsl:param name="PageNavigation">1</xsl:param>
<xsl:param name="RecordCount" select="@RowCount"/>
<xsl:param name="ClassName">
<xsl:choose>
<xsl:when test="$RecordCount mod 2 = 0">clRowLight</xsl:when>
<xsl:otherwise>clRowDark</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:if test="(@EOF!='1') or (@StartingRow!='0')">
<tr class="{$ClassName}">
<td colspan="{$colspan}">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<xsl:if test="$NavigationPad=1">
<td nowrap="" style="border-width: 0px">
<xsl:call-template name="xslc:NavigationPad">
<xsl:with-param name="CommonURL" select="$CommonURL"/>
<xsl:with-param name="URLParams" select="$URLParams"/>
<xsl:with-param name="OnClick" select="$OnClick"/>
<xsl:with-param name="Form" select="$Form"/>
</xsl:call-template>
</td>
</xsl:if>
<xsl:if test="$IndexNavigation=1">
<td nowrap="" style="border-width: 0px">|&#160;<xsl:call-template name="xslc:IndexNavigation">
<xsl:with-param name="CommonURL" select="$CommonURL"/>
<xsl:with-param name="URLParams" select="$URLParams"/>
<xsl:with-param name="OnClick" select="$OnClick"/>
<xsl:with-param name="Form" select="$Form"/>
<xsl:with-param name="MaxPages" select="$MaxPages"/>
</xsl:call-template>
</td>
</xsl:if>
<xsl:if test="$PageNavigation = '1'">
<td style="border-width: 0px;" width="100%">&#160;</td>
<td nowrap="" style="border-width: 0px;">
<xsl:call-template name="xslc:PageNavigation">
<xsl:with-param name="CommonURL" select="$CommonURL"/>
<xsl:with-param name="URLParams" select="$URLParams"/>
<xsl:with-param name="OnClick" select="$OnClick"/>
<xsl:with-param name="Form" select="$Form"/>
</xsl:call-template>
</td>
</xsl:if>
</tr>
</table>
</td>
</tr>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:NavigationPad">
<xsl:param name="DisplayDoubleStep">0</xsl:param>
<xsl:param name="DisplayPreviousArrows">1</xsl:param>
<xsl:param name="DisplayNextArrows">1</xsl:param>
<xsl:param name="CommonURL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
<xsl:if test="/document/XMLC_Params/XMLC_NavigationParams!=''">
<xsl:value-of select="/document/XMLC_Params/XMLC_NavigationParams"/>&amp;</xsl:if>
<xsl:value-of select="@RecordName"/>_StartingRow=</xsl:param>
<xsl:param name="URLParams"/>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:param name="OnClick"/>
<xsl:param name="ExactPaging" select="@ExactPaging"/>
<xsl:param name="PageID" select="@PageID"/>
<xsl:if test="$DisplayPreviousArrows = '1'">
<xsl:choose>
<xsl:when test="@StartingRow = '0'">
<img alt="{/document/Locales/FirstPage}" src="{$XMLC_PictosPath}Icons/Common/stepfirst_left_disabled.gif" title="{/document/Locales/FirstPage}"/>&#160;<xsl:if test="$DisplayDoubleStep = '1'">
<img alt="{/document/Locales/DoublePrevious}" src="{$XMLC_PictosPath}Icons/Common/stepdouble_left_disabled.gif" title="{/document/Locales/DoublePrevious}"/>&#160;</xsl:if>
<img alt="{/document/Locales/Previous}" src="{$XMLC_PictosPath}Icons/Common/step_left_disabled.gif" title="{/document/Locales/Previous}"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="StepBack">
<xsl:choose>
<xsl:when test="(@StartingRow)-(@MaxRows)+1>0">
<xsl:value-of select="(@StartingRow)-(@MaxRows)+1"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$CommonURL}0{$URLParams}">
<xsl:if test="$OnClick != ''">
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '0'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:if>
<img alt="{/document/Locales/FirstPage}" border="0" src="{$XMLC_PictosPath}Icons/Common/stepfirst_left.gif" title="{/document/Locales/FirstPage}"/>
</a>&#160;<xsl:if test="$DisplayDoubleStep = '1'">
<xsl:variable name="DoubleStepBack">
<xsl:choose>
<xsl:when test="(@StartingRow)-(2*@MaxRows)+2>0">
<xsl:value-of select="(@StartingRow)-(2*@MaxRows)+2"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$CommonURL}{$DoubleStepBack}{$URLParams}">
<xsl:if test="$OnClick != ''">
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '<xsl:value-of select="$DoubleStepBack"/>'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:if>
<img alt="{/document/Locales/DoublePrevious}" border="0" src="{$XMLC_PictosPath}Icons/Common/stepdouble_left.gif" title="{/document/Locales/DoublePrevious}"/>
</a>&#160;</xsl:if>
<a href="{$CommonURL}{$StepBack}{$URLParams}">
<xsl:if test="$OnClick != ''">
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '<xsl:value-of select="$StepBack"/>'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:if>
<img alt="{/document/Locales/Previous}" border="0" src="{$XMLC_PictosPath}Icons/Common/step_left.gif" title="{/document/Locales/Previous}"/>
</a>
</xsl:otherwise>
</xsl:choose>&#160;</xsl:if>
<xsl:if test="$DisplayNextArrows = '1'">
<xsl:choose>
<xsl:when test="@EOF = '1'">
<img alt="{/document/Locales/More}" src="{$XMLC_PictosPath}Icons/Common/step_right_disabled.gif" title="{/document/Locales/More}"/>&#160;<xsl:if test="$DisplayDoubleStep = '1'">
<img alt="{/document/Locales/DoubleMore}" src="{$XMLC_PictosPath}Icons/Common/stepdouble_right_disabled.gif" title="{/document/Locales/DoubleMore}"/>&#160;</xsl:if>
<xsl:if test="$ExactPaging = '1'">
<img alt="{/document/Locales/LastPage}" src="{$XMLC_PictosPath}Icons/Common/steplast_right_disabled.gif" title="{/document/Locales/LastPage}"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="LastPage" select="(/document/PageItems[@PageID = $PageID]/Page[last()] - 1)*(@MaxRows - 1)"/>
<a href="{$CommonURL}{@LastRow}{$URLParams}">
<xsl:if test="$OnClick != ''">
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '<xsl:value-of select="@LastRow"/>'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:if>
<img alt="{/document/Locales/More}" border="0" src="{$XMLC_PictosPath}Icons/Common/step_right.gif" title="{/document/Locales/More}"/>
</a>&#160;<xsl:if test="$DisplayDoubleStep = '1'">
<xsl:variable name="DoubleStepForward">
<xsl:choose>
<xsl:when test="($ExactPaging = '1') and (@PageCount - @CurrentPage  &lt; 2)">
<xsl:value-of select="$LastPage"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="(@LastRow)+(@MaxRows)-1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$CommonURL}{$DoubleStepForward}{$URLParams}">
<xsl:if test="$OnClick != ''">
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '<xsl:value-of select="$DoubleStepForward"/>'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:if>
<img alt="{/document/Locales/DoubleMore}" border="0" src="{$XMLC_PictosPath}Icons/Common/stepdouble_right.gif" title="{/document/Locales/DoubleMore}"/>
</a>&#160;</xsl:if>
<xsl:if test="$ExactPaging = '1'">
<a href="{$CommonURL}{$LastPage}{$URLParams}">
<xsl:if test="$OnClick != ''">
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '<xsl:value-of select="$LastPage"/>'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:if>
<img alt="{/document/Locales/LastPage}" border="0" src="{$XMLC_PictosPath}Icons/Common/steplast_right.gif" title="{/document/Locales/LastPage}"/>
</a>
</xsl:if>
</xsl:otherwise>
</xsl:choose>&#160;</xsl:if>
</xsl:template>
<xsl:template name="xslc:IndexNavigation">
<xsl:param name="DisplayIndexNavigation">1</xsl:param>
<xsl:param name="CommonURL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
<xsl:if test="/document/XMLC_Params/XMLC_NavigationParams!=''">
<xsl:value-of select="/document/XMLC_Params/XMLC_NavigationParams"/>&amp;</xsl:if>
<xsl:value-of select="@RecordName"/>_StartingRow=</xsl:param>
<xsl:param name="URLParams"/>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:param name="MaxPages"/>
<xsl:param name="OnClick"/>
<xsl:param name="ExactPaging" select="@ExactPaging"/>
<xsl:param name="PageID" select="@PageID"/>
<xsl:param name="CurrentPage" select="@CurrentPage"/>
<xsl:variable name="VMaxPages">
<xsl:choose>
<xsl:when test="$MaxPages != ''">
<xsl:value-of select="number($MaxPages)"/>
</xsl:when>
<xsl:when test="not(/document/PageItems[@PageID = $PageID])">10</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@PageCount"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$ExactPaging = '1'">
<xsl:variable name="MaxRows" select="@MaxRows"/>
<xsl:for-each select="/document/PageItems[@PageID = $PageID]/Page[position() &lt;= $VMaxPages]">
<xsl:choose>
<xsl:when test=". = '...'">...&#160;</xsl:when>
<xsl:otherwise>
<xsl:call-template name="xslc:IndexNavigationNo">
<xsl:with-param name="CommonURL" select="$CommonURL"/>
<xsl:with-param name="URLParams" select="$URLParams"/>
<xsl:with-param name="OnClick" select="$OnClick"/>
<xsl:with-param name="IndexNo" select="."/>
<xsl:with-param name="MaxRows" select="$MaxRows"/>
<xsl:with-param name="Form" select="$Form"/>
<xsl:with-param name="CurrentPage" select="$CurrentPage"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:when test="$DisplayIndexNavigation = '1'">
<xsl:call-template name="xslc:IndexNavigationNo">
<xsl:with-param name="CommonURL" select="$CommonURL"/>
<xsl:with-param name="URLParams" select="$URLParams"/>
<xsl:with-param name="OnClick" select="$OnClick"/>
<xsl:with-param name="IndexNo">1</xsl:with-param>
<xsl:with-param name="Max" select="$VMaxPages"/>
<xsl:with-param name="Form" select="$Form"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="xslc:IndexNavigationNo">
<xsl:param name="CommonURL"/>
<xsl:param name="CurrentPage" select="@CurrentPage"/>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:param name="IndexNo"/>
<xsl:param name="Max">0</xsl:param>
<xsl:param name="MaxRows" select="@MaxRows"/>
<xsl:param name="OnClick"/>
<xsl:param name="URLParams"/>
<xsl:param name="RecordName" select="@RecordName"/>
<xsl:choose>
<xsl:when test="$IndexNo = '...'">...&#160;</xsl:when>
<xsl:otherwise>
<xsl:variable name="StartingRow" select="($MaxRows - 1) * ($IndexNo - 1)"/>
<xsl:choose>
<xsl:when test="$IndexNo = $CurrentPage">
<strong>
<xsl:value-of select="$IndexNo"/>
</strong>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:choose>
<xsl:when test="$OnClick != ''">
<xsl:attribute name="href">.</xsl:attribute>
<xsl:attribute name="onclick">SetField('<xsl:value-of select="$Form"/>', '<xsl:value-of select="@RecordName"/>_StartingRow', '<xsl:value-of select="$StartingRow"/>'); <xsl:value-of select="$OnClick"/>return false;</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href"><xsl:value-of select="$CommonURL"/><xsl:value-of select="$StartingRow"/><xsl:value-of select="$URLParams"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="$IndexNo"/>
</a>
</xsl:otherwise>
</xsl:choose>&#160;<xsl:if test="$IndexNo &lt; $Max">
<xsl:call-template name="xslc:IndexNavigationNo">
<xsl:with-param name="CommonURL" select="$CommonURL"/>
<xsl:with-param name="URLParams" select="$URLParams"/>
<xsl:with-param name="OnClick" select="$OnClick"/>
<xsl:with-param name="IndexNo" select="$IndexNo + 1"/>
<xsl:with-param name="Max" select="$Max"/>
<xsl:with-param name="Form" select="$Form"/>
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="xslc:PageNavigation">
<xsl:param name="ExactPaging" select="@ExactPaging"/>
<xsl:param name="CommonURL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action != '1'">/</xsl:when>
<xsl:otherwise>?XMLC_Action=</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
<xsl:choose>
<xsl:when test="$XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
<xsl:if test="/document/XMLC_Params/XMLC_NavigationParams!=''">
<xsl:value-of select="/document/XMLC_Params/XMLC_NavigationParams"/>&amp;</xsl:if>
<xsl:value-of select="@RecordName"/>_StartingRow=</xsl:param>
<xsl:param name="Form">MainForm</xsl:param>
<xsl:param name="OnClick"/>
<xsl:param name="StartingRow" select="@StartingRow"/>
<xsl:param name="URLParams"/>
<xsl:param name="PageID" select="@PageID"/>
<xsl:param name="PageCount" select="@PageCount"/>
<xsl:param name="CurrentPage" select="@CurrentPage"/>
<xsl:variable name="FieldSize">
<xsl:choose>
<xsl:when test="$PageCount != '0'">
<xsl:value-of select="string-length($PageCount)"/>
</xsl:when>
<xsl:otherwise>2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="/document/Locales/xslcPageNavigationPrompt"/>&#160;<input type="text" class="clFlatTextInput" size="{$FieldSize}" style="text-align: right;" value="{$CurrentPage}" onclick="SetFocus(this, false, true);">
<xsl:attribute name="onkeypress">return handlePageNumberKeyPress<xsl:if test="$OnClick != ''">Form</xsl:if>(event, this.value, '<xsl:value-of select="$PageCount"/>', '<xsl:value-of select="@MaxRows"/>', '<xsl:choose><xsl:when test="$OnClick != ''"><xsl:value-of select="@RecordName"/>', '<xsl:value-of select="$Form"/>', '<xsl:value-of select="$OnClick"/></xsl:when><xsl:otherwise><xsl:value-of select="$CommonURL"/>', '<xsl:value-of select="$URLParams"/></xsl:otherwise></xsl:choose>');</xsl:attribute>
</input>
<xsl:if test="$PageCount != '0'">&#160;/&#160;<xsl:value-of select="$PageCount"/>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:Message">
<xsl:param name="MarginBottom">10</xsl:param>
<xsl:param name="Message"/>
<xsl:param name="ImagePath"/>
<xsl:param name="ExtendedMessage"/>
<xsl:param name="Class">clRowHeader</xsl:param>
<xsl:variable name="VExceptionText" select="/document/Locales/*[name() = $Message]"/>
<xsl:if test="$Message != ''">
<div class="{$Class}" style="margin-bottom: {$MarginBottom}px;">
<table>
<tr>
<td>
<xsl:if test="$ImagePath != ''">
<img align="absmiddle" src="{$ImagePath}"/>&#160;</xsl:if>
</td>
<td>
<xsl:choose>
<xsl:when test="$VExceptionText">
<xsl:value-of select="$VExceptionText"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$Message"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$ExtendedMessage != ''">
<div style="padding-top: 5px;">
<xsl:copy-of select="$ExtendedMessage"/>
</div>
</xsl:if>
</td>
</tr>
</table>
</div>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:Exception">
<xsl:param name="Class">ExceptionMessage</xsl:param>
<xsl:param name="MarginBottom">10</xsl:param>
<xsl:param name="Message" select="/document/XMLC_Params/XMLC_Exception"/>
<xsl:param name="ExtendedMessage"/>
<xsl:call-template name="xslc:Message">
<xsl:with-param name="Class" select="$Class"/>
<xsl:with-param name="MarginBottom" select="$MarginBottom"/>
<xsl:with-param name="Message" select="$Message"/>
<xsl:with-param name="ImagePath">
<xsl:value-of select="$XMLC_PictosPath"/>error_small.gif</xsl:with-param>
<xsl:with-param name="ExtendedMessage" select="$ExtendedMessage"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="xslc:Info">
<xsl:param name="Class">InfoMessage</xsl:param>
<xsl:param name="MarginBottom">10</xsl:param>
<xsl:param name="Message" select="/document/XMLC_Params/XMLC_Info"/>
<xsl:param name="ExtendedMessage"/>
<xsl:call-template name="xslc:Message">
<xsl:with-param name="Class" select="$Class"/>
<xsl:with-param name="MarginBottom" select="$MarginBottom"/>
<xsl:with-param name="Message" select="$Message"/>
<xsl:with-param name="ImagePath">
<xsl:value-of select="$XMLC_PictosPath"/>info_small.gif</xsl:with-param>
<xsl:with-param name="ExtendedMessage" select="$ExtendedMessage"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="xslc:Warning">
<xsl:param name="Class">WarningMessage</xsl:param>
<xsl:param name="MarginBottom">10</xsl:param>
<xsl:param name="Message" select="/document/XMLC_Params/XMLC_Warning"/>
<xsl:param name="ExtendedMessage"/>
<xsl:call-template name="xslc:Message">
<xsl:with-param name="Class" select="$Class"/>
<xsl:with-param name="MarginBottom" select="$MarginBottom"/>
<xsl:with-param name="Message" select="$Message"/>
<xsl:with-param name="ImagePath">
<xsl:value-of select="$XMLC_PictosPath"/>warning_small.gif</xsl:with-param>
<xsl:with-param name="ExtendedMessage" select="$ExtendedMessage"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="xslc:ApplicationMessages">
<xsl:param name="MarginBottom">3</xsl:param>
<xsl:param name="ExtendedExceptionMessage"/>
<div id="xslcApplicationMessages">
<xsl:if test="not(/document/XMLC_Params/XMLC_Exception) and not(/document/XMLC_Params/XMLC_Info) and not(/document/XMLC_Params/XMLC_Warning)">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<xsl:call-template name="xslc:Exception">
<xsl:with-param name="MarginBottom">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_Warning or /document/XMLC_Params/XMLC_Info">2</xsl:when>
<xsl:otherwise>10</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="ExtendedMessage" select="$ExtendedExceptionMessage"/>
</xsl:call-template>
<xsl:call-template name="xslc:Warning">
<xsl:with-param name="MarginBottom">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_Info">2</xsl:when>
<xsl:otherwise>10</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="ExtendedMessage" select="$ExtendedExceptionMessage"/>
</xsl:call-template>
<xsl:call-template name="xslc:Info">
<xsl:with-param name="MarginBottom">10</xsl:with-param>
<xsl:with-param name="ExtendedMessage" select="$ExtendedExceptionMessage"/>
</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="LINE">
<xsl:value-of select="."/>
<xsl:if test="position() != last()">
<br/>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:PoweredBy">
<xsl:if test="/document/XMLC_Params/XMLC_PoweredBy != ''">
<br/>
<div align="right">
<xsl:variable name="PoweredByURL">
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_PoweredByURL != ''">
<xsl:value-of select="/document/XMLC_Params/XMLC_PoweredByURL"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/document/XMLC_Params/XMLC_RegisterURL"/>FormEML_REG?EML_VALUE=<xsl:value-of select="/document/XMLC_Params/XMLC_RegisteredEmail"/>&amp;URL_NAME=<xsl:value-of select="/document/XMLC_Params/XMLC_ProductName"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$PoweredByURL}" target="_blank">
<xsl:value-of select="/document/XMLC_Params/XMLC_PoweredBy"/>
</a>
</div>
</xsl:if>
</xsl:template>
<xsl:template name="xslc:ActionPanel">
<xsl:param name="Name"/>
<xsl:param name="Items">
<dummy/>
</xsl:param>
<xsl:param name="Content"/>
<xsl:param name="Dark"/>
<xsl:param name="Expanded">1</xsl:param>
<xsl:param name="Title"/>
<xsl:param name="TitleImage"/>
<xsl:param name="WaterMark"/>
<xsl:variable name="IsDark">
<xsl:if test="$Dark = '1'">_dark</xsl:if>
</xsl:variable>
<xsl:variable name="VItems" select="msxsl:node-set($Items)"/>
<table cellpadding="0" cellspacing="0" class="apTable">
<tr>
<td class="apTitle{$IsDark}">
<table cellpadding="0" cellspacing="0" width="100%">
<tr onclick="apShowHide{$IsDark}('{$Name}');" onmouseover="apHeaderOver{$IsDark}('{$Name}');" onmouseout="apHeaderOut{$IsDark}('{$Name}');">
<xsl:if test="$TitleImage != ''">
<td style="cursor: pointer;">
<img align="absmiddle" alt="" border="0" src="{$TitleImage}"/>
</td>
</xsl:if>
<td class="apHeader{$IsDark}" id="apHeaderLabel{$Name}" width="100%" valign="bottom">
<xsl:if test="$TitleImage != ''">
<xsl:attribute name="style">padding-left: 4px</xsl:attribute>
</xsl:if>
<xsl:value-of select="$Title"/>
</td>
<td style="cursor: pointer;" valign="bottom" width="25">
<xsl:variable name="ImageName">
<xsl:choose>
<xsl:when test="$Expanded != '1'">expand</xsl:when>
<xsl:otherwise>collapse</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<img id="apHeaderImage{$Name}" alt="" border="0" src="{$XMLC_SkinPath}actionpanel/{$ImageName}{$IsDark}.gif"/>
</td>
</tr>
</table>
</td>
</tr>
<tr id="apContent{$Name}">
<xsl:if test="$Expanded != '1'">
<xsl:attribute name="style">display: none;</xsl:attribute>
</xsl:if>
<td class="apContent{$IsDark}">
<xsl:if test="$WaterMark != ''">
<xsl:attribute name="style">background-attachment:fixed; background-image:url(<xsl:value-of select="$WaterMark"/>); background-position:bottom right; background-repeat:no-repeat</xsl:attribute>
</xsl:if>
<xsl:if test="$VItems/Item">
<table cellpadding="0" cellspacing="0" width="100%">
<xsl:for-each select="$VItems/Item">
<xsl:choose>
<xsl:when test="@Separator and @Separator = '1'">
<xsl:call-template name="xslc:ActionPanel.Separator">
<xsl:with-param name="Dark" select="@Dark"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@Caption and not(@HRef) and not(@OnClick)">
<tr>
<xsl:variable name="ImagePath">
<xsl:if test="@ImagePath">
<xsl:value-of select="@ImagePath"/>
</xsl:if>
</xsl:variable>
<xsl:if test="$ImagePath != ''">
<td class="apItemImage">
<xsl:choose>
<xsl:when test="@ImagePath">
<img align="absmiddle" border="0" src="{@ImagePath}"/>
</xsl:when>
<xsl:otherwise>&#160;</xsl:otherwise>
</xsl:choose>
</td>
</xsl:if>
<td class="apItemLabel" width="100%">
<xsl:if test="$ImagePath = ''">
<xsl:attribute name="colspan">2</xsl:attribute>
</xsl:if>
<xsl:value-of select="@Caption"/>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<xsl:if test="@xslc_id">
<xsl:attribute name="xslc_id"><xsl:value-of select="@xslc_id"/></xsl:attribute>
</xsl:if>
<xsl:if test="@ID">
<xsl:attribute name="id"><xsl:value-of select="@ID"/></xsl:attribute>
</xsl:if>
<xsl:variable name="HRef">
<xsl:choose>
<xsl:when test="@HRef and @HRef != ''">
<xsl:value-of select="@HRef"/>
</xsl:when>
<xsl:otherwise>.</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td class="apItemImage">
<xsl:choose>
<xsl:when test="@ImagePath">
<a href="{$HRef}">
<xsl:if test="@OnClick and @OnClick != ''">
<xsl:attribute name="onclick"><xsl:value-of select="@OnClick"/></xsl:attribute>
</xsl:if>
<xsl:if test="@Target and @Target != ''">
<xsl:attribute name="target"><xsl:value-of select="@Target"/></xsl:attribute>
</xsl:if>
<img align="absmiddle" border="0" src="{@ImagePath}"/>
</a>
</xsl:when>
<xsl:otherwise>&#160;</xsl:otherwise>
</xsl:choose>
</td>
<td class="apItemLabel" width="100%">
<a href="{$HRef}">
<xsl:if test="@OnClick and @OnClick != ''">
<xsl:attribute name="onclick"><xsl:value-of select="@OnClick"/></xsl:attribute>
</xsl:if>
<xsl:if test="@Target and @Target != ''">
<xsl:attribute name="target"><xsl:value-of select="@Target"/></xsl:attribute>
</xsl:if>
<xsl:value-of select="@Caption"/>
</a>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</table>
</xsl:if>
<xsl:if test="$Content != ''">
<xsl:copy-of select="$Content"/>
</xsl:if>
</td>
</tr>
</table>
<br/>
</xsl:template>
<xsl:template name="xslc:ActionPanelContainer">
<xsl:param name="Content"/>
<xsl:param name="Padding">8px</xsl:param>
<table cellpadding="0" cellspacing="0" class="apContainer" height="100%" style="background-image: url({$XMLC_SkinPath}actionpanel/container_bg.jpg);">
<tr height="100%" valign="top">
<td style="height: 100%; padding: {$Padding};">
<xsl:copy-of select="$Content"/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template name="xslc:ActionPanel.Head">
<link rel="stylesheet" type="text/css" href="{$XMLC_SkinPath}actionpanel/actionpanel.css"/>
</xsl:template>
<xsl:template name="xslc:ActionPanel.Separator">
<xsl:param name="Dark"/>
<xsl:variable name="IsDark">
<xsl:if test="$Dark = '1'">_dark</xsl:if>
</xsl:variable>
<tr>
<td colspan="2" style="padding: 2px 0px 6px 0px" width="100%">
<img alt="" border="0" src="{$XMLC_SkinPath}actionpanel/separator{$IsDark}.gif" height="1" width="100%"/>
</td>
</tr>
</xsl:template>
<xsl:template name="xslc:AnimateField">
<xsl:param name="onblur"/>
<xsl:param name="onfocus"/>
<xsl:param name="onmouseout"/>
<xsl:param name="onmouseover"/>
<xsl:attribute name="class">Field</xsl:attribute>
<xsl:attribute name="onblur">fieldOnBlur(this); checkField(this);<xsl:value-of select="$onblur"/></xsl:attribute>
<xsl:attribute name="onfocus">fieldOnFocus(this); <xsl:value-of select="$onfocus"/></xsl:attribute>
<xsl:attribute name="onmouseout">fieldOnMouseOut(this); <xsl:value-of select="$onmouseout"/></xsl:attribute>
<xsl:attribute name="onmouseover">fieldOnMouseOver(this); <xsl:value-of select="$onmouseover"/></xsl:attribute>
</xsl:template>
<xsl:template name="xslc:ToolButtonActionMenuToggler">
<xsl:param name="DisplayActionMenuToggler">1</xsl:param>
<xsl:param name="DisplaySeparator">RIGHT</xsl:param>
<xsl:param name="DisplayReduceButton">1</xsl:param>
<xsl:if test="$DisplayActionMenuToggler = '1'">
<xsl:if test="$DisplaySeparator = 'LEFT'">
<ToolbarButton>
<img border="0" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
</xsl:if>
<ToolbarButton Name="ActionMenuToggler">
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<xsl:variable name="Image">button_<xsl:choose>
<xsl:when test="$DisplayReduceButton = '1'">reduce</xsl:when>
<xsl:otherwise>expand</xsl:otherwise>
</xsl:choose>frame.gif</xsl:variable>
<img id="ActionMenuToggler" alt="{/document/Locales/ShowHideActionMenu}" onclick="return ShowHideActionMenu();" src="{$XMLC_PictosPath}{$Image}" style="cursor: pointer;" title="{/document/Locales/ShowHideActionMenu}"/>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<xsl:if test="$DisplaySeparator = 'RIGHT'">
<ToolbarButton>
<img border="0" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
