<html>
<head>
<title>Content Filtering - Rule Edit Monitor</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" src="javascripts/prototype.js"></script>
<script language="JavaScript" src="javascripts/Server_Role_Dependency.js"></script>
<script language="JavaScript" src="cgiDispatcher.exe?Page=administration/ServerRoleInfo.htm"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
CANCEL_EVENT = true;
var sCheckExpressionResult = "$$CHECK_EXPRESSION_RESULT$$"; // result of checking expression
/*Main ====================================================================== */
function jsInitPage() {
    //if(vPlatform == "Ex2007"){
        //alter tooltips content in target tag
        //TIP_CF_ADDGENERAL_CONTENT = TIP_CF_ADDGENERAL_CONTENT_EX2007;
    //} 
    TIP_REPLACEHEADER_TITLE = TIP_REPLACEHEADER_TITLE_MONITOR; 
    TIP_REPLACEHEADER_CONTENT = TIP_REPLACEHEADER_CONTENT_MONITOR;
    TIP_QSINGLEHEADER_TITLE = TIP_QSINGLEHEADER_TITLE_MONITOR; 
    TIP_QSINGLEHEADER_CONTENT = TIP_QSINGLEHEADER_CONTENT_MONITOR;  
	var bCheckExpression = true;
	var bCheckNoError = false;
	var sCheckAlertMsg;
	var oErrorOn;
	var oForm = document.fmMain;
	if(sCheckExpressionResult == "from") // error on expression of 'from' field
	{
		oErrorOn = oForm.txtEmailFrom;
		sCheckAlertMsg = STR_ALR_WARN_INVALID_FROM_EXPRESSION;
	}
	else if(sCheckExpressionResult == "to") // error on expression of 'to' field
	{
		oErrorOn = oForm.txtEmailTo;
		sCheckAlertMsg = STR_ALR_WARN_INVALID_TO_EXPRESSION;
	}
	else if(sCheckExpressionResult == "cc") // error on expression of 'cc' field
	{
		oErrorOn = oForm.txtEmailCc;
		sCheckAlertMsg = STR_ALR_WARN_INVALID_CC_EXPRESSION;
	}
	else if(sCheckExpressionResult == "no error")
		bCheckNoError = true;
	else
		bCheckExpression = false;
   
    //set UI dependency
	jsServerRoleDependency("scan/Contentfiltering_Edit_Monitor.htm");
    
	// Init Page
	//jsCheckTarget(document.fmMain.chkSubject);
	
	if($$SHOW_QUARANTINE_DIR1$$ == false) {
			//document.getElementById("radioReplace").style.display="none";
			document.getElementById("QuaratineEntire").style.display="none";
			//document.getElementById("txtQuarantine1").style.display="none";
			//document.getElementById("QuarantineDirectory").style.display="none";
			//document.getElementById("radioDeleteAll").style.display="none";
			//document.getElementById("txtDeleteAll").style.display="none";
			//document.getElementById("radioArchive").style.display="none";
	}
	setOptionValueEx(document.fmMain.optAdminMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(document.fmMain.optInSenderMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(document.fmMain.optExSenderMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(document.fmMain.optInRecipientMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(document.fmMain.optExRecipientMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(document.fmMain.optSNMPMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	// set max length
	document.fmMain.txtRuleName.maxLength		 = INT_LMAX_CF_RULENAME;
	document.fmMain.txtKeyword.maxLength		 = INT_LMAX_CF_KEYWORD;
	document.fmMain.txtReplacementFile.maxLength = INT_LMAX_FILENAME_RF;
	document.fmMain.txtQuarantineDir.maxLength	 = INT_LMAX_PATH_DIR;
	document.fmMain.txtArchiveDir.maxLength		 = INT_LMAX_PATH_DIR;
	document.fmMain.txtSNMPCommunity.maxLength	 = INT_LMAX_SNMP;
	document.fmMain.txtNotifyAdminSettingsPeriod.maxLength		 = INT_LMAX_NOTI_PERIOD;
	document.fmMain.txtNotifyAdminSettingsOccurence.maxLength	 = INT_LMAX_NOTI_OCCUR;
	document.fmMain.txtNotifyAdminTo1.maxLength	 = INT_LMAX_EM_ADDR_M;
	var ntf_email_subject_array = new Array(document.fmMain.txtNotifyAdminSubject,
											document.fmMain.txtNotifyInSenderSubject,
											document.fmMain.txtNotifyExSenderSubject,
											document.fmMain.txtNotifyInRecipientSubject,
											document.fmMain.txtNotifyExRecipientSubject);
	for (var i=0;i<ntf_email_subject_array.length;i++) {
		ntf_email_subject_array[i].maxLength = INT_LMAX_EM_SUBJECT;
	}
	// release event capture
	CANCEL_EVENT = false;	
	setListboxUI(document.getElementById("lstKeyword"),document.getElementById("lstKeywordInner"),document.getElementById("lstKeywordOuter"));
	
	if(bCheckExpression && !bCheckNoError)
	{
		alert(sCheckAlertMsg);
		oErrorOn.focus();
		oErrorOn.select();
	}
	else
	{
		oForm.txtRuleName.focus();
		oForm.txtRuleName.select();	// highlighted the rule name
	}
	
	jsUIDependency();
}
function jsSubmit() {
	// add some checking
	var txtRuleName_value = jsTrim(document.fmMain.txtRuleName);
	if (txtRuleName_value.length == 0 || document.fmMain.txtRuleName.value.length == 0) {
		alert(STR_ERR_CHECK_RULENAME);
		jsFocus(document.fmMain.txtRuleName);
		return false;
	}
	if (document.fmMain.txtEmailFrom.value=="" && document.fmMain.txtEmailTo.value=="" && document.fmMain.txtEmailCc.value=="") {
		alert(STR_ERR_CHECK_EMAILACCOUNT);
		return false;
	}
	if (!(document.fmMain.chkSubject.checked || document.fmMain.chkBody.checked || document.fmMain.chkAttachment.checked)) {
		alert(STR_ERR_CHECK_SCANTARGET);
		return false;
	}
	if (document.fmMain.lstKeyword.length==0) { 
		alert(STR_ERR_CHECK_KEYWORD);
		return false;
	}
	if (!checkFileNameFormat(document.fmMain.txtReplacementFile.value, STR_ERR_INVALID_REPLACEMENT_FILE_NAME, INT_REPLACEMENT_FILE_NAME_MAX, INT_REPLACEMENT_FILE_NAME_MIN, false)) {
		setUITagDisplay(2,3,'Action');
		if(document.getElementById("tabReplacement_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabReplacement"));
		jsFocus(document.fmMain.txtReplacementFile);
		return false;
	}
	if (!checkNumberRange(document.fmMain.txtReplacementText.value.length,INT_LMAX_REPLACEMENT,0,STR_WARN_REPLACEMENT)) {
		setUITagDisplay(2,3,'Action');
		if(document.getElementById("tabReplacement_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabReplacement"));
		jsFocus(document.fmMain.txtReplacementText);
		return false;
	}
	//$$SHOW_QUARANTINE_DIR2$$
	if (!checkPathFormat(document.fmMain.txtQuarantineDir.value,STR_ERR_INVALID_DIR,false)) {
		setUITagDisplay(2,3,'Action');
		if(document.getElementById("tabDirectory_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabDirectory"));
		jsFocus(document.fmMain.txtQuarantineDir);
		return false;
	}
	if (!checkPathFormat(document.fmMain.txtArchiveDir.value,STR_ERR_INVALID_DIR,false)) {
		setUITagDisplay(2,3,'Action');
		if(document.getElementById("tabDirectory_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabDirectory"));
		jsFocus(document.fmMain.txtArchiveDir);
		return false;
	}
	// notification
	if(document.getElementById("chkNotifyAdmin").checked){
	    if(document.fmMain.txtNotifyAdminTo1.value == ""){
	        alert(STR_ERR_NOTIFY_ADMIN_ACCOUNT);
	        setUITagDisplay(3,3,'Notification');
	        if(document.getElementById("tabNotifyAdmin_items").style.display=="none")
	                document.getElementById("tabNotifyAdmin").onclick();
		    jsFocus(document.fmMain.txtNotifyAdminTo1);
		    return false;
	    }
	}
	if(document.getElementById("chkNotifySNMP").checked){
	    if (!checkIPAddressFormat(document.fmMain.txtSNMPIP.value,STR_ERR_INVALID_IPADDRESS,false)) {
		    setUITagDisplay(3,3,'Notification');
		    if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
		    jsFocus(document.fmMain.txtSNMPIP);
		    return false;
	    }
	    if (!checkNumberRange(document.fmMain.txtSNMPCommunity.value.length,INT_NMIN_SNMP,INT_NMAX_SNMP,STR_WARN_SNMP,false)) {
		    setUITagDisplay(3,3,'Notification');
		    if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
		    jsFocus(document.fmMain.txtSNMPCommunity);
		    return false;	
	    }
	}
	if (!checkNumberRange(document.fmMain.txtNotifyAdminSettingsPeriod.value,1,9999,STR_ERR_ALERT_NUMBER_RANGE,false)) {
		setUITagDisplay(3,3,'Notification');
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminSettingsPeriod);
		return false;	
	}
	if (!checkNumberRange(document.fmMain.txtNotifyAdminSettingsOccurence.value,1,1000,STR_ERR_ALERT_NUMBER_RANGE,false)) {
		setUITagDisplay(3,3,'Notification');
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminSettingsOccurence);
		return false;	
	}
	if (!checkMultiEmailPatternFormat(document.fmMain.txtNotifyAdminTo1.value,STR_ERR_INVALID_EMAIL) ||
		!checkNumberRange(document.fmMain.txtNotifyAdminTo1.value.length,1,INT_LMAX_EM_ADDR_M,STR_WARN_EM_ADDR_M)) {
		setUITagDisplay(3,3,'Notification');
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminTo1);
		return false;
	}
	var ntf_email_subject_array = new Array(document.fmMain.txtNotifyAdminSubject,
											document.fmMain.txtNotifyInSenderSubject,
											document.fmMain.txtNotifyExSenderSubject,
											document.fmMain.txtNotifyInRecipientSubject,
											document.fmMain.txtNotifyExRecipientSubject);
	for (var i=0;i<ntf_email_subject_array.length;i++) {
		if (!checkNumberRange(ntf_email_subject_array[i].value.length,0,INT_LMAX_EM_SUBJECT,STR_WARN_EM_SUBJECT)) {
			setUITagDisplay(3,3,'Notification');
			if (i == 0) {
				if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
			} else if (i == 1 || i == 2) {
				if (document.getElementById("tabNotifySender_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifySender"));
			} else if (i == 3 || i == 4) {
				if (document.getElementById("tabNotifyRecipient_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyRecipient"));
			}
			jsFocus(ntf_email_subject_array[i]);
			return false;
		}
	}
	var ntf_email_message_array = new Array(document.fmMain.txtNotifyAdminMessage,
											document.fmMain.txtInSenderMessage,
											document.fmMain.txtExSenderMessage,
											document.fmMain.txtInRecipientMessage,
											document.fmMain.txtExRecipientMessage);
	for (var i=0;i<ntf_email_message_array.length;i++) {
		if (!checkNumberRange(ntf_email_message_array[i].value.length,0,INT_LMAX_EM_CONTENT,STR_WARN_EM_CONTENT)) {
			setUITagDisplay(3,3,'Notification');
			if (i == 0) {
				if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
			} else if (i == 1 || i == 2) {
				if (document.getElementById("tabNotifySender_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifySender"));
			} else if (i == 3 || i == 4) {
				if (document.getElementById("tabNotifyRecipient_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyRecipient"));
			}
			jsFocus(ntf_email_message_array[i]);
			return false;
		}
	}
	if (!checkNumberRange(document.getElementById("txtSNMPMessage").value.length,0,INT_LMAX_EM_CONTENT,STR_WARN_EM_CONTENT)) {
		setUITagDisplay(3,3,'Notification');
		if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
		jsFocus(document.getElementById("txtSNMPMessage"));
		return false;
	}
	setOption2Selected(document.fmMain.lstMatch);
	setOption2Selected(document.fmMain.lstKeyword);
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnSubmit.disabled = true;
	document.fmMain.btnCancel.disabled = true;
	// submit page
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsCancel() {
	document.location.href = "$$FILTER_CF_PAGE$$";
}
/*function jsCheckTarget(oSource) {
    if (oSource.checked && document.getElementById("rdoActionReplace").checked) {
	    if (!confirm(STR_ALR_TARGET_HEAD_SUBJECT)) {
		    oSource.checked = false;
		    return;
	    }
    }
    //document.getElementById("rdoActionReplace").disabled = (document.fmMain.chkSubject.checked);
    //document.getElementById("rdoActionQuarantineItem").disabled = (document.fmMain.chkSubject.checked);
    //if (document.getElementById("rdoActionReplace").disabled && document.getElementById("rdoActionReplace").checked) {document.getElementById("rdoQuarantineEntire").checked = true;}
}*/
function jsUIDependency(){
    if(document.getElementById("chkSubject").type == "checkbox"){
        document.getElementById("optReplaceTipIcon").style.display = (document.getElementById("chkSubject").checked && document.getElementById("rdoActionReplace").checked)?"":"none";
        document.getElementById("optQuarantineSingleTipIcon").style.display = (document.getElementById("chkSubject").checked && document.getElementById("rdoActionQuarantineItem").checked)?"":"none";
        document.getElementById("TargetSubject_TipIcon").style.display = (document.getElementById("chkSubject").checked && (document.getElementById("rdoActionReplace").checked || document.getElementById("rdoActionQuarantineItem").checked))?"":"none";
    }
    document.getElementById("optQuarantineEntireTipIcon").style.display = (document.getElementById("rdoQuarantineEntire").checked && vPlatform=="Ex2007" && vBridgeHead_MailBox)?"":"none";
    document.getElementById("DeleteAllTipIcon").style.display = (document.getElementById("rdoDeleteAll").checked && vEx2000_2003=="EX2000")?"":"none";  
    //document.getElementById("optArchiveEntireTipIcon").style.display = (document.getElementById("rdoArchiveEntire").checked)?"":"none";
   
    //Notification
	document.getElementById("txtSNMPIP").disabled = (!document.getElementById("chkNotifySNMP").checked);
	document.getElementById("txtSNMPCommunity").disabled = (!document.getElementById("chkNotifySNMP").checked);
	//document.getElementById("optSNMPMessageType").disabled = (!document.getElementById("chkNotifySNMP").checked);
	//document.getElementById("txtSNMPMessage").disabled = (!document.getElementById("chkNotifySNMP").checked); 
}
/* ====================================================================== Main */

/* Keyword =================================================================== */
function jsClearList(oTarget) {
	// Clear List
	for (var i=oTarget.length;i>0;i--) {
		oTarget.remove(i-1);
	}
}
function jsAddKeyword(sParam) {
	if (document.fmMain.txtKeyword.value.length==0) return false;
	if (!checkNumberRange(document.fmMain.lstKeyword.length+1,INT_NMAX_CF_KEYWORD,INT_NMIN_CF_KEYWORD,STR_WARN_CF_KEYWORD,false)) return false;
	
	document.fmMain.lstKeyword.disabled = true;
	document.fmMain.txtKeyword.value = document.fmMain.txtKeyword.value.replace(String.fromCharCode(9)," ");
	window.ifmSynonym.jsGetSynonym(document.fmMain.txtKeyword.value);
}
function jsDelKeyword() {
	for (var i=0;i<document.fmMain.lstKeyword.length;i++) {
		document.fmMain.lstMatch.options[i].selected = document.fmMain.lstKeyword.options[i].selected;
	}
	setUIDelfromList(document.fmMain.lstMatch);
	setUIDelfromList(document.fmMain.lstKeyword);
	jsClearList(document.fmMain.lstSynInclude);
	jsClearList(document.fmMain.lstSynExclude);
	
	document.getElementById("lstKeyword").style.width = null;
	setListboxUI(document.getElementById("lstKeyword"),document.getElementById("lstKeywordInner"),document.getElementById("lstKeywordOuter"));
}
function jsChangeKeyword() {
	var nCount = 0;
	var i = 0;
	for (i=0;i<document.fmMain.lstKeyword.length;i++) {
		if (document.fmMain.lstKeyword.options[i].selected) { nCount++;}
	}
	if (nCount>1) {
		jsClearList(document.fmMain.lstSynInclude);
		jsClearList(document.fmMain.lstSynExclude);
		return;
	}
	jsSetSynonym(document.fmMain.lstMatch.options[document.fmMain.lstKeyword.selectedIndex].value);
}
function jsAddSynonym(sParam) {
	if (document.fmMain.txtKeyword.value.length==0) return false;
	document.fmMain.lstKeyword.disabled = false;
	if (sParam=="") {
		alert(STR_ERR_CF_KEYWORD);
		return false;
	}
	setUIAddItem(sParam,document.fmMain.lstMatch);
	
	document.getElementById("lstKeyword").style.width = null;
	setUIMoveItem(document.fmMain.txtKeyword,document.fmMain.lstKeyword,true);
	setListboxUI(document.getElementById("lstKeyword"),document.getElementById("lstKeywordInner"),document.getElementById("lstKeywordOuter"));
}
function jsSetSynonym(sParam) {
	// Clear Synonym List
	jsClearList(document.fmMain.lstSynInclude);
	jsClearList(document.fmMain.lstSynExclude);
	// Add Synonym List
	var sTemp = "";
	var vSysn = sParam.split(String.fromCharCode(9));
	for (var i=1;i<vSysn.length;i++) {
		sTemp = vSysn[i].charAt(0);
		if (sTemp == "+") {
			setUIAddItem(vSysn[i].substr(1,vSysn[i].length-1),document.fmMain.lstSynInclude);
		} else {
			setUIAddItem(vSysn[i].substr(1,vSysn[i].length-1),document.fmMain.lstSynExclude);
		}
	}
}
function jsMoveSynonym(sSource,sTarget,oSource,oTarget) {
	if (document.fmMain.lstKeyword.selectedIndex < 0) { return; }
	var sTemp = document.fmMain.lstMatch.options[document.fmMain.lstKeyword.selectedIndex].value+String.fromCharCode(9);
	
	for (var i=0;i<oSource.length;i++) {
		if (oSource.options[i].selected) {
			sTemp = sTemp.replace(sSource+oSource.options[i].text+String.fromCharCode(9),sTarget+oSource.options[i].text+String.fromCharCode(9));
		}
	}
	document.fmMain.lstMatch.options[document.fmMain.lstKeyword.selectedIndex].value = sTemp.substr(0,sTemp.lastIndexOf(String.fromCharCode(9)));
	document.fmMain.lstMatch.options[document.fmMain.lstKeyword.selectedIndex].text = document.fmMain.lstMatch.options[document.fmMain.lstKeyword.selectedIndex].value;
	setUIMoveItem(oSource,oTarget,true);
}
/* =================================================================== Keyword */
//-->
</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="idRule" value="$$RULE_ID$$">
<input type="hidden" name="CfgRedirect" value="$$REDIRECT_TO_PAGE$$"/>
<!--/Hidden Field-->

<!--Page Title-->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title">$$CF_CONTENT_TITLE$$ &gt; Monitor Rule &gt; Edit Rule</td>
	<td align="right" valign="bottom">
		<a href="javascript:jsMapOnlineHelp('scan\Contentfiltering_Edit_Monitor.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" cellspacing="0" cellpadding="0">
<!--Page Description--><!--/Page Description-->
<!--Page Content-->
<tr><td><table border="0" cellpadding="0" cellspacing="0">
		<!--||Global Setting||-->
		<tr><td width="20"><input type=checkbox name="chkEnable" $$RULE_ENABLED$$></td>
			<td><b>Enable this rule</b></td></tr>
		<tr><td></td>
			<td>Rule name:&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="text" name="txtRuleName" value="$$RULE_NAME$$"></td></tr>
		</table></td></tr>
<tr height="10"><td></td></tr>
<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<!--||TABS(First active)||-->
		<tr><td background="images/tab_background_cui.gif">
			<table border="0" cellpadding="0" cellspacing="0">
			<tr><td width="11"><img id="Tag1_imgS" src="images/tab_active1_left_cui.gif" style="vertical-align:top"></td>
				<td width="50" valign="top" nowrap id="Tag1" style="background-image:url(images/tab_active_background_cui.gif)" class="tabactive">Target</td>
				<td width="23"><img id="Tag1_imgE" src="images/tab_active_right_cui.gif" style="vertical-align:top"></td>
				<td width="11"><img id="Tag2_imgS" src="images/tab_inactive2_left_cui.gif" style="vertical-align:top"></td>
				<td width="50" valign="top" nowrap id="Tag2" style="background-image:url(images/tab_inactive_background_cui.gif)" class="tabinactive"><a class="subnavselect" href="javascript:setUITagDisplay(2,3,'Action');">Action</a></td>
				<td width="23"><img id="Tag2_imgE" src="images/tab_inactive_right_cui.gif" style="vertical-align:top"></td>
				<td width="11"><img id="Tag3_imgS" src="images/tab_inactive2_left_cui.gif" style="vertical-align:top"></td>
				<td width="90" valign="top" nowrap id="Tag3" style="background-image:url(images/tab_inactive_background_cui.gif)" class="tabinactive"><a class="subnavselect" href="javascript:setUITagDisplay(3,3,'Notification');">Notification</a></td>
				<td width="23"><img id="Tag3_imgE" src="images/tab_inactive_right_cui.gif" style="vertical-align:top"></td></tr>
			</table></td>      
			<td width="13" align="right" background="images/tab_background_cui.gif"><img src="images/tab_right_corner_cui.gif" style="vertical-align:top"></td></tr>
		</table></td></tr>
<tr><td><table id="Tag1_items" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Add email account(s)||-->
		<tr><td width="100%" class="tableheadergreyS">Add email account(s)</td></tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr><td class="data1">From:</td>
					<td class="data1"><input type=text class="text" name="txtEmailFrom" value="$$FROM_LIST$$" style="width:300"></td></tr>
				<tr><td class="data1">To:</td>
					<td class="data1"><input type=text class="text" name="txtEmailTo" value="$$TO_LIST$$" style="width:300"></td></tr>
				<tr><td class="data1">Cc:</td>
					<td class="data1"><input type=text class="text" name="txtEmailCc" value="$$CC_LIST$$" style="width:300"></td></tr>
				</table></td></tr>
		<!--||Select Target||-->
		<tr><td class="tableheadergreyM">Scan the following</td></tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				$$SECTION_BEGIN$$
				<tr><td width="20"><input type=checkbox name="chkSubject" id="chkSubject" onclick="jsUIDependency();" value="scan_subject" $$SCAN_SUBJECT_CHECKED$$></td>
					<td class="data1">Subject
					<img id="TargetSubject_TipIcon" src="images/info_mark.gif" style="cursor:pointer;position:relative;display:none;" onmouseout="hideToolTip('ifmToolTip');" 
						onmouseover="showToolTip('ifmToolTip',this,360,140,TIP_CF_ADDGENERAL_TITEL_MONITOR,TIP_CF_ADDGENERAL_CONTENT_MONITOR);"></td></tr>
				$$SECTION_END$$
				$$NON_RS_SECTION_BEGIN$$
				<tr><td width="20"><input type=hidden id="chkSubject" name="chkSubject"></td>
					<td class="data1"></td></tr>
				$$NON_RS_SECTION_END$$
				<tr><td><input type=checkbox name="chkBody" id="chkBody" value="scan_body" $$SCAN_BODY_CHECKED$$></td>
					<td class="data1">Body</td></tr>
				<tr><td><input type=checkbox name="chkAttachment" id="chkAttachment" value="scan_attachment" $$SCAN_ATTACHMENT_CHECKED$$></td>
					<td class="data1">Attachment</td></tr>
				</table></td></tr>
		<!--||Add keyword(s)||-->
		<tr><td class="tableheadergreyM">Add keyword(s)</td></tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr><td class="data1" colspan="2" height="30">Match: <select class="text" name="MathKeywordType">
					<option value="any_keywords" $$ANY_KEYWORDS$$>Any specified keywords</option>
					<option value="all_keywords" $$ALL_KEYWORDS$$>All specified keywords</option>
					</select></td></tr>
				<tr><td class="data1" colspan="2"><table border="0" cellpadding="0" cellspacing="0">
						<tr><td>Enter keyword(s):</td></tr>
						<tr><td width="250"><input type="text" class="text" style="width:100%" name="txtKeyword"></td>
							<td><input type="button" class="text" value="Add" onclick="jsAddKeyword();" style="width:50"></td>
						<tr><td>
							<table border="1" cellpadding="0" cellspacing="1">
								<tr><td>
									<div id="lstKeywordOuter" name="lstKeywordOuter" style="overflow:auto;width:243;height:120">
										<table border="0" cellspacing="0" cellpadding="0">
										<tr><td>
										<div id="lstKeywordInner" name="lstKeywordInner" style="position:relative;overflow:hidden">
											<select class="text" name="lstKeyword" id="lstKeyword" style="position:relative" multiple onchange="jsChangeKeyword();">$$KEYWORD_LIST$$</select>
											<select class="text" size="8" name="lstMatch" id="lstMatch" style="display:none" multiple>$$EXP_LIST$$</select>
										</div>
										</td></tr>
										</table>
									</div>
								</td></tr>
							</table>
							</td>
							<td valign="top"><input type="button" class="text" value="Delete" style="width:50" onclick="jsDelKeyword();"></td>
						</tr>
						<!--
						<tr><td><select class="text" size="8" name="lstKeyword" style="width:100%" multiple onchange="jsChangeKeyword();">"$$KEYWORD_LIST$$"</select>
								<select class="text" size="8" name="lstMatch" style="width:100%;display:none" multiple>$$EXP_LIST$$</select></td>
							<td valign="top"><input type="button" class="text" value="Delete" onclick="jsDelKeyword();" style="width:50"></td></tr>-->
						</table></td></tr>
				<tr><td width="20"><input type=checkbox name="chkMatchCase" id="chkMatchCase" value="match_case" $$MATCH_CASE$$></td>
					<td width="100%">Match case-sensitive</td></tr>
				<tr><td><input type=checkbox name="chkMatchSynonym" id="chkMatchSynonym" value="match_synonym" $$MATCH_SYNONYM$$></td>
					<td width="100%">Match synonym 
					        <span id="tabSynonym" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabSynonym_icon" src="images/more_down_out.gif">
					        Show details
					        </span>
					        </td></tr>
				<tr><td colspan="2"><table id="tabSynonym_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr><td width="20"></td>
							<td height="22">Select the keyword in the keyword list and the synonyms will be shown below:</td></tr>
						<tr><td width="20"></td>
							<td><table border="0" cellpadding="0" cellspacing="0">
								<tr><td>Synonyms to include:</td><td></td>
									<td>Synonyms to exclude:</td></tr>
								<tr><td><select class="text" size="8" name="lstSynInclude" style="width:140" multiple></select></td>
									<td>&nbsp;<img src="images/icon_arrow_right.gif" style="cursor:hand" onclick="jsMoveSynonym('+','-',fmMain.lstSynInclude,fmMain.lstSynExclude);">&nbsp;<br><br>
										&nbsp;<img src="images/icon_arrow_left.gif" style="cursor:hand" onclick="jsMoveSynonym('-','+',fmMain.lstSynExclude,fmMain.lstSynInclude);">&nbsp;</td>
									<td><select class="text" size="8" name="lstSynExclude" style="width:140" multiple></select></td></tr>
								</table></td></tr>
						<tr><td colspan="2" height="5"></td></tr>
						</table></td></tr>
				</table></td></tr>
		</table>
		<table id="Tag2_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--Contentfiltering_Action.htm_partial-->
		$$ACTION_PAGE$$
		</table>
		<table id="Tag3_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--Notification.htm_partial-->
		$$NOTIFICATION_PAGE$$
		</table>
		</td></tr>
<!--/Page Content-->
<!--Page Button-->
<tr><td height="10"></td></tr>
<tr><td><table border="0" cellpadding="0" cellspacing="0">
		<tr><td id="tab_btnSubmit"><input type="button" class="text" name="btnSubmit" value="Save" onclick="jsSubmit();">&nbsp;</td>
			<td id="tab_btnCancel"><input type="button" class="text" name="btnCancel" value="Cancel" onclick="jsCancel();">&nbsp;</td></tr>
		</table></td></tr>
<!--/Page Button-->
</table>
</form>

<iframe id="ifmSynonym" name="ifmSynonym" src="$$FILTER_CF_EDIT_SYNONYM_PAGE$$" frameBorder="0" style="width:0;height:0"></iframe>
<iframe id="ifmToolTip" name="ifmToolTip" src="html/ToolTip.htm" frameborder="0" style="z-index:10000;position:absolute;width:0;height:0;scrolling:no"/>
</body>
</html>
