<script type="text/javascript">
<!--
function displayAccessLimitationSelectionForm(select,role_id)
{
	absolute = "display_absolute_" + role_id;
	relative = "display_relative_" + role_id;
	unlimited = "display_unlimited_" + role_id;
	
	if (select.selectedIndex == 0)
	{
		document.getElementById(absolute).style.display = "none";
		document.getElementById(relative).style.display = "none";
		document.getElementById(unlimited).style.display = "none";
	}
	
	if (select.selectedIndex == 1)
	{
		document.getElementById(absolute).style.display = "none";
		document.getElementById(relative).style.display = "none";
		document.getElementById(unlimited).style.display = "inline";
	}
	
	if (select.selectedIndex == 2)
	{
		document.getElementById(absolute).style.display = "inline";
		document.getElementById(relative).style.display = "none";
		document.getElementById(unlimited).style.display = "none";
	}
	
	if (select.selectedIndex == 3)
	{
		document.getElementById(absolute).style.display = "none";
		document.getElementById(unlimited).style.display = "none";
		document.getElementById(relative).style.display = "inline";
	}
}
//-->
</script>

	<form class="il_Form" name="cmd" method="post" action="{FORMACTION}">
	  <table class="fullwidth" >
		  <tr class="std">
			<th class="std" colspan="3">
			  <div style="float:left;">{TXT_REG_ROLE_ACCESS_LIMITATIONS}</div>
			</th>
		  </tr>
		  <tr class="tblheader">
			<th class="std" nowrap="nowrap">{TXT_ROLE}</th>
			<th class="std" colspan="2">{TXT_ACCESS_LIMITATION_MODE}</th>
		  </tr>
		  <!-- BEGIN roles -->
		  <tr>
			<td class="{CSSROW}" width="10%">
			  {ROLE_TITLE}
			</td>
			<td class="{CSSROW}" width="20%">
			  <div style="float:left;">
			  {SEL_ACCESS_LIMITATION}
			  </div>
			</td>
			<td class="{CSSROW}">
      		<div id="display_unlimited_{ROLE_ID}" style="display:{CSS_DISPLAY_UNLIMITED}">
      		{TXT_ACCESS_LIMITATION_UNLIMITED}
      		</div>
      		<div id="display_absolute_{ROLE_ID}" style="display:{CSS_DISPLAY_ABSOLUTE}">
      		{SEL_ACCESS_LIMITATION_ABSOLUTE}
      		</div>
      		<div id="display_relative_{ROLE_ID}" style="display:{CSS_DISPLAY_RELATIVE}">
      		<input type="text" size="3" name="access_limitation_relative_{ROLE_ID}[d]" value="{DAYS}"/>{TXT_DAYS}&nbsp;
      		<input type="text" size="3" name="access_limitation_relative_{ROLE_ID}[m]" value="{MONTHS}"/>{TXT_MONTHS}&nbsp;
      		<input type="text" size="3" name="access_limitation_relative_{ROLE_ID}[y]" value="{YEARS}"/>{TXT_YEARS}
      		</div>
			</td>
		  </tr>
		  <!-- END roles -->
		  <tr>
			<td class="submit" colspan="3">
			  <div style="text-align:right;">
				<input type="submit" class="submit" name="cmd[saveRoleAccessLimitations]" value="{BTN_SAVE}" />
				<input type="submit" class="submit" name="cmd[view]" value="{BTN_CANCEL}" />
			  </div>
			</td>
		  </tr>
	  </table>