<html>
<head>
<title>File_Blocking</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/trend-common.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 vHostDriveLabels = "$$HOST_DRIVE_LABELS$$";

var bInitListbox_All = false;
var bInitListbox_Specified = false;

function jsInitPage() {
	// init page
	//set UI dependency

	//to check whether to hide Pass,for real-time, hide Pass.
	if ($$IS_REALTIME$$)
	{
		document.getElementById("QuarantineItem").style.display="none";
	}
	//jsServerRoleDependency("scan/Attachmentblocking.htm");
	
	document.fmMain.txtNotifyAdminSettingsPeriod.maxLength	= INT_LMAX_NOTI_PERIOD;
	document.fmMain.txtNotifyAdminSettingsOccurence.maxLength	= INT_LMAX_NOTI_OCCUR;
	document.fmMain.txtAllExtension.maxLength			= INT_LONG_EXTENSIONTEXT_MAX;
	document.fmMain.txtAllAttachment.maxLength			= INT_LMAX_FILENAME_AB;
	document.fmMain.txtSpecifiedExtension.maxLength		= INT_LONG_EXTENSIONTEXT_MAX;
	document.fmMain.txtSpecifiedAttachment.maxLength	= INT_LMAX_FILENAME_AB + 1;
	//document.fmMain.txtQuarantineDir.maxLength			= INT_LMAX_PATH_DIR;
	//document.fmMain.txtReplacementFile.maxLength		= INT_LMAX_FILENAME_RF;
	document.fmMain.txtNotifyAdminSubject.maxLength		= INT_LMAX_EM_SUBJECT;
	//document.fmMain.txtNotifyInSenderSubject.maxLength	= INT_LMAX_EM_SUBJECT;
	//document.fmMain.txtNotifyExSenderSubject.maxLength	= INT_LMAX_EM_SUBJECT;
	//document.fmMain.txtNotifyInRecipientSubject.maxLength	= INT_LMAX_EM_SUBJECT;
	//document.fmMain.txtNotifyExRecipientSubject.maxLength	= INT_LMAX_EM_SUBJECT;
	// set page

	
	//setOptionValueEx(document.fmMain.optInSenderMessageType,STR_AB_NOTIFY_MSG,STR_AB_NOTIFY_MSG);
	//setOptionValueEx(document.fmMain.optExSenderMessageType,STR_AB_NOTIFY_MSG,STR_AB_NOTIFY_MSG);
	//setOptionValueEx(document.fmMain.optInRecipientMessageType,STR_AB_NOTIFY_MSG,STR_AB_NOTIFY_MSG);
	//setOptionValueEx(document.fmMain.optExRecipientMessageType,STR_AB_NOTIFY_MSG,STR_AB_NOTIFY_MSG);
	if($$IS_SharePoint2010$$)
	 {
	   setOptionValueEx(document.fmMain.optAdminMessageType,STR_AB_NOTIFY_MSG,STR_AB_NOTIFY_MSG);
	   setOptionValueEx(document.fmMain.optSNMPMessageType,STR_AB_NOTIFY_MSG,STR_AB_NOTIFY_MSG);
	 }
	else
	 {
	   setOptionValueEx(document.fmMain.optAdminMessageType,STR_AB2007_NOTIFY_MSG,STR_AB2007_NOTIFY_MSG);
	   setOptionValueEx(document.fmMain.optSNMPMessageType,STR_AB2007_NOTIFY_MSG,STR_AB2007_NOTIFY_MSG);
	 }
	// release event capture
	CANCEL_EVENT = false;
	jsTagInit("Attachmentblocking","Target;Action;Notification");
	jsUIDependency();
}
function jsInitListbox(sID) {
	if (sID=="tabAllName") {
		if (bInitListbox_All) return;
		bInitListbox_All = true;
		setListboxUI(document.getElementById("lstAllExtension"),document.getElementById("divAllExtensionInner"),document.getElementById("divAllExtensionOuter"));
		setListboxUI(document.getElementById("lstAllAttachment"),document.getElementById("divAllAttachmentInner"),document.getElementById("divAllAttachmentOuter"));
	} else {
		if (bInitListbox_Specified) return;
		bInitListbox_Specified = true;
		setListboxUI(document.getElementById("lstSpecifiedExtension"),document.getElementById("divSpecifiedExtensionInner"),document.getElementById("divSpecifiedExtensionOuter"));
		setListboxUI(document.getElementById("lstSpecifiedAttachment"),document.getElementById("divSpecifiedAttachmentInner"),document.getElementById("divSpecifiedAttachmentOuter"));
	}
}
function jsSubmit() {
	// add some checking
	// Determine whether console should verify the input setting. TRUE:1.Realtime AttachmentBlocking & Enable AttachmentBlocking 2.AttachmentBlocking at Manual or Scheduled Scan
	var VerifySetting = true;
	if(document.getElementById("chkStoreEnable") ){// At Realtime AttachmentBlocking
	    if(document.getElementById("chkStoreEnable").checked)
	        VerifySetting = true;
	    else
	        VerifySetting = false;
	}
	
	//Check whether "Attachment types" or "Attachment names" is selected if "Specific attachments" is selected
	if(document.fmMain.optScan[1].checked && !document.getElementById("chkSpecifiedType").checked && !document.getElementById("chkSpecifiedName").checked){
        setUITagDisplay(1,3,'Target');
        alert(STR_WARN_SPECIFIC_ATT);
        return false;
    }
	// Check Specific file extensions to exclude
	/*if(VerifySetting && document.fmMain.optScan[0].checked && document.fmMain.chkAllExtension.checked && document.getElementById("lstAllExtension").options.length <1){
	    setUITagDisplay(1,3,'Target');
	    if (document.getElementById("tabAllName_items").style.display == "none"){	        
	        setUIMoreDisplay(document.getElementById("tabAllName"));
	        jsInitListbox("tabAllName");
	    }
	    jsFocus(document.fmMain.txtAllExtension);
	    alert(STR_WARN_EXCLUDE_EXTENSIONNAME);
	    return false;
	}*/
	// Check Attachment names to exclude
	/*if(VerifySetting && document.fmMain.optScan[0].checked && document.fmMain.chkAllAttachment.checked && document.getElementById("lstAllAttachment").options.length <1){
	    setUITagDisplay(1,3,'Target');
	    if (document.getElementById("tabAllName_items").style.display == "none"){	        
	        setUIMoreDisplay(document.getElementById("tabAllName"));
	        jsInitListbox("tabAllName");
	    }
	    jsFocus(document.fmMain.txtAllAttachment);
	    alert(STR_WARN_EXCLUDE_FILENAME);
	    return false;
	}*/
	// Check Specific file extensions to block
	if(VerifySetting && document.fmMain.optScan[1].checked && document.fmMain.chkSpecifiedExtension.checked && document.getElementById("lstSpecifiedExtension").options.length <1){
	    setUITagDisplay(1,3,'Target');
	    if (document.getElementById("tabSpecifiedName_items").style.display == "none"){	        
	        setUIMoreDisplay(document.getElementById("tabSpecifiedName"));
	        jsInitListbox("tabSpecifiedName");
	    }
	    jsFocus(document.fmMain.txtSpecifiedExtension);
	    alert(STR_WARN_SPECIFIC_EXTENSIONNAME);
	    return false;
	}
	// Check Attachment names to block
	if(VerifySetting && document.fmMain.optScan[1].checked && document.fmMain.chkSpecifiedAttachment.checked && document.getElementById("lstSpecifiedAttachment").options.length <1){
	    setUITagDisplay(1,3,'Target');
	    if (document.getElementById("tabSpecifiedName_items").style.display == "none"){	        
	        setUIMoreDisplay(document.getElementById("tabSpecifiedName"));
	        jsInitListbox("tabSpecifiedName");
	    }
	    jsFocus(document.fmMain.txtSpecifiedAttachment);
	    alert(STR_WARN_SPECIFIC_FILENAME);
	    return false;
	}

	//check whether the drive label of the Quarantine Directory is valid.
    /*
	var vDriveLabel = document.fmMain.txtQuarantineDir.value.toLowerCase().charAt(0);
	if (vHostDriveLabels.toLowerCase().indexOf(vDriveLabel) == -1)
	{
		setUITagDisplay(2,3,'Action');
		if(document.getElementById("tabDirectory_items").style.display == "none")
		    setUIMoreDisplay(document.getElementById('tabDirectory'));
		alert(STR_ERR_INVALID_QUARANTINE_DRIVE);
		jsFocus(document.fmMain.txtQuarantineDir);
		return false;
	}	
	//Check the format of Quarantine Directory
	if (!checkPathFormat(document.fmMain.txtQuarantineDir.value,"",false)) {
		setUITagDisplay(2,3,'Action');
		alert(STR_ERR_INVALID_DIR);
		if(document.getElementById("tabDirectory_items").style.display == "none")
		    setUIMoreDisplay(document.getElementById('tabDirectory'));
		jsFocus(document.fmMain.txtQuarantineDir);
		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 (!document.fmMain.txtSNMPIP.value.length){
	            alert(STR_ERR_BLANK_IPADDRESS);
	            jsFocus(document.fmMain.txtSNMPIP);
	            return false;
	    }
	    if (!checkIPAddressFormat(document.fmMain.txtSNMPIP.value,STR_ERR_INVALID_IPADDRESS,false)) {
		    setUITagDisplay(3,3,'Notification');
		    if(document.getElementById("tabSNMP_items").style.display=="none")
	                document.getElementById("tabSNMP").onclick();
		    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")
	                document.getElementById("tabSNMP").onclick();
		    jsFocus(document.fmMain.txtSNMPCommunity);
		    return false;
	    }
 		if (document.getElementById("txtSNMPMessage").value.length == 0)
		{
			alert(STR_ERR_BLANK_MESSAGE);
			setUITagDisplay(3,3,'Notification');
			jsFocus(document.fmMain.txtSNMPMessage);
			return false;
		}       
    }
	if (!checkNumberRange(document.fmMain.txtNotifyAdminSettingsPeriod.value,INT_NMIN_NOTI_PERIOD,INT_NMAX_NOTI_PERIOD,STR_WARN_NOTI_PERIOD,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,INT_NMIN_NOTI_OCCUR,INT_NMAX_NOTI_OCCUR,STR_WARN_NOTI_OCCUR,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;
	}

	if (!checkNumberRange(document.getElementById("txtNotifyAdminMessage").value.length,0,INT_LMAX_EM_CONTENT,STR_WARN_EM_CONTENT)) {
		setUITagDisplay(3,3,'Notification');
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.getElementById("txtNotifyAdminMessage"));
		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;
	}


	
	
	jsSaveCookie("Attachmentblocking");
	
	setOption2Selected(document.fmMain.lstAllExtension);
	setOption2Selected(document.fmMain.lstAllAttachment);
	setOption2Selected(document.fmMain.lstSpecifiedExtension);
	setOption2Selected(document.fmMain.lstSpecifiedAttachment);
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnSave.disabled = true;
	document.fmMain.btnReset.disabled = true;
	// submit page
	document.fmMain.action = document.fmMain.txtAttachmentBlockingLink.value + "&Subject=$$SCAN_SUBJECT_ID1$$" + "&RuleId=$$RULE_ID$$";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsReset() {
	if(!confirm(STR_ALR_RESET_SETTING))
	    return false;
	
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnSave.disabled = true;
	document.fmMain.btnReset.disabled = true;
	jsSaveCookie("Attachmentblocking");
	// submit page
	document.fmMain.FormAction.value = "Reset";
	document.fmMain.action = document.fmMain.txtAttachmentBlockingLink.value + "&Subject=$$SCAN_SUBJECT_ID2$$";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsAddExtension(oSource,oTarget,sID) {
	oSource.value = setTrim(oSource.value);
	if (oSource.value.length==0) return false;
	if(oSource.value.indexOf(".")>-1){
	    alert(STR_ERR_INVALID_EXTENSION);
		oSource.focus();oSource.select();
	    return false;
	}
	var vntName = oSource.value.split(";");
	if (!checkNumberRange(oTarget.length+vntName.length,INT_AB_ENTENSION_MAX,1,STR_ERR_AB_EXTENSION_COUNT)) return false;
	for (var i=0;i<vntName.length;i++) {
		if (!checkExtensionFormat(vntName[i],STR_ERR_INVALID_EXTENSION)){
		oSource.focus();oSource.select(); return false;}
		if (vntName[i].length > INT_LONG_EXTENSION_MAX) {alert(STR_ERR_INVALID_EXTENSION);oSource.focus();oSource.select(); return false;}
	}
	
	var nTemp = 0;
	var sTemp1 = "";
	var sTemp2 = "";
	oSource.value = "";
	for (var i=0;i<vntName.length;i++) {
		sTemp1 = "";
		sTemp2 = setTrim(vntName[i]);
		if (sTemp2 != "") {
			for (var j=0;j<sTemp2.length;j++) {
				nTemp = sTemp2.charCodeAt(j);
				if (nTemp>=97 && nTemp<=122) nTemp = nTemp - 32;
				sTemp1 = sTemp1 + String.fromCharCode(nTemp);
			}
			oSource.value = sTemp1;
			document.getElementById("lst"+sID).style.width = null;
			setUIMoveItem(oSource,oTarget,true);
			setListboxUI(document.getElementById("lst"+sID),document.getElementById("div"+sID+"Inner"),document.getElementById("div"+sID+"Outer"));
		}
	}
}
function jsDelExtension(oTarget,sID) {
	document.getElementById("lst"+sID).style.width = null;
	setUIDelfromList(oTarget);
	setListboxUI(document.getElementById("lst"+sID),document.getElementById("div"+sID+"Inner"),document.getElementById("div"+sID+"Outer"));
}
function jsAddAttachment(oSource,oTarget,sID) {
	oSource.value = setTrim(oSource.value);
	if (oSource.value.length==0) return false;
	if (oSource.value.length > 255){alert(STR_WARN_FILENAME_LENGTH);oSource.focus();oSource.select(); return false;};
	if (!checkNumberRange(oTarget.length+1,INT_AB_FILENAME_MAX,1,STR_ERR_AB_FILENAME_COUNT)) return false;
	//oSource.value=oSource.value.toUpperCase();
	var sTemp1 = "";
	var sTemp2 = oSource.value;
	var nTemp = 0;
	for (var i=0;i<sTemp2.length;i++) {
		nTemp = sTemp2.charCodeAt(i);
		if (nTemp>=97 && nTemp<=122) nTemp = nTemp - 32;
		sTemp1 = sTemp1 + String.fromCharCode(nTemp);
	}
	oSource.value = sTemp1;
	if (!checkAttachFileName(oSource.value,STR_ERR_INVALID_FILENAME)) return false;
	
	document.getElementById("lst"+sID).style.width = null;
	setUIMoveItem(oSource,oTarget,true);
	setListboxUI(document.getElementById("lst"+sID),document.getElementById("div"+sID+"Inner"),document.getElementById("div"+sID+"Outer"));
}
function jsDelAttachment(oTarget,sID) {
	document.getElementById("lst"+sID).style.width = null;
	setUIDelfromList(oTarget);
	setListboxUI(document.getElementById("lst"+sID),document.getElementById("div"+sID+"Inner"),document.getElementById("div"+sID+"Outer"));
}
function jsUIDependency(){
    document.getElementById("QuarantineAllTipIcon").style.display = (document.getElementById("rdoQuarantineItem").checked && vPlatform=="Ex2007" && vBridgeHead_MailBox)?"":"none";
    document.getElementById("DeleteAllTipIcon").style.display = (document.getElementById("rdoDeleteAll").checked && vEx2000_2003=="EX2000")?"":"none";
   
    //Administrator Notification
	document.getElementById("txtNotifyAdminTo1").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	document.getElementById("txtNotifyAdminSubject").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	document.getElementById("optAdminMessageType").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	document.getElementById("txtNotifyAdminMessage").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	var settingRadio = document.getElementsByName("optNotifyAdminSettings");
	for(var i = 0;i<settingRadio.length;i++)
	    settingRadio[i].disabled= (!document.getElementById("chkNotifyAdmin").checked);	
	document.getElementById("txtNotifyAdminSettingsPeriod").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	document.getElementById("optNotifyAdminSettingsPeriodUnit").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	document.getElementById("txtNotifyAdminSettingsOccurence").disabled = (!document.getElementById("chkNotifyAdmin").checked);
	//SNMP 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 ;  
}
function jsChangeTag(vTag){
    vCURRENT_TAG = vTag;
}
function jsOpenOnlineHelp(){
	
    if (vCURRENT_TAG == "Action") {
        strMapURL = "scan\Attachmentblocking.htm_Action";
    }
    else if(vCURRENT_TAG == "Notification"){
        strMapURL = "scan\Attachmentblocking.htm_Notification";
    }  
    else {
        strMapURL = "scan\Attachmentblocking.htm_Target";
    }
    jsMapOnlineHelp(strMapURL);
	
}
//-->
</script>
</head>

<body onLoad="jsInitPage();" onclick="checkPageStatus(event);">
<form id="fmMain" name="fmMain" action="$$FORM_ACTION$$" method="POST">
<!--Hidden Field-->
<input type="hidden" name="CfgRedirect" value="$$REDIRECT$$"/>
<input type="hidden" name="FormAction" value="Save">
<input type="hidden" id="txtSSTaskName" name="txtSSTaskName" value="$$SS_TASK_NAME$$" />
<input type="hidden" id="txtSSTaskBehavior" name="txtSSTaskBehavior" value="$$SS_TASK_BEHAVIOR$$" />
<input type=hidden id="txtAttachmentBlockingLink" name="txtAttachmentBlockingLink" value="$$ATTACHMENT_BLOCKING_LINK$$">
<!--/Hidden Field-->
<!--Page Title-->



<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title">$$AB_CONTENT_TITLE$$</td>
	<td valign="bottom" align="right">
		<a href="javascript:jsOpenOnlineHelp();" class="moretestblue">
		<img src="images/question.gif" border="0" class="vAlignMid"> 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-->


$$SECTION_BEGIN$$
<tr id="MailboxEnableFunction" >
<td><input type=checkbox id="chkStoreEnable" name="optPolicyEnabled" $$ID_STORE_PR_ATTACHMENT_BLOCKING_DISABLE$$ $$OPT_STORE_FILTER_ENABLED$$>Enable real-time file blocking</td></tr>			

<tr height="10"><td></td></tr>
$$SECTION_END$$






<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><img id="Tag1_imgS" src="images/tab_active1_left_cui.gif" style="vertical-align:top"></td>
				<td valign="top" nowrap id="Tag1" style="background-image:url(images/tab_active_background_cui.gif)" class="tabactive" onClick="jsChangeTag('Target');">Target</td>
				<td><img id="Tag1_imgE" src="images/tab_active_right_cui.gif" style="vertical-align:top"></td>
				<td><img id="Tag2_imgS" src="images/tab_inactive2_left_cui.gif" style="vertical-align:top"></td>
				<td valign="top" nowrap id="Tag2" style="background-image:url(images/tab_inactive_background_cui.gif)" class="tabinactive" onClick="jsChangeTag('Action');"><a class="subnavselect" href="javascript:setUITagDisplay(2,3,'Action');">Action</a></td>
				<td><img id="Tag2_imgE" src="images/tab_inactive_right_cui.gif" style="vertical-align:top"></td>
				<td><img id="Tag3_imgS" src="images/tab_inactive2_left_cui.gif" style="vertical-align:top"></td>
				<td valign="top" nowrap id="Tag3" style="background-image:url(images/tab_inactive_background_cui.gif)" class="tabinactive" onClick="jsChangeTag('Notification');"><a class="subnavselect" href="javascript:setUITagDisplay(3,3,'Notification');">Notification</a></td>
				<td><img id="Tag3_imgE" src="images/tab_inactive_right_cui.gif" style="vertical-align:top"></td></tr>
			</table></td>
			<td 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">
		<!--||Block these attachments||-->
		<tr>
		  <td width="100%" class="tableheadergreyS">Block these files</td>
		</tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding:1">

        		
				<tr id="needtohidetr1" style="display:none"><td height="20"><input type="radio" name="optScan" value="all" $$SCAN_TYPE_ALL$$></td>
					<td colspan="2">All files</td>
				</tr>
				<tr id="needtohidetr2" style="display:none"><td width="20"></td>
					<td width="20"><input type="checkbox" name="chkAllType" $$OPT_ALL_ATTACH_TYPES_ENABLED$$ onClick="setUIChecked(this.checked,fmMain.chkAll);"></td>
					<td width="100%">File types to exclude 
					    <span id="tabAllType" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onClick="setUIMoreDisplay(this);">
					        <img id="tabAllType_icon" src="images/more_down_out.gif">
					        Show details
					    </span>
					</td>
				</tr>
				<tr id="needtohidetr3" style="display:none"><td colspan="3"><table id="tabAllType_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr><td width="40"></td>
										<td>$$EXCLUSIVE_FILE_TYPES$$</td></tr>
									</table></td></tr>
				<tr id="needtohidetr4" style="display:none"><td></td>
					<td><input type="checkbox" name="chkAllName" $$OPT_ALL_ATTACH_NAMES_ENABLED$$ onClick="setUIChecked(this.checked,fmMain.chkAllName_items);"></td>
					<td>File names to exclude
					        <span id="tabAllName" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onClick="setUIMoreDisplay(this);jsInitListbox(this.id);">
					            <img id="tabAllName_icon" src="images/more_down_out.gif">
					            Show details
					        </span></td>
				</tr>
				<tr id="needtohidetr5" style="display:none"><td colspan="3"><table id="tabAllName_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr><td width="40"></td>
										<td><table border="0" cellpadding="0" cellspacing="0">
											<tr><td><input type="checkbox" id="chkAllName_items" name="chkAllExtension" $$OPT_EXCLUSIVE_EXTENSION_ENABLED$$ onClick="setUIItemsChecked(fmMain.chkAllName,fmMain.chkAllName_items,false);"></td>
												<td colspan="2">Specific file extensions to exclude (use ; to separate entries)</td></tr>
											<tr><td width="20"></td>
												<td><input type="text" class="text" name="txtAllExtension" style="width:100%"></td>
												<td><input type="button" class="text" value="Add" style="width:50" onClick="jsAddExtension(fmMain.txtAllExtension,fmMain.lstAllExtension,'AllExtension');"></td></tr>
											<tr><td></td>
												<td><table border="1" cellpadding="0" cellspacing="1"><tr><td>
													<div id="divAllExtensionOuter" name="divAllExtensionOuter" style="overflow:auto;width:300;height:100">
													<table border="0" cellpadding="0" cellspacing="0"><tr><td>
														<div id="divAllExtensionInner" name="divAllExtensionInner" style="position:relative;overflow:hidden">
														<select class="text" id="lstAllExtension" name="lstAllExtension" multiple style="position:relative">$$EXCLUSIVE_ALL_EXTENSIONS$$</select>
														</div></td></tr>
													</table></div></td></tr>
													</table></td>
												<td valign="top"><input type="button" class="text" style="width:50" value="Delete" onClick="jsDelExtension(fmMain.lstAllExtension,'AllExtension');"></td></tr>
											<tr><td><input type="checkbox" id="chkAllName_items" name="chkAllAttachment" $$OPT_EXCLUSIVE_FILENAME_ENABLED$$ onClick="setUIItemsChecked(fmMain.chkAllName,fmMain.chkAllName_items,false);"></td>
												<td colspan="2">File names to exclude</td></tr>
											<tr><td></td>
												<td><input type="text" class="text" name="txtAllAttachment" id="txtAllAttachment" style="width:100%"></td>
												<td><input type="button" class="text" value="Add" style="width:50" onClick="jsAddAttachment(fmMain.txtAllAttachment,fmMain.lstAllAttachment,'AllAttachment');"></td></tr>
											<tr><td></td>
												<td><table border="1" cellpadding="0" cellspacing="1"><tr><td>
													<div id="divAllAttachmentOuter" name="divAllAttachmentOuter" style="overflow:auto;width:300;height:100">
													<table border="0" cellpadding="0" cellspacing="0"><tr><td>
														<div id="divAllAttachmentInner" name="divAllAttachmentInner" style="position:relative;overflow:hidden">
														<select class="text" id="lstAllAttachment" name="lstAllAttachment" multiple style="position:relative">$$EXCLUSIVE_ALL_FILENAMES$$</select>
														</div></td></tr>
													</table></div></td></tr>
													</table></td>
												<td valign="top"><input type="button" class="text" value="Delete" style="width:50" onClick="jsDelAttachment(fmMain.lstAllAttachment,'AllAttachment');"></td></tr>
											</table></td></tr>
									</table></td></tr>
        
				<tr id="needtohidetr6" style="display:none"><td height="20"><input type="radio" name="optScan" value="specified" $$SCAN_TYPE_SPECIFIED$$></td>
					<td colspan="2">Specific files</td>
				</tr>
               
                <tr><td height="20"colspan="4">&nbsp;Specific files</td><!--Added by Jimmy -->

				</tr>
				<tr><td width="20"></td>
					<td width="20"><input type="checkbox" id="chkSpecifiedType" name="chkSpecifiedType" $$OPT_SPECIFIED_ATTACH_TYPES_ENABLED$$ onClick="setUIChecked(this.checked,fmMain.chkSpecified);"></td>
					<td width="100%">File types 
					            <span id="tabSpecifiedType" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onClick="setUIMoreDisplay(this);">
					            <img id="tabSpecifiedType_icon" src="images/more_down_out.gif">
					            Show details
					            </span>
					            </td>
				</tr>										
				<tr><td colspan="3"><table id="tabSpecifiedType_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr><td width="40"></td>
										<td>$$SPECIFIED_FILE_TYPES$$</td></tr>
									</table></td></tr>
				<tr><td></td>
					<td><input type="checkbox" id="chkSpecifiedName" name="chkSpecifiedName" $$OPT_SPECIFIED_ATTACH_NAMES_ENABLED$$ onClick="setUIChecked(this.checked,fmMain.chkSpecifiedName_items);"></td>
					<td>File names
					        <span id="tabSpecifiedName" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onClick="setUIMoreDisplay(this);jsInitListbox(this.id);">
					            <img id="tabSpecifiedName_icon" src="images/more_down_out.gif">
					            Show details
					            </span>
					            </td>
				</tr>
				<tr><td colspan="3"><table id="tabSpecifiedName_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0">
									<tr><td width="40"></td>
										<td><table border="0" cellpadding="0" cellspacing="0">
											<tr><td><input type="checkbox" id="chkSpecifiedName_items" name="chkSpecifiedExtension" $$OPT_EXTENSION_ENABLED$$ onClick="setUIItemsChecked(fmMain.chkSpecifiedName,fmMain.chkSpecifiedName_items,false);"></td>
												<td colspan="2">Specific file extensions to block (use ; to separate entries)</td></tr>
											<tr><td width="20"></td>
												<td><input type="text" class="text" name="txtSpecifiedExtension" style="width:20"/td>
												<td><input type="button" class="text" value="Add" style="width:50" onClick="jsAddExtension(fmMain.txtSpecifiedExtension,fmMain.lstSpecifiedExtension,'SpecifiedExtension');"></td></tr>
											<tr><td></td>
												<td><table border="1" cellpadding="0" cellspacing="1"><tr><td>
													<div id="divSpecifiedExtensionOuter" name="divSpecifiedExtensionOuter" style="overflow:auto;width:300;height:100">
													<table border="0" cellpadding="0" cellspacing="0"><tr><td>
														<div id="divSpecifiedExtensionInner" name="divSpecifiedExtensionInner" style="position:relative;overflow:hidden">
														<select class="text" id="lstSpecifiedExtension" name="lstSpecifiedExtension" multiple style="position:relative">$$SPECIFIED_ALL_EXTENSIONS$$</select>
														</div></td></tr>
													</table></div></td></tr>
													</table></td>
												<td valign="top"><input type="button" class="text" value="Delete" style="width:50" onClick="jsDelExtension(fmMain.lstSpecifiedExtension,'SpecifiedExtension');"></td></tr>
											<tr><td><input type="checkbox" id="chkSpecifiedName_items" name="chkSpecifiedAttachment" $$OPT_FILENAME_ENABLED$$ onClick="setUIItemsChecked(fmMain.chkSpecifiedName,fmMain.chkSpecifiedName_items,false);"></td>
												<td colspan="2">File names to block</td></tr>
											<tr><td></td>
												<td><input type="text" class="text" name="txtSpecifiedAttachment" id="txtSpecifiedAttachment" style="width:100%"></td>
												<td><input type="button" class="text" value="Add" style="width:50" onClick="jsAddAttachment(fmMain.txtSpecifiedAttachment,fmMain.lstSpecifiedAttachment,'SpecifiedAttachment');"></td></tr>
											<tr><td></td>
												<td><table border="1" cellpadding="0" cellspacing="1"><tr><td>
													<div id="divSpecifiedAttachmentOuter" name="divSpecifiedAttachmentOuter" style="overflow:auto;width:300;height:100">
													<table border="0" cellpadding="0" cellspacing="0"><tr><td>
														<div id="divSpecifiedAttachmentInner" name="divSpecifiedAttachmentInner" style="position:relative;overflow:hidden">
														<select class="text" id="lstSpecifiedAttachment" name="lstSpecifiedAttachment" multiple style="position:relative">$$SPECIFIED_ALL_FILENAMES$$</select>
														</div></td></tr>
													</table></div></td></tr>
													</table></td>
												<td valign="top"><input type="button" class="text" value="Delete" style="width:50" onClick="jsDelAttachment(fmMain.lstSpecifiedAttachment,'SpecifiedAttachment');"></td></tr>
											</table></td></tr>
									</table></td></tr>
				<tr><td height="5" colspan="3"></td></tr>
				<tr><td><input type=checkbox id="chkScanZip" name="chkScanZip" value="scan_any_compressed_file" $$OPT_SCAN_ZIP_CHECKED$$></td>
					<td colspan="2">Block file types or names within compressed files</td>
				</tr>
				</table></td></tr>
		</table>
        
        
        
        
        
        
        
        
        
		<table id="Tag2_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--Action.htm_partial-->
		<!--NOTE: DISABLE FIRST
			$$ACTION_PARTIAL$$
		-->
		<!--||Select Action||-->
		<tr><td class="tableheadergreyS">Action Settings</td></tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="2">
				<tr><td id="radioDeleteAllAction" height="20" width="2%"><input type=radio id="rdoDeleteAll" name="optActionType" value="delete" onClick="jsUIDependency();" $$ACTION_DELETE_ALL_CHECKED$$></td>
					<td width="15%">$$DELETE_ACTION_NAME$$ 
					    <img id="DeleteAllTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_DELETE_ALL_TITLE,TIP_DELETE_ALL_CONTENT);"></td><td width="90%"></td></tr>			
				
                <tr id="QuarantineItem" ><td height="20" width="2%"><input type=radio id="rdoQuarantineItem" name="optActionType" value="quarantine" onClick="jsUIDependency();" $$ACTION_QUARANTINE_ITEM_CHECKED$$></td>
					<td width="15%">Quarantine
					    <img id="QuarantineAllTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINEENTIRE_TITLE,TIP_QUARANTINEENTIRE_CONTENT);">
					</td></td><td width="90%"></td></tr>
					
               <tr id="PassAction"><td width="2%"><input type=radio name="optActionType" value="pass" onClick="jsUIDependency();" $$ACTION_PASS_CHECKED$$></td>
					<td width="15%">Pass
                    </td><td width="90%"></td></tr>                 
				<tr height="5"><td colspan="2"></td></tr>
				<tr><td colspan="2">&nbsp;<b>AND</b></td></tr>
				<tr height="5"><td colspan="2"></td></tr>
				<tr><td height="20"><input type=radio name="optActionNotify" value="notify_enabled" $$NOTIFY_ENABLED$$></td>
					<td>Notify</td></tr>
				<tr><td height="20"><input type=radio name="optActionNotify" value="notify_disabled" $$NOTIFY_DISABLED$$></td>
					<td>Do not notify</td></tr>				
				</table></td></tr>
		<!--<tr><td class="tableheaderM">Advanced Options</td></tr> -->
		<!--
        <tr><td class="tableheadergreyS">
		    <a href="javascript:setUIMoreDisplay(document.getElementById('tabDirectory'));" class="tableheaderlink" id="tabDirectory"> 
		    <img id="tabDirectory_icon" src="images/more_down_out.gif" border="0">
		    Quarantine Settings
		    </a>
		    </td></tr>
     
		<tr id="tabDirectory_items" style="display:none"><td>
		    <table width="100%" border="0" cellpadding="0" cellspacing="2">
				    <tr><td width="150">Quarantine directory:</td>
				         <td><input type=text class="text" name="txtQuarantineDir" value="$$ACTION_QUARANTINE_PATH$$" style="width:95%">
				        <img src="images/info_mark.gif" style="cursor:hand;position:relative" onMouseOut="hideToolTip('ifmToolTip');" 
						onmouseover="showToolTip('ifmToolTip',this,300,110,TIP_AB_QUARANTINEPATH_TITLE,TIP_AB_QUARANTINEPATH_CONTENT);">
				        </td></tr>
				    </table></td></tr>
         -->        
		</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>
        
        
        
        
        
        
        
        
        
        
        
        
<!--/Content-->
<!--Button-->
<tr height="10"><td></td></tr>
<tr><td><input type="button" class="button" id="btnSave" name="btnSave" value="Save" onClick="jsSubmit();">
		<input type="button" class="button" id="btnReset" value="Reset" onClick="jsReset();"></td></tr>
<!--/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>
