<script type="text/javascript">
<!--
function updateScan(form)
{
	if (form.clean.checked ||
            form.restore.checked || 
            form.purge.checked ||
            form.restore_trash.checked ||
            form.purge_trash.checked)
        {
            form.scan.checked = true;
            form.scan.disabled = true;
        }
        else
        {
            form.scan.disabled = false;
        }
}

function handleClean(form)
{
	updateScan(form);
}

function handleRestore(form)
{
	if (form.restore.checked)
	{
		form.purge.disabled = true;
	}
	else
	{
		form.purge.disabled = false;	
	}
	updateScan(form);
}

function handlePurge(form)
{
	if (form.purge.checked)
	{
		form.restore.disabled = true;
	}
	else
	{
		form.restore.disabled = false;	
	}
	updateScan(form);
}

function handleRestoreTrash(form)
{
	if (form.restore_trash.checked)
	{
		form.purge_trash.disabled = true;
	}
	else
	{
		form.purge_trash.disabled = false;	
	}
	updateScan(form);
}

function handlePurgeTrash(form)
{
	if (form.purge_trash.checked)
	{
		form.restore_trash.disabled = true;
	}
	else
	{
		form.restore_trash.disabled = false;	
	}
	updateScan(form);
}
//-->
</script>
<form action="{FORMACTION}" name="ScanOptions" method="post">
<table class="fullwidth">
<tr class="tbltitle">
  <td colspan="{COLSPAN}">
  <table class="fullwidth_invisible">
    <tr class="tbltitle">
	  <td class="tbltitle" align="left">&nbsp;{TXT_ANALYZE_TITLE}</td>
	  <td align="right">&nbsp;</td>
	</tr>
  </table>
  </td>
</tr>
  <tr class="tblheader">
    <td class="std" colspan="3">{TXT_ANALYSIS_OPTIONS}</td>
  </tr>
  <tr>
   <td class="option"><label for="scan">{TXT_SCAN}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[scan]"  value="1" id="scan" checked="checked" /></td>
   <td class="option_desc">{TXT_SCAN_DESC}</td>
  </tr>
  <tr>
   <td class="option"><label for="dump_tree">{TXT_DUMP_TREE}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[dump_tree]"  value="1" id="dump_tree"/></td>
   <td class="option_desc">{TXT_DUMP_TREE_DESC}</td>
  </tr>
  <tr class="tblheader">
    <td class="std" colspan="3">{TXT_REPAIR_OPTIONS}</td>
  </tr>
  <tr>
   <td class="option"><label for="clean">{TXT_CLEAN}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[clean]" value="1" id="clean" onClick="handleClean(document.ScanOptions)" /></td>
   <td class="option_desc">{TXT_CLEAN_DESC}</td>
  </tr>
  <tr>
   <td class="option"><label for="restore">{TXT_RESTORE}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[restore]" value="1" id="restore" onClick="handleRestore(document.ScanOptions)" /></td>
   <td class="option_desc">{TXT_RESTORE_DESC}</td>
  </tr>
  <tr>
   <td class="option"><label for="purge">{TXT_PURGE}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[purge]"  value="1" id="purge" onClick="handlePurge(document.ScanOptions)" /></td>
   <td class="option_desc">{TXT_PURGE_DESC}</td>
  </tr>
  <tr>
   <td class="option"><label for="restore_trash">{TXT_RESTORE_TRASH}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[restore_trash]" id="restore_trash" value="1" onClick="handleRestoreTrash(document.ScanOptions)" /></td>
   <td class="option_desc">{TXT_RESTORE_TRASH_DESC}</td>
  </tr>
  <tr>
   <td class="option"><label for="purge_trash">{TXT_PURGE_TRASH}</label></td>
   <td class="option_value"><input type="checkbox" name="mode[purge_trash]" id="purge_trash" value="1" onClick="handlePurgeTrash(document.ScanOptions)" /></td>
   <td class="option_desc">{TXT_PURGE_TRASH_DESC}</td>
  </tr>
  <tr class="tblheader">
    <td class="std" colspan="3">{TXT_OUTPUT_OPTIONS}</td>
  </tr>
  <tr>
   <td class="option"><label for="log_scan">{TXT_LOG_SCAN}</label></td>
   <td class="option_value"><input type="checkbox" name="log_scan" id="log_scan" value="1" checked="checked"/></td>
   <td class="option_desc">{TXT_LOG_SCAN_DESC}</td>
  </tr>
  <tr>
	<td class="submit" colspan="3" align="right">
<!-- BEGIN BTN_VIEW_LOG -->
	<input class="submit" type="submit" name="cmd[viewScanLog]" value="{TXT_VIEW_LOG}"/>
<!-- END BTN_VIEW_LOG -->
	<input class="submit" type="submit" name="cmd[check]" value="{TXT_SUBMIT}"/>
	</td>
  </tr>
</table>
</form>