<html>
<head>
<title>Content_Filtering_Directory</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--base href="$$BASE_URL$$"-->
<link href="css/trend-style-new.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="javascripts/localization.js"></script>
<script language="JavaScript" src="javascripts/trend-ui-new.js"></script>
<script language="JavaScript" src="javascripts/OLH_Mapping.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function jsInitPage() {
	// init page
}
function jsSubmit() {
	if (!checkPathFormat(document.fmMain.txtQuarantineDir.value,STR_ERR_INVALID_DIR,false)) {
		jsFocus(document.fmMain.txtQuarantineDir);
		return false;
	}
	if (!checkPathFormat(document.fmMain.txtArchiveDir.value,STR_ERR_INVALID_DIR,false)) {
		jsFocus(document.fmMain.txtArchiveDir);
		return false;
	}
	jsDisableButton();
	document.fmMain.CfgRedirect.value="$$REDIRECT_TO_PAGE$$";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsCancel() {
	jsDisableButton();
	document.location.href = "$$FILTER_CF_PAGE$$";
}
function jsApply(target) {
	if(target == "archive") {
		if (!checkPathFormat(document.fmMain.txtArchiveDir.value,STR_ERR_INVALID_DIR,false)) {
			jsFocus(document.fmMain.txtArchiveDir);
			return false;
		}
		document.fmMain.FormAction.value = "ApplyArchivePath";
	} else {
		if (!checkPathFormat(document.fmMain.txtQuarantineDir.value,STR_ERR_INVALID_DIR,false)) {
			jsFocus(document.fmMain.txtQuarantineDir);
			return false;
		}
		document.fmMain.FormAction.value = "ApplyQuarantinePath";
	}
	jsDisableButton();
	document.fmMain.CfgRedirect.value="";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsDisableButton() {
	document.fmMain.btnApply[0].disabled = true;
	document.fmMain.btnApply[1].disabled = true;
	document.fmMain.btnSubmit.disabled = true;
	document.fmMain.btnCancel.disabled = true;
}
//-->
</script>
</head>

<body onload="jsInitPage();" onclick="checkPageStatus(event);">
<form id="fmMain" name="fmMain" action="$$FORM_ACTION$$" method="POST">
<!--Hidden Field-->
<input type="hidden" name="FormAction" value="Finish">
<input type="hidden" name="CfgRedirect"/>
<!--/Hidden Field-->
<!--Page Title-->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title">Content Filtering > Directories</td>
	<td valign="bottom" align="right">
		<a href="javascript:jsMapOnlineHelp('scan\Contentfiltering_Directory.htm');" class="moretestblue">
		<img src="images/question.gif" border="0"> Help</a></td></tr>
<tr><td colspan="2" height="4"></td></tr>
<tr><td colspan="2" height="1" background="images/dot.gif"></td></tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<!--/Page Title-->

<table width="98%" border="0" cellpadding="0" cellspacing="0">
<!--Page Description--><!--/Page Description-->
<!--Page Content-->
<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Quarantine Directory||-->
		<tr><td class="tableheadergreyS">Quarantine Directory</td></tr>
		<tr><td class="data2" height="20">Type the directory where quarantined messages will be saved.</td></tr>
		<tr><td class="data1" height="20"><input type=text class="text" id="txtQuarantineDir" name="txtQuarantineDir" value="$$ACTION_QUARANTINE_PATH$$" style="width:420">
			<input type=button class="text" id="btnApply" name="btnApply" value="Apply to All" onclick="jsApply('quarantine');"></td></tr>
		<tr><td class="data1" height="20">For example: c:\Program Files\Trend Micro\SMEX\storage\quarantine</td></tr>
		<!--||Archive Directory||-->
		<tr><td class="tableheadergreyM">Archive Directory</td></tr>
		<tr><td class="data2" height="20">Type the directory where archived messages will be saved.</td></tr>
		<tr><td class="data1" height="20"><input type=text class="text" id="txtArchiveDir" name="txtArchiveDir" value="$$ACTION_ARCHIVE_PATH$$" style="width:420">
			<input type=button class="text" id="btnApply" name="btnApply" value="Apply to All" onclick="jsApply('archive');"></td></tr>
		<tr><td class="data1" height="20">For example: c:\Program Files\Trend Micro\SMEX\storage\archive</td></tr>
		</table></td></tr>
<tr><td height="10"></td></tr>
<tr><td><input type=button class="text" id="btnSubmit" name="btnSubmit" value="Save" onclick="jsSubmit();">
		<input type=button class="text" id="btnCancel" name="btnCancel" value="Cancel" onclick="jsCancel();"></td></tr>
<!--/Content-->
</table>

</form>
</body>
</html>