<html>
<head>
<title>Content Filtering - Rule Add Content</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 vCURRENT_TAG = "Target";

var nStep = 0;		// record the current step
var nStepSum = 2;	// record the count step
var bInit = true;	// record the first time into this page
var sCheckExpressionResult = "$$CHECK_EXPRESSION_RESULT$$"; // result of checking expression
function jsInitPage() {

	var bCheckExpression = true;
	var bCheckNoError = false;
	var sCheckAlertMsg;
	var oErrorOn;
	var oForm = document.fmMain;
	
	//set UI dependency
	jsServerRoleDependency("scan/Contentfiltering_Add_Antispam.htm");
	
	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 == "subject") // error on expression of 'subject' field
	{
		oErrorOn = oForm.txtEmailSubject;
		sCheckAlertMsg = STR_ALR_WARN_INVALID_SUBJECT_EXPRESSION;
	}
	else if(sCheckExpressionResult == "attachment name") // error on expression of 'attachment name' field
	{
		oErrorOn = oForm.txtEmailAttachmentName;
		sCheckAlertMsg = STR_ALR_WARN_INVALID_ATTACHMENT_NAME_EXPRESSION;
	}
	else if(sCheckExpressionResult == "no error")
		bCheckNoError = true;
	else
		bCheckExpression = false;
	
	if(bCheckExpression && bCheckNoError) // if check no error, go to next page
	{
		document.getElementById("labRuleName").innerHTML = document.fmMain.txtRuleName.value.replace(/\s/g,"&nbsp;");
		nStep = 1;
		jsDisplayStep("tabStep",0,nStep);
	}
	else
	{
		oForm.txtRuleName.focus();
		oForm.txtRuleName.select();	// highlighted the rule name
		nStep = 0;
		jsDisplayStep("tabStep",0,nStep);
	}
	
	jsSetFunction();
	
	if(bCheckExpression && !bCheckNoError)
		alert(sCheckAlertMsg);
	
	// Note: after checking expression and there is some error on expression
	if(bCheckExpression && !bCheckNoError)
	{
		oErrorOn.focus();
		oErrorOn.select();
	}
	
	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(oForm.optAdminMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(oForm.optInSenderMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(oForm.optExSenderMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(oForm.optInRecipientMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(oForm.optExRecipientMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	setOptionValueEx(oForm.optSNMPMessageType,STR_CF_NOTIFY_MSG,STR_CF_NOTIFY_MSG);
	
	// set max length
	oForm.txtRuleName.maxLength	 = INT_LMAX_CF_RULENAME;
	oForm.txtEmailFrom.maxLength = INT_LMAX_CF_EMAIL;
	oForm.txtEmailTo.maxLength	 = INT_LMAX_CF_EMAIL;
	oForm.txtEmailCc.maxLength	 = INT_LMAX_CF_EMAIL;
	oForm.txtEmailSubject.maxLength 	 = INT_LMAX_CF_EMAIL;
	oForm.txtEmailAttachmentSize.maxLength	 = INT_LMAX_CF_FILESIZE;
	oForm.txtEmailAttachmentName.maxLength 	 = INT_LMAX_CF_EMAIL;
	oForm.txtQuarantineDir.maxLength	 = INT_LMAX_PATH_DIR;
	oForm.txtArchiveDir.maxLength		 = INT_LMAX_PATH_DIR;
	oForm.txtSNMPCommunity.maxLength	 = INT_LMAX_SNMP;
	oForm.txtNotifyAdminSettingsPeriod.maxLength	 = INT_LMAX_NOTI_PERIOD;
	oForm.txtNotifyAdminSettingsOccurence.maxLength	 = INT_LMAX_NOTI_OCCUR;
	oForm.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;
}
function jsSubmit() {
	// notification
	if(document.getElementById("chkNotifyAdmin").checked){
	    if(document.fmMain.txtNotifyAdminTo1.value == ""){
	        alert(STR_ERR_NOTIFY_ADMIN_ACCOUNT);
	        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)) {
	        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,1,INT_LMAX_SNMP,STR_WARN_SNMP,false)) {
	        if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
	        jsFocus(document.fmMain.txtSNMPCommunity);
	        return false;
        }
	}
	if (!checkNumberRange(document.fmMain.txtNotifyAdminSettingsPeriod.value,INT_NMIN_NOTI_PERIOD,INT_NMAX_NOTI_PERIOD,STR_WARN_NOTI_PERIOD,(!document.fmMain.optNotifyAdminSettings[0].checked))) {
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminSettingsPeriod);
		return false;	
	}
	if (!checkNumberRange(document.fmMain.txtNotifyAdminSettingsOccurence.value,INT_NMIN_NOTI_OCCUR,INT_NMAX_NOTI_OCCUR,STR_WARN_NOTI_OCCUR,(!document.fmMain.optNotifyAdminSettings[1].checked))) {
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminSettingsOccurence);
		return false;	
	}
	if (!checkNumberRange(document.fmMain.txtNotifyAdminTo1.value.length,1,INT_LMAX_EM_ADDR_M,STR_WARN_EM_ADDR_M) ||
		!checkMultiEmailPatternFormat(document.fmMain.txtNotifyAdminTo1.value,STR_ERR_INVALID_EMAIL)) {
		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)) {
			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)) {
			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)) {
		if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
		jsFocus(document.getElementById("txtSNMPMessage"));
		return false;
	}
	setOption2Selected(document.fmMain.lstMatch);
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnBack.disabled = 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 jsBack() {
	if (nStep==0) {document.location.href = "$$FILTER_CF_ADD_RULE_PAGE$$";}
	jsDisplayStep("tabStep",nStep,--nStep);
	jsSetFunction();
	
	// if step is 0, reset redirect page
	if(nStep==0)
		document.fmMain.CfgRedirect.value = "";
}
function jsNext() {
	// add some checking
	if (nStep==0) {		
		var txtRuleName_value = jsTrim(document.fmMain.txtRuleName);
		// SMEX8.5 #158, The rule name's maximum length is 64.
		if (document.fmMain.txtRuleName.value=="" || txtRuleName_value.length == 0 || txtRuleName_value.length>64) {
			alert(STR_WARN_CF_RULENAME);
			jsFocus(document.fmMain.txtRuleName);
			return false;
		}
		if (document.fmMain.txtEmailFrom.value=="" && document.fmMain.txtEmailTo.value=="" && document.fmMain.txtEmailCc.value=="" && document.fmMain.txtEmailSubject.value=="" && document.fmMain.txtEmailAttachmentSize.value=="" && document.fmMain.txtEmailAttachmentName.value=="") {
			alert(STR_ERR_CHECK_ANTISPAM);
			return false;
		}
		if (jsTrim(document.fmMain.txtEmailFrom).length==0 && jsTrim(document.fmMain.txtEmailTo).length==0 && jsTrim(document.fmMain.txtEmailCc).length==0 && jsTrim(document.fmMain.txtEmailSubject).length==0 && jsTrim(document.fmMain.txtEmailAttachmentSize).length==0 && jsTrim(document.fmMain.txtEmailAttachmentName).length==0) {
			alert(STR_ERR_CHECK_ANTISPAM);
			return false;
		}
		if (document.fmMain.txtEmailFrom.value.length > INT_LMAX_CF_EMAIL || document.fmMain.txtEmailTo.value.length > INT_LMAX_CF_EMAIL || document.fmMain.txtEmailCc.value.length > INT_LMAX_CF_EMAIL) {
			alert(STR_WARN_CF_MAXEMAIL);
			return false;
		}
		if (document.fmMain.txtEmailSubject.value.length > INT_LMAX_CF_EMAIL || document.fmMain.txtEmailAttachmentName.value.length > INT_LMAX_CF_EMAIL) {
			alert(STR_WARN_CF_MAXEMAIL);
			return false;
		}
		//check if the entered is number and less than 2147483648
		if(!checkNumberNSize(document.fmMain.txtEmailAttachmentSize.value, INT_LMAX_FILESIZE_CF, STR_WARN_FILESIZE)) return false;
    
        // add semicolon at the back of input
		jsAddSemicolon(document.fmMain.txtEmailFrom);
		jsAddSemicolon(document.fmMain.txtEmailTo);
		jsAddSemicolon(document.fmMain.txtEmailCc);
		jsAddSemicolon(document.fmMain.txtEmailSubject);
		jsAddSemicolon(document.fmMain.txtEmailAttachmentName);
		document.fmMain.FormAction.value = "CheckValidExpression";
		jsAddCSRFToken(document.fmMain);
        document.fmMain.submit();
		return true;
		
	}else if (nStep==1) {
		//var vrdoActionReplace = (document.getElementById("rdoActionReplace"))?document.getElementById("rdoActionReplace").checked:false;
		//$$SHOW_QUARANTINE_DIR2$$
		if (!checkPathFormat(document.fmMain.txtQuarantineDir.value,STR_ERR_INVALID_DIR,false)) {
		    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)) {
			if(document.getElementById("tabDirectory_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabDirectory"));
			jsFocus(document.fmMain.txtArchiveDir);
			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)) {
			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)) {
			if(document.getElementById("tabReplacement_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabReplacement"));
			jsFocus(document.fmMain.txtReplacementText);
			return false;
		}
	}
	
	bInit = false;
	// display the next session
	jsDisplayStep("tabStep",nStep,++nStep);
	jsSetFunction();	
}
function jsSetFunction() {
	// display the rule name textbox - editable
	document.getElementById("tabRuleName").style.display = (nStep==0)?"block":"none";
	// display the rule name label
	document.getElementById("labRuleName").style.display = (nStep==0)?"none":"block";
	document.getElementById("tab_btnNext").style.display = (nStep==nStepSum)?"none":"block";
	document.getElementById("tab_btnSubmit").style.display = (nStep==nStepSum)?"block":"none";
	jsUIDependency();
	
	if(nStep == 1){
	    vCURRENT_TAG = "Action";
	}
	else if(nStep == 2){
	    vCURRENT_TAG = "Notification";
	}
	else{
	    vCURRENT_TAG = "Target";
	}
}
function jsAddSemicolon(oFiled) {
	// delete all blank space and add Semicolon at the back of String
	oFiled.value = jsTrim(oFiled);
	oFiled.value = oFiled.value.replace(/;+/g,";");
	oFiled.value = oFiled.value.replace(/^;*/,"");
	if (!oFiled.value.length == 0){
		if(oFiled.value.charAt(oFiled.value.length-1) != ";")
			oFiled.value += ";"
	}
}
function jsUIDependency(){
    //TIP_REPLACEHEADER_TITLE = TIP_ANTISPAM_REPLACEHEADER_TITLE;
    //TIP_REPLACEHEADER_CONTENT = TIP_ANTISPAM_REPLACEHEADER_CONTENT; 
    //TIP_QSINGLEHEADER_TITLE = TIP_ANTISPAM_QSINGLEHEADER_TITLE;
    //TIP_QSINGLEHEADER_CONTENT = TIP_ANTISPAM_QSINGLEHEADER_CONTENT; 
    document.getElementById("optReplaceTipIcon").style.display = (document.getElementById("rdoActionReplace").checked)?"":"none";
    document.getElementById("optQuarantineSingleTipIcon").style.display = (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);
}

/* Online Help ================================================================= */
function jsOpenOnlineHelp(){
    if(vCURRENT_TAG == "Action"){
        strMapURL = "scan\Contentfiltering_Add_Antispam.htm_Action";
    }   
    else if(vCURRENT_TAG == "Notification"){
        strMapURL = "scan\Contentfiltering_Add_Antispam.htm_Notification";
    }  
    else {
        strMapURL = "scan\Contentfiltering_Add_Antispam.htm_Target";
    }
    jsMapOnlineHelp(strMapURL);
}
/* ================================================================= Online Help */
-->
</script>
</head>
<body onload="jsInitPage();">
<form id="fmMain" name="fmMain" action="$$FORM_ACTION$$" method=post>
<!--Hidden Field-->
<input type="hidden" name="FormAction" value="Finish">
<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; Add rule</td>
	<td align="right" valign="bottom">
		<a href="javascript:jsOpenOnlineHelp();" 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">
		<tr height="20"><td><b>Rule name:&nbsp;&nbsp;&nbsp;&nbsp;</b></td>
			<td id="tabRuleName"><input type="text" class="text" id="txtRuleName" name="txtRuleName" value="$$RULE_NAME$$"></td>
			<td><font class="text" id="labRuleName"></font></td></tr>
		</table></td></tr>
<tr height="10"><td></td></tr>
<tr><td><table id="tabStep0" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Step1:Scan the following||-->
		<tr><td width="100%" class="tableheadergreyS">Scan the following</td></tr>
		<tr><td><table width="98%" border="0" cellpadding="0" cellspacing="0">
				$$SECTION_BEGIN$$
				<tr><td class="data1" width="130">From:</td>
					<td class="data1"><input type="text" style="width:250" class="text" id="txtEmailFrom" name="txtEmailFrom" value="$$FROM_LIST$$" onblur="jsAddSemicolon(this);">
					    <input type="checkbox" name="chkEmailFromMatchCase" id="chkEmailFromMatchCase" value="on" $$FROM_LIST_MATCH_CASE$$>Case-sensitive</td></tr>
				<tr><td class="data1" width="130">To:</td>
					<td class="data1"><input type="text" style="width:250" class="text" name="txtEmailTo" id="txtEmailTo" value="$$TO_LIST$$" onblur="jsAddSemicolon(this);">
					    <input type="checkbox" name="chkEmailToMatchCase" id="chkEmailToMatchCase" value="on" $$TO_LIST_MATCH_CASE$$>Case-sensitive</td></tr>
				<tr><td class="data1" width="130">Cc:</td>
					<td class="data1"><input type="text" style="width:250" class="text" name="txtEmailCc" id="txtEmailCc" value="$$CC_LIST$$" onblur="jsAddSemicolon(this);">
					    <input type="checkbox" name="chkEmailCcMatchCase" id="chkEmailCcMatchCase" value="on" $$CC_LIST_MATCH_CASE$$>Case-sensitive</td></tr>
				<tr><td class="data1" width="130">Subject:</td>
					<td class="data1"><input type="text" style="width:250" class="text" name="txtEmailSubject" id="txtEmailSubject" value="$$SUBJECT_LIST$$" onblur="jsAddSemicolon(this);">
					    <input type="checkbox" name="chkEmailSubjectMatchCase" id="chkEmailSubjectMatchCase" value="on" $$SUBJECT_LIST_MATCH_CASE$$>Case-sensitive</td></tr>
				<tr><td class="data1" width="130">Size:</td>
					<td class="data1"><select class="text" name="optEmailAttachmentSizeComparison" id="optEmailAttachmentSizeComparison">
									<option value="greater_than" $$ATTACHMENT_SIZE_COMPARISON_GT_CHECKED$$>greater than</option>
									<option value="less_than"    $$ATTACHMENT_SIZE_COMPARISON_LT_CHECKED$$>less than</option>
									<option value="equal_to"     $$ATTACHMENT_SIZE_COMPARISON_EQ_CHECKED$$>equal to</option>
									<option value="not_equal_to" $$ATTACHMENT_SIZE_COMPARISON_NE_CHECKED$$>not equal to</option>
									</select>
									<input type="text" class="text" name="txtEmailAttachmentSize" id="txtEmailAttachmentSize" value="$$ATTACHMENT_SIZE$$" size="8">
									bytes (Message body or attachment size)</td>
					</tr>
				<tr><td class="data1" width="130">Attachment file name:</td>
					<td class="data1"><input type="text" style="width:250" class="text" name="txtEmailAttachmentName" id="txtEmailAttachmentName" value="$$ATTACHMENT_NAME_LIST$$" onblur="jsAddSemicolon(this);">
					    <input type="checkbox" name="chkEmailAttachmentNameMatchCase" id="chkEmailAttachmentNameMatchCase" value="on" $$ATTACHMENT_NAME_LIST_MATCH_CASE$$>Case-sensitive</td></tr>
				$$SECTION_END$$
				$$NON_RS_SECTION_BEGIN$$
				<input type=hidden name="chkHeader">
				<input type=hidden name="chkHeaderItem">
				<input type=hidden name="chkHeaderItem">
				<input type=hidden name="chkHeaderItem">
				<input type=hidden name="chkSubject">
				$$NON_RS_SECTION_END$$
				</table>
		</td></tr>
		</table>
		
		<table id="tabStep1" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Step2:Select an action||-->
		$$ACTION_PAGE$$
		</table>
		<table id="tabStep2" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Step3:Notification||-->
		$$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_btnBack"><input type="button" class="text" name="btnBack" value="< Back" onclick="jsBack();">&nbsp;</td>
			<td id="tab_btnNext"><input type="button" class="text" name="btnNext" value="Next >" onclick="jsNext();">&nbsp;</td>
			<td id="tab_btnSubmit"><input type="button" class="text" name="btnSubmit" value="Finish" 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="ifmToolTip" name="ifmToolTip" src="html/ToolTip.htm" frameborder="0" style="z-index:10000;position:absolute;width:0;height:0;scrolling:no"/>
</body>
</html>