<html>
<head>
<title>Virus_Scanning</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 vHostDriveLabels = "$$HOST_DRIVE_LABELS$$";

// < DO NOT LOCALIZE //>

var STR_ACTION_RS_VALUE				= ["clean","delete","pass"];
var STR_ACTION_MS_VALUE 			= ["clean","quarantine","delete","pass","rename"];
var STR_ACTION_UNCLEANABLE_RS_VALUE 	= ["delete","pass"];
var STR_ACTION_UNCLEANABLE_MS_VALUE = ["quarantine","delete","pass","rename"];
var STR_NOTIFY_VE					= "notify,do_not_notify";
var STR_NOTIFY_UNCLEANABLE_VE		= "notify,uncleanable_only,do_not_notify";

// <// DO NOT LOCALIZE >

var bLoaded = false;
var IsRealTime = $$IS_REAL_TIME$$;
function jsInitPage() {
    //Virus Scan Action Settings
	//debugger;
    if(!IsRealTime)
    {
        document.getElementById('notifyViolatorDIV1').style.display = "";
        document.getElementById('notifyViolatorDIV2').style.display = "";
    }
    setOptionValueEx(document.fmMain.optViolatorMessageType,STR_VS_NOTIFY_MSG,STR_VS_NOTIFY_MSG); 
    jsActionInit();
    
	bLoaded = true; //pages initialized
	document.getElementById("IntelliScanToolTipIcon").style.display = "";
	document.getElementById("IntelliTrapToolTipIcon").style.display = "";
	
	var oForm = document.fmMain;
	
	setOptionValueEx(oForm.optAllThreatsAction,$$STR_ACTION_ALLTHREATSACTION$$,$$STR_ACTION_ALLTHREATSACTION_VALUE$$);
	setOptionValueEx(oForm.optVirusAction,$$STR_ACTION_ALLVIRUSACTION$$,$$STR_ACTION_ALLVIRUSACTION_VALUE$$);
	setOptionValueEx(oForm.optTrojansAction,$$STR_ACTION_TROJANSACTION$$,$$STR_ACTION_TROJANSACTION_VALUE$$);
	setOptionValueEx(oForm.optPackersAction,$$STR_ACTION_PACKERSACTION$$,$$STR_ACTION_PACKERSACTION_VALUE$$);
	setOptionValueEx(oForm.optGenericsAction,$$STR_ACTION_GENERICSACTION$$,$$STR_ACTION_GENERICSACTION_VALUE$$);
	setOptionValueEx(oForm.optOtherVirusAction,$$STR_ACTION_OTHERVIRUSACTION$$,$$STR_ACTION_OTHERVIRUSACTION_VALUE$$);
	setOptionValueEx(oForm.optAdditonalThreatsAction,$$STR_ACTION_ADDITIONALTHREATSACTION$$,$$STR_ACTION_ADDITIONALTHREATSACTION_VALUE$$);
	setOptionValueEx(oForm.optUncleanFileAction,$$STR_ACTION_UNCLEANFILEACTION$$,$$STR_ACTION_UNCLEANFILEACTION_VALUE$$);
	setOptionValue(oForm.optHeuristicLevel,STR_MACROS_HEURISTIC,true);
	setOptionValueEx(oForm.optEncryptedAction,$$STR_ACTION_ENCRYPTEDACTION$$,$$STR_ACTION_ENCRYPTEDACTION_VALUE$$);
	setOptionValueEx(oForm.optEncryptedNotify,STR_NOTIFY,STR_NOTIFY_VE);
	setOptionValueEx(oForm.optSpecifiedAction,$$STR_ACTION_SPECIFIEDACTION$$,$$STR_ACTION_SPECIFIEDACTION_VALUE$$);
	setOptionValueEx(oForm.optSpecifiedNotify,STR_NOTIFY,STR_NOTIFY_VE);
	setOptionValueEx(oForm.optActiveAction,STR_NOTIFY_UNCLEANABLE,STR_NOTIFY_UNCLEANABLE_VE);
	setOptionValueEx(oForm.optAdditonalThreatsNotify,STR_NOTIFY,STR_NOTIFY_VE);
	setOptionValueEx(oForm.optAdminMessageType,STR_VS_NOTIFY_MSG,STR_VS_NOTIFY_MSG);
	setOptionValueEx(oForm.optSNMPMessageType,STR_VS_NOTIFY_MSG,STR_VS_NOTIFY_MSG);
	
	//oForm.txtBodySize.disabled 		=(!oForm.chkBody.checked);
	oForm.txtAttachSize.disabled	=(!oForm.chkAttach.checked);
	oForm.txtFileNum.disabled 		=(!oForm.chkFileNum.checked);
	oForm.txtFileSize.disabled 		=(!oForm.chkFileSize.checked);
	oForm.txtFileLayerNum.disabled 	=(!oForm.chkFileLayer.checked);
	oForm.txtFileRatio.disabled 	=(!oForm.chkFileRatio.checked);

	// set max length
	oForm.txtFileExtension.maxLength = INT_LMAX_EXTENTEXT_VS;
	
	oForm.txtAttachSize.maxLength	 = INT_LMAX_ATTCHMENT;
	oForm.txtFileNum.maxLength		 = INT_LMAX_FILE_COUNT;
	oForm.txtFileSize.maxLength		 = INT_LMAX_FILE_SIZE;
	oForm.txtFileLayerNum.maxLength	 = INT_LMAX_FILE_LAYER;
	oForm.txtFileRatio.maxLength	 = INT_LMAX_RATIO;
	oForm.txtBackupDirectory.maxLength		 = INT_LMAX_PATH_DIR;
	//oForm.txtQuarantineDirectory.maxLength	 = INT_LMAX_PATH_DIR;

	oForm.txtSNMPCommunity.maxLength		 = INT_LMAX_SNMP;
	oForm.txtNotifyAdminSubject.maxLength	 = INT_LMAX_EM_SUBJECT;

	oForm.txtNotifyAdminTo2.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminTo2_1.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminTo2_2.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminTo2_3.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminTo2_4.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminTo2_5.maxLength	= INT_LMAX_EM_ADDR_M;
	//oForm.txtNotifyAdminTo2_6.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminTo2_7.maxLength	= INT_LMAX_EM_ADDR_M;
	oForm.txtNotifyAdminSettingsPeriod.maxLength	= INT_LMAX_NOTI_PERIOD;
	oForm.txtNotifyAdminSettingsOccurence.maxLength	= INT_LMAX_NOTI_OCCUR;
	
	// set page
	oForm.optActiveAction.value = "$$OPT_ACTION_TARGET_ACTIVE_ACTION_NOTIFY_SELECTED$$";
	//oForm.optMassMailAction.value = "$$OPT_ACTION_TARGET_MASS_MAILING_ACTION_SELECTED$$";
	oForm.optAllThreatsAction.value = "$$OPT_ACTION_TARGET_ALL_THREATS_ACTION_SELECTED$$";
	oForm.optVirusAction.value = "$$OPT_ACTION_TARGET_VIRUS_ACTION_SELECTED$$";
	oForm.optTrojansAction.value = "$$OPT_ACTION_TARGET_TROJANS_ACTION_SELECTED$$";
	oForm.optPackersAction.value = "$$OPT_ACTION_TARGET_PACKERS_ACTION_SELECTED$$";
	oForm.optGenericsAction.value = "$$OPT_ACTION_TARGET_GENERICS_ACTION_SELECTED$$";
	oForm.optOtherVirusAction.value = "$$OPT_ACTION_TARGET_OTHER_VIRUS_ACTION_SELECTED$$";
	oForm.optAdditonalThreatsAction.value = "$$OPT_ACTION_TARGET_ADDITIONAL_THREATS_ACTION_SELECTED$$";
	oForm.optAdditonalThreatsNotify.value = "$$OPT_ACTION_TARGET_ADDITIONAL_THREATS_NOTIFY_SELECTED$$";
	oForm.optUncleanFileAction.value = "$$OPT_ACTION_TARGET_UNCLEANFILE_ACTION_SELECTED$$";
	oForm.optHeuristicLevel.value = "$$OPT_MACRO_VIRUS_LEVEL_SELECTED$$";
	oForm.optEncryptedAction.value = "$$OPT_ACTION_TARGET_ENCRYPTED_ACTION_SELECTED$$";
	oForm.optEncryptedNotify.value = "$$OPT_ACTION_TARGET_ENCRYPTED_NOTIFY_SELECTED$$";
	oForm.optSpecifiedAction.value = "$$OPT_ACTION_TARGET_SPECIFIED_ACTION_SELECTED$$";
	oForm.optSpecifiedNotify.value = "$$OPT_ACTION_TARGET_SPECIFIED_NOTIFY_SELECTED$$";
	

	jsSyncNotifyOption((oForm.optAllThreatsAction.selectedIndex==0),oForm.optAllThreatsNotify);
	oForm.optAllThreatsNotify.value = "$$OPT_ACTION_TARGET_ALL_THREATS_NOTIFY_SELECTED$$";
	jsSyncNotifyOption((oForm.optVirusAction.selectedIndex==0),oForm.optVirusNotify);
	oForm.optVirusNotify.value = "$$OPT_ACTION_TARGET_VIRUS_NOTIFY_SELECTED$$";
	jsSyncNotifyOption(false,oForm.optTrojansNotify);
	oForm.optTrojansNotify.value = "$$OPT_ACTION_TARGET_TROJANS_NOTIFY_SELECTED$$";
	jsSyncNotifyOption(false,oForm.optPackersNotify);
	oForm.optPackersNotify.value = "$$OPT_ACTION_TARGET_PACKERS_NOTIFY_SELECTED$$";
	jsSyncNotifyOption((oForm.optGenericsAction.selectedIndex==0),oForm.optGenericsNotify);
	oForm.optGenericsNotify.value = "$$OPT_ACTION_TARGET_GENERICS_NOTIFY_SELECTED$$";
	jsSyncNotifyOption((oForm.optOtherVirusAction.selectedIndex==0),oForm.optOtherVirusNotify);
	oForm.optOtherVirusNotify.value = "$$OPT_ACTION_TARGET_OTHER_VIRUS_NOTIFY_SELECTED$$";
	setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);
	// init page
	jsUIDependency();
    //jsServerRoleDependency("scan/Virusscanning.htm");
	jsTagInit("VirusScan","Target;Action;Notification");
	// release event capture
	CANCEL_EVENT = false;
}


function jsActionInit(){
   
	STR_ACTION_RS	= STR_ACTION_RS.join();
 	STR_ACTION_RS_VALUE = STR_ACTION_RS_VALUE.join();
 	STR_ACTION_MS	= STR_ACTION_MS.join();			   
 	STR_ACTION_MS_VALUE = STR_ACTION_MS_VALUE.join(); 		
 	STR_ACTION_UNCLEANABLE_RS = STR_ACTION_UNCLEANABLE_RS.join();		
 	STR_ACTION_UNCLEANABLE_RS_VALUE = STR_ACTION_UNCLEANABLE_RS_VALUE.join();

    STR_ACTION_UNCLEANABLE_MS = STR_ACTION_UNCLEANABLE_MS.join();
    STR_ACTION_UNCLEANABLE_MS_VALUE = STR_ACTION_UNCLEANABLE_MS_VALUE.join();
     
}

function jsSubmit() {
	// add some checking

	if (!checkNumberRange(document.getElementById("txtAttachSize").value,INT_NMAX_ATTCHMENT,INT_NMIN_ATTCHMENT,STR_WARN_ATTCHMENT,false)){
		setUITagDisplay(1,3,'Target');
		if (document.getElementById("tabAdvRestrictions_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabAdvRestrictions"));
		jsFocus(document.getElementById("txtAttachSize"));
		return false;
	}
	if (!checkNumberRange(document.getElementById("txtFileNum").value,INT_NMAX_FILE_COUNT,INT_NMIN_FILE_COUNT,STR_WARN_FILE_COUNT,false)){
		setUITagDisplay(1,3,'Target');
		if (document.getElementById("tabAdvRestrictions_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabAdvRestrictions"));
		jsFocus(document.getElementById("txtFileNum"));
		return false;
	}
	if (!checkNumberRange(document.getElementById("txtFileSize").value,INT_NMAX_FILE_SIZE,INT_NMIN_FILE_SIZE,STR_WARN_FILE_SIZE,false)){
		setUITagDisplay(1,3,'Target');
		if (document.getElementById("tabAdvRestrictions_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabAdvRestrictions"));
		jsFocus(document.getElementById("txtFileSize"));
		return false;
	}
	if (!checkNumberRange(document.getElementById("txtFileLayerNum").value,INT_NMAX_FILE_LAYER,INT_NMIN_FILE_LAYER,STR_WARN_FILE_LAYER,false)){
		setUITagDisplay(1,3,'Target');
		if (document.getElementById("tabAdvRestrictions_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabAdvRestrictions"));
		jsFocus(document.getElementById("txtFileLayerNum"));
		return false;
	}
	if (!checkNumberRange(document.getElementById("txtFileRatio").value,INT_NMAX_RATIO,INT_NMIN_RATIO,STR_WARN_RATIO,false)){
		setUITagDisplay(1,3,'Target');
		if (document.getElementById("tabAdvRestrictions_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabAdvRestrictions"));
		jsFocus(document.getElementById("txtFileRatio"));
		return false;
	}
	// action
	var vDriveLabel = document.fmMain.txtBackupDirectory.value.toLowerCase().charAt(0);
	if (vHostDriveLabels.toLowerCase().indexOf(vDriveLabel) == -1)
	{
		setUITagDisplay(2,3,'Action');
		if (document.getElementById("tabBackup_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabBackup"));
		alert(STR_ERR_INVALID_BACKUP_DRIVE);
		jsFocus(document.fmMain.txtBackupDirectory);
		return false;
	}
		
	if (!checkPathFormat(document.fmMain.txtBackupDirectory.value,STR_ERR_INVALID_DIR,false)) {
		setUITagDisplay(2,3,'Action');
		if (document.getElementById("tabBackup_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabBackup"));
		jsFocus(document.fmMain.txtBackupDirectory);
		return false;
	}
	
	/*vDriveLabel = document.fmMain.txtQuarantineDirectory.value.toLowerCase().charAt(0);
	if (vHostDriveLabels.toLowerCase().indexOf(vDriveLabel) == -1)
	{
		setUITagDisplay(2,3,'Action');
		if (document.getElementById("tabBackup_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabBackup"));
		alert(STR_ERR_INVALID_QUARANTINE_DRIVE);
		jsFocus(document.fmMain.txtQuarantineDirectory);
		return false;
	}
		
	if (!checkPathFormat(document.fmMain.txtQuarantineDirectory.value,STR_ERR_INVALID_DIR,false)) {
		setUITagDisplay(2,3,'Action');
		if (document.getElementById("tabBackup_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabBackup"));
		jsFocus(document.fmMain.txtQuarantineDirectory);
		return false;
	}
	*/

	// notification
	if(document.getElementById("chkNotifyAdmin").checked && document.getElementById("optNotifyAdminTo").checked){
	    if(document.getElementById("NotifyAdminTo1").style.display!="none") {
		    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.fmMain.txtNotifyAdminTo2.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.txtNotifyAdminTo2);
		    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,"") && !checkIsIPv6Address(document.fmMain.txtSNMPIP.value) ){
            alert(STR_ERR_INVALID_IPADDRESS);
		    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;	
	}
	var ntf_email_array = new Array(document.fmMain.txtNotifyAdminTo1,
									document.fmMain.txtNotifyAdminTo2,
									document.fmMain.txtNotifyAdminTo2_1,
									document.fmMain.txtNotifyAdminTo2_2,
									document.fmMain.txtNotifyAdminTo2_3,
									document.fmMain.txtNotifyAdminTo2_4,
									document.fmMain.txtNotifyAdminTo2_5,
								//	document.fmMain.txtNotifyAdminTo2_6,
									document.fmMain.txtNotifyAdminTo2_7);
	for (var i=0;i<ntf_email_array.length;i++) {
		if (!checkMultiEmailPatternFormat(ntf_email_array[i].value,STR_ERR_INVALID_EMAIL)) {
			setUITagDisplay(3,3,'Notification');
			if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
			if (i != 0) {
				if (document.getElementById("tabNotifyAdminTo_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdminTo"));
			}
			jsFocus(ntf_email_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("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;
	}
	

//	document.fmMain.txtBodySizeUnit.value		= (0==document.fmMain.optBodySizeUnit.value)?0:1;	//0:KB 1:MB
//	document.fmMain.txtAttachSizeUnit.value 	= (0==document.fmMain.optAttachSizeUnit.value)?1:2	//1:MB 2:GB
//	document.fmMain.txtCmprSizeUnit.value 		= (0==document.fmMain.optFileSizeUnit.value)?1:2	//1:MB 2:GB
	jsSaveCookie("VirusScan");
	setOption2Selected(document.fmMain.lstFileExtension);
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnSubmit.disabled = true;
	document.fmMain.btnReset.disabled = true;
	// submit page
	document.fmMain.action = document.fmMain.txtVirusScanLink.value + "&Subject=$$SCAN_SUBJECT_ID1$$";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsReset() {
	if(!confirm(STR_ALR_RESET_SETTING))
	    return false;
	
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnSubmit.disabled = true;
	document.fmMain.btnReset.disabled = true;
	jsSaveCookie("VirusScan");
	// submit page
	document.fmMain.FormAction.value = "Reset";
	document.fmMain.action = document.fmMain.txtVirusScanLink.value + "&Subject=$$SCAN_SUBJECT_ID2$$";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}

function jsUIDependency() {
	var bDisabled = false;
	var i = 0;

	// Action - Action Type
	document.fmMain.optActiveAction.disabled = !(document.fmMain.optActionType[0].checked); 
	bDisabled = !(document.fmMain.optActionType[1].checked);
//	document.fmMain.chkBackup.disabled = bDisabled;
//	document.fmMain.chkUnclean.disabled = bDisabled;
	//document.fmMain.chkEnableAction.disabled = bDisabled;
	document.fmMain.optUncleanFileAction.disabled = bDisabled;
	for (i=0;i<document.fmMain.optDetectedThreat.length;i++) { document.fmMain.optDetectedThreat[i].disabled = bDisabled; }
	//bDisabled = !(document.fmMain.chkEnableAction.checked && !(document.fmMain.chkEnableAction.disabled));
	//document.fmMain.optMassMailAction.disabled = bDisabled;
	//jsshowWarning("optMassMailAction",document.fmMain.optMassMailAction.selectedIndex);
	//document.fmMain.optMassMailNotify.disabled = bDisabled;
	bDisabled = !(document.fmMain.optDetectedThreat[0].checked && !(document.fmMain.optDetectedThreat[0].disabled));
	document.fmMain.optAllThreatsAction.disabled = bDisabled;
	jsshowWarning("optAllThreatsAction",document.fmMain.optAllThreatsAction.selectedIndex);
	document.fmMain.optAllThreatsNotify.disabled = bDisabled;
	bDisabled = !(document.fmMain.optDetectedThreat[1].checked && !(document.fmMain.optDetectedThreat[1].disabled));
	document.fmMain.optVirusAction.disabled = bDisabled;
	jsshowWarning("optVirusAction",document.fmMain.optVirusAction.selectedIndex);
	document.fmMain.optVirusNotify.disabled = bDisabled;
	document.fmMain.optTrojansAction.disabled = bDisabled;
	jsshowWarning("optTrojansAction",document.fmMain.optTrojansAction.selectedIndex);
	document.fmMain.optTrojansNotify.disabled = bDisabled;
	document.fmMain.optPackersAction.disabled = bDisabled;
	jsshowWarning("optPackersAction",document.fmMain.optPackersAction.selectedIndex);
	document.fmMain.optPackersNotify.disabled = bDisabled;
	document.fmMain.optGenericsAction.disabled = bDisabled;
	jsshowWarning("optGenericsAction",document.fmMain.optGenericsAction.selectedIndex);
	document.fmMain.optGenericsNotify.disabled = bDisabled;
	document.fmMain.optOtherVirusAction.disabled = bDisabled;
	jsshowWarning("optOtherVirusAction",document.fmMain.optOtherVirusAction.selectedIndex);
	document.fmMain.optOtherVirusNotify.disabled = bDisabled;
	document.fmMain.optAdditonalThreatsAction.disabled = bDisabled;
	jsshowWarning("optAdditonalThreatsAction",document.fmMain.optAdditonalThreatsAction.selectedIndex);
	document.fmMain.optAdditonalThreatsNotify.disabled = bDisabled;	
	jsshowWarning("optUncleanFileAction",document.fmMain.optUncleanFileAction.selectedIndex);
	jsshowWarning("optEncryptedAction",document.fmMain.optEncryptedAction.selectedIndex);
	jsshowWarning("optSpecifiedAction",document.fmMain.optSpecifiedAction.selectedIndex);

	// Action - Macros Type
	document.fmMain.optMacrosType[0].disabled = (!document.fmMain.chkEnableMacros.checked);
	document.fmMain.optMacrosType[1].disabled = (!document.fmMain.chkEnableMacros.checked);
	document.fmMain.optHeuristicLevel.disabled = (document.fmMain.optMacrosType[0].disabled || (!document.fmMain.optMacrosType[0].checked));
	
	 //Violator Notification
	if(!IsRealTime)
	 {
	    document.getElementById("txtNotifyViolatorSubject").disabled = (!document.getElementById("chkNotifyViolator").checked);
	    document.getElementById("optViolatorMessageType").disabled = (!document.getElementById("chkNotifyViolator").checked);
	    document.getElementById("txtNotifyViolatorMessage").disabled = (!document.getElementById("chkNotifyViolator").checked);
	 }
	 //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 jsSyncNotifyOption(bClean,oTarget) {
	var nIndex = oTarget.selectedIndex;
	var oText = (nIndex>=0)?oTarget.options[nIndex].text:"";
	var nId = oTarget.id;
	jsUIDependency();
	for (var i=oTarget.options.length;i>0;i--) {
		oTarget.remove(i-1);
	}
	if (bClean) {
		setOptionValueEx(oTarget,STR_NOTIFY_UNCLEANABLE,STR_NOTIFY_UNCLEANABLE_VE);
	} else {
		setOptionValueEx(oTarget,STR_NOTIFY,STR_NOTIFY_VE);
	}
	for (var i=0;i<oTarget.options.length;i++) {
		if (oTarget.options[i].text==oText) {oTarget.options[i].selected=true; break;}
	}
	
}
function jsAddFileExtension() {
	document.fmMain.txtFileExtension.value = setTrim(document.fmMain.txtFileExtension.value);
	if (document.fmMain.txtFileExtension.length==0) return false;
	if(document.fmMain.txtFileExtension.value.indexOf(".")>-1){
	    alert(STR_ERR_INVALID_EXTENSION);
	    return false;
	}

	var vntName = document.fmMain.txtFileExtension.value.split(";");
	if (!checkNumberRange(document.fmMain.lstFileExtension.options.length+vntName.length,INT_NMAX_VSAB_EXTEN,0,STR_WARN_VSAS_EXTEN)) return false;
	for (var i=0;i<vntName.length;i++) {
		if (!checkExtensionFormat(vntName[i],STR_ERR_INVALID_EXTENSION)) return false;
		if (vntName[i].length > INT_LMAX_EXTEN_VS) {alert(STR_ERR_INVALID_EXTENSION); return false;}
	}
	
	var nTemp = 0;
	var sTemp1 = "";
	var sTemp2 = "";
	document.fmMain.txtFileExtension.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);
			}
			document.fmMain.txtFileExtension.value = sTemp1;
			setUIMoveItem(document.fmMain.txtFileExtension,document.fmMain.lstFileExtension,true);
		}
	}
}
function jsshowToolTip(ttFrame,ttObject,ttWidth,ttHeight,ttTitle,ttContent){
	if(bLoaded){
		showToolTip(ttFrame,ttObject,ttWidth,ttHeight,ttTitle,ttContent);
	}
}
function jsshowWarning(oTarget,nIndex){
   var oWarnIcon = oTarget + "TipIcon";
   if(document.getElementById(oWarnIcon)){
   document.getElementById(oWarnIcon).style.display = "none";
   }
   if(!document.getElementById(oTarget).disabled && nIndex > -1) {
        if(document.getElementById(oTarget).options[nIndex].value== "quarantine_all" && vPlatform=="Ex2007" && vBridgeHead_MailBox){
            document.getElementById(oWarnIcon).style.display = "";
        }
        if(document.getElementById(oTarget).options[nIndex].value== "delete_all" && vEx2000_2003=="EX2000"){
            TIP_QUARANTINE_ALL_TITLE   =  TIP_DELETE_ALL_TITLE;
            TIP_QUARANTINE_ALL_CONTENT = TIP_DELETE_ALL_CONTENT;
            document.getElementById(oWarnIcon).style.display = "";
        }
   }
}
function jsChangeTag(vTag){
    vCURRENT_TAG = vTag;
}
function jsOpenOnlineHelp()
{
	if(window.location.search.indexOf("&",window.location.search.indexOf("Subject=")+8)>-1)
	{
		winSubject = window.location.search.substring((window.location.search.indexOf("Subject=")+8),window.location.search.indexOf("&",window.location.search.indexOf("Subject=")+8));
	}
	else
	{
		winSubject = window.location.search.substring((window.location.search.indexOf("Subject=")+8),window.location.search.length);
	}		
	var IsSSMode = (winSubject.indexOf("SS") > 0);
	var IsMSMode = (winSubject.indexOf("MS") > 0);
		
    if (vCURRENT_TAG == "Action") {
		strMapURL = IsSSMode ? "configuring_scheduled_scan_task_(action_tab).htm" : 
			( IsMSMode ? "config_man_scan_sec_risk_scan_action_tab.htm" : "config_sec_risk_scan_action_settings.htm");
			
    }
    else if(vCURRENT_TAG == "Notification"){
        		strMapURL = IsSSMode ? "configuring_scheduled_scan_task_(notification_tab).htm" : 
			 ( IsMSMode ? "config_man_scan_sec_risk_scan_notif_tab.htm" : "security_risk_scan_notifications.htm");
    }  
    else {
        strMapURL = IsSSMode ? "configuring_scheduled_scan_task_(target_tab).htm" : 
			( IsMSMode ? "configuring_manual_scan_security_risk_scan_target_tab.htm" : "config_sec_risk_scan_target_settings.htm");
    }
    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 id="txtVirusScanLink" name="txtVirusScanLink" value="$$VIRUS_SCAN_LINK$$">
<!-- Note: Adjust these values to change what's the default size unit used by virus scanning filter. -->
<!-- 0: KB, 1: MB, 2: GB -->
<input type="hidden" name="txtBodySizeUnit" value="1"> 
<input type="hidden" name="txtAttachSizeUnit" value="1"> 
<input type="hidden" name="txtCmprSizeUnit" value="1">
<input type="hidden" id="txtSSTaskName" name="txtSSTaskName" value="$$SS_TASK_NAME$$" />
<input type="hidden" id="txtSSTaskBehavior" name="txtSSTaskBehavior" value="$$SS_TASK_BEHAVIOR$$" />
<!--select style="display:none" id="optBodySizeUnit" name="optBodySizeUnit"></select-->
<!--select style="display:none" id="optAttachSizeUnit" name="optAttachSizeUnit"></select-->
<!--select style="display:none" id="optFileSizeUnit" name="optFileSizeUnit"></select-->
<!--/Hidden Field-->
<!--Page Title-->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title">$$VS_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="chkStoreEnable" $$ID_STORE_PR_VIRUS_SCAN_DISABLE$$ $$OPT_STORE_VIRUS_SCANNING_FILTER_ENABLED$$>Enable real-time security risk scan</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,STR_TAG_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,STR_TAG_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">
		<!--||Default Scanning||-->
		<tr><td colspan="2" width="100%" class="tableheadergreyS">Default Scan</td></tr>
		<tr><td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr><td class="data1" colspan="2" height="22">Select a method for scanning viruses, worms, Trojans, and other malicious code:</td></tr>
				<tr><td class="data1" width="20"><input type="radio" name="optScanFile" onClick="jsUIDependency();" value="all" $$OPT_SCAN_TYPE_VALUE_ALL_CHECKED$$></td>
					<td class="data1" width="100%">All scannable files</td>
				</tr>
				<tr><td class="data1"><input type="radio" name="optScanFile" onClick="jsUIDependency();" value="intelliscan" $$OPT_SCAN_TYPE_VALUE_INTELLISCAN_CHECKED$$></td>
					<td class="data1">IntelliScan: uses "true file type" identification
						<img id="IntelliScanToolTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative" onmouseout="hideToolTip('ifmToolTip');" 
						onmouseover="jsshowToolTip('ifmToolTip',this,300,135,TIP_INTELLISCAN_TITEL,TIP_INTELLISCAN_CONTENT);" style="display:none"></td></tr>
				<tr><td class="data1"><input type="radio" name="optScanFile" onClick="jsUIDependency();" value="specified" $$OPT_SCAN_TYPE_VALUE_SPECIFIED_CHECKED$$></td>
					<td class="data1">
					    Specify file types
					    <span id="tabSpecified" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onClick="setUIMoreDisplay(this);">
					    <img id="tabSpecified_icon" src="images/more_down_out.gif">
					    Show details
					    </span>
					</td></tr>	
				<tr><td></td><td><table width="100%" border="0" cellpadding="0" cellspacing="0" id="tabSpecified_items" style="display:none">
						<tr><td>
						$$SPECIFIED_FILE_TYPES$$
						</td></tr>
						<tr><td><table border="0" cellpadding="0" cellspacing="0">
								<tr><td width="20"><input type="checkbox" id="chkScanSpecifiedExt" name="chkScanSpecifiedExt" $$OPT_SCAN_SPECIFIED_EXT_CHECKED$$></td>
									<td nowrap>Specify file extensions (use ; to separate entries):</td>
									<td></td></tr>
            					<tr><td width="20"></td>
            						<td width="300"><input class="text" size="8" id="txtFileExtension" name="txtFileExtension" style="width:100%"></input></td>
            						<td valign="top"><input type="button" class="text" name="btnAdd" value="Add" style="width:50" onClick="jsAddFileExtension();"></td></tr>
            					<tr><td width="20"></td>
            						<td><select class="text" size="8" id="lstFileExtension" name="lstFileExtension" style="width:100%" multiple>$$OPT_FILE_TYPE_EXTENSION$$</select></td>
            						<td valign="top"><input type="button" class="text" name="btnDel" value="Delete" style="width:50" onClick="setUIDelfromList(lstFileExtension);"></td></tr>
                                   
            					</table></td></tr>
            			</table></td></tr>
			<tr><td colspan="2" height="5"></td></tr>
			
			</table></td></tr>
		<!--||IntelliTrap||-->
		<tr><td class="tableheadergreyE" colspan="2">IntelliTrap</td></tr>
		<tr><td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		       <tr><td colspan="2" height="5"></td></tr>
		       <tr><td class="data1" width="20"><input type="checkbox" id="optIntelliTrap" name="optIntelliTrap" $$OPT_INTELLI_TRAP_CHECKED$$></td>
				      <td class="data1">Enable IntelliTrap
					        <img id="IntelliTrapToolTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative" onmouseout="hideToolTip('ifmToolTip');"
					        onmouseover="jsshowToolTip('ifmToolTip',this,330,110,TIP_INTELLITRAP_TITEL,TIP_INTELLITRAP_CONTENT);" style="display:none"></td></tr>
		       <tr><td colspan="2" height="5"></td></tr>
		       </table></td></tr>
		<!--||Spyware/Grayware Scanning||-->
		<tr><td class="tableheadergreyE" colspan="2">Spyware/Grayware Scan</td></tr>
		<tr><td colspan="2"><table border="0" cellpadding="0" cellspacing="0">
		    <tr><td width="20"><input type="checkbox" id="optThreatsAll" onClick="setUIChecked(this.checked,optThreats);"></td>
		        <td>Select All</td></tr>
		    <tr><td></td><td><table border="0" cellpadding="0" cellspacing="0" width="500">
		        <tr><td width="250"><input type="checkbox" id="optThreats" name="optThreatsSpyware"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_SPYWARE_CHECKED$$>&nbsp;Spyware</td>
			        <td width="250"><input type="checkbox" id="optThreats" name="optThreatsAdware"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_ADWARE_CHECKED$$>&nbsp;Adware</td></tr>
		        <tr><td><input type="checkbox" id="optThreats" name="optThreatsDialers"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_DIALER_CHECKED$$>&nbsp;Dialers</td>
			        <td><input type="checkbox" id="optThreats" name="optThreatsJoke"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_JOKE_CHECKED$$>&nbsp;Joke Programs</td></tr>
		        <tr><td><input type="checkbox" id="optThreats" name="optThreatsHackingTools"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_HACKING_CHECKED$$>&nbsp;Hacking Tools</td>
			        <td><input type="checkbox" id="optThreats" name="optThreatsRemoteAccessTools"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_REMOTE_CHECKED$$>&nbsp;Remote Access Tools</td></tr>
		        <tr><td><input type="checkbox" id="optThreats" name="optThreatsPasswordCracking"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_PASSWORD_CHECKED$$>&nbsp;Password Cracking Applications</td>
			        <td><input type="checkbox" id="optThreats" name="optThreatsOthers"
				        onclick="setUIItemsChecked(fmMain.optThreatsAll, fmMain.optThreats, true);" $$OPT_THREAT_OTHER_CHECKED$$>&nbsp;Others</td></tr>
		        </table></td></tr> 
		    </table></td></tr>
		<!--||Advanced Options||-->
		<tr><td colspan="2" class="border2"><img src="images/1space.gif"></td></tr>
		<tr><td colspan="2" class="tableheader">Advanced Options</td></tr>
		<tr><td colspan="2" class="tableheadergreyS">
		        <a href="javascript:setUIMoreDisplay(document.getElementById('tabAdvRestrictions'));" class="tableheaderlink" id="tabAdvRestrictions"> 
		        <img id="tabAdvRestrictions_icon" src="images/more_down_out.gif" border="0">		       
		        Scan Restriction Criteria
		        </a>		        
				</td></tr>
		<tr><td colspan="2">
				<table id="tabAdvRestrictions_items" style="display:none" border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr><td colspan="3" height="22" class="data2">Do not scan file if:</td></tr>
				<tr><td width="20" class="data1"><input type=checkbox id="chkAttach" name="chkAttach" $$CHECK_ATTACHMENT_SIZE$$ onClick="txtAttachSize.disabled=(!this.checked);"></td>
					<td width="400">File size exceeds:</td>
					<td><input type=text class="text" style="width:42" id="txtAttachSize" name="txtAttachSize" value="$$TXT_ATTACH_SIZE_LIMIT_VALUE$$"> MB(1-100)</td></tr>
				<tr><td colspan="3" height="22" class="data2">Do not scan compressed files if:</td></tr>
				<tr><td width="20" class="data1"><input type=checkbox id="chkFileNum" name="chkFileNum" $$CHECK_DECOM_FILE_COUNT$$ onClick="txtFileNum.disabled=(!this.checked);"></td>
					<td width="400">Decompressed file count exceeds:</td>
					<td><input type=text class="text" style="width:42" id="txtFileNum" name="txtFileNum" value="$$TXT_ZIP_FILE_COUNT_LIMIT$$"> (1-10000)</td></tr>
				<tr><td width="20" class="data1"><input type=checkbox id="chkFileSize" name="chkFileSize" $$CHECK_DECOM_FILE_SIZE$$ onClick="txtFileSize.disabled=(!this.checked);"></td>
					<td width="400">Size of decompressed file exceeds:</td>
					<td><input type=text class="text" style="width:42" id="txtFileSize" name="txtFileSize" value="$$TXT_ZIP_FILE_SIZE_LIMIT$$"> MB(1-2048)</td></tr>
				<tr><td width="20" class="data1"><input type=checkbox id="chkFileLayer" name="chkFileLayer" $$CHECK_COMPR_FILE_LAYER$$ onClick="txtFileLayerNum.disabled=(!this.checked);"></td>
					<td width="400">Number of layers of compression exceeds:</td>
					<td><input type=text class="text" style="width:42" id="txtFileLayerNum" name="txtFileLayerNum" value="$$TXT_ZIP_LAYER_LIMIT$$"> (1-20)</td></tr>
				<tr><td width="20" class="data1"><input type=checkbox id="chkFileRatio" name="chkFileRatio" $$CHECK_COMPR_FILE_RATIO$$ onClick="txtFileRatio.disabled=(!this.checked);"></td>
					<td width="400">Size of decompressed file is "x" times the size of compressed file:</td>
					<td><input type=text class="text" style="width:42" id="txtFileRatio" name="txtFileRatio" value="$$TXT_ZIP_RATIO_LIMIT$$"> (100-1000000)</td></tr>
				</table></td></tr>
		</table>
		<table id="Tag2_items" width="100%" border="0" cellpadding="0" cellspacing="0" class="border" style="display:none">
		<tr><td class="border2" width="100%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
				<!--||Active Action||-->
				<tr><td height="22"><input type=radio id="optActionType" name="optActionType" onClick="jsUIDependency();" value="active" $$OPT_ACTIVE_ACTION_TYPE_VALUE_ACTIVE_CHECKED$$></td>
					<td><b>ActiveAction</b> and
							<select class="text" id="optActiveAction" name="optActiveAction"></select>
						</td></tr>
				<tr><td height="22"></td>
					<td>Selecting ActiveAction uses Trend Micro recommended settings
					    <img src="images/info_mark.gif" style="cursor:hand;position:relative" onMouseOut="hideToolTip('ifmToolTip');" 
						onmouseover="showToolTip('ifmToolTip',this,300,80,TIP_ACTIVEACTION_TITLE,TIP_ACTIVEACTION_CONTENT);">
					</td></tr>
				<!--||Customized Action||-->
				<tr><td height="22"><input type=radio id="optActionType" name="optActionType" onClick="jsUIDependency();" value="customized" $$OPT_ACTIVE_ACTION_TYPE_VALUE_CUSTOMIZED$$></td>
					<td>Customized action for detected threats:</td></tr>
				<tr><td></td><td class="data1">
						<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding:0">
				
						<tr><td height="22" colspan="3" style="padding:5"><b>Detected Threats</b></td></tr>
						<tr><td height="22"><input type=radio id="optDetectedThreat" name="optDetectedThreat" value="all_threats" $$OPT_ALL_THREATS_SCANNING_ENABLED$$ onClick="jsUIDependency();"></td>
							<td colspan="2">All threats</td></tr>
						<tr><td></td><td colspan="2"><table width="600" border="0" cellpadding="0" cellspacing="0" class="border">
						        <tr><td class="grey" width="180" height="22">Type</td>
						         <td width="220" class="grey">Action</td>
						         <td width="200" class="grey-end">Notification</td></tr>
						         <tr><td class="data1b" height="22">All threats</td>
						         <td class="data1b"><select class="text" id="optAllThreatsAction" name="optAllThreatsAction" onChange="jsSyncNotifyOption((this.selectedIndex==0),document.fmMain.optAllThreatsNotify);"></select>
								<img id="optAllThreatsActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data1"><select class="text" id="optAllThreatsNotify" name="optAllThreatsNotify" style="width:160px"></select></td></tr>
						         </table></td></tr>
						<tr><td height="22"><input type=radio id="optDetectedThreat" name="optDetectedThreat" value="specified_threats" $$OPT_SPECIFIED_THREATS_SCANNING_ENABLED$$ onClick="jsUIDependency();"></td>
							<td colspan="2">Specify action per detected threat</td></tr>
						<tr><td></td><td colspan="2"><table width="600" border="0" cellpadding="0" cellspacing="0" class="border">
						         <tr><td class="grey" width="180" height="22">Type</td>
						         <td width="220" class="grey">Action</td>
						         <td width="200" class="grey-end">Notification</td></tr>
						         <tr><td class="data1b" height="22">Viruses</td>
						         <td class="data1b"><select class="text" id="optVirusAction" name="optVirusAction" onChange="jsSyncNotifyOption((this.selectedIndex==0),document.fmMain.optVirusNotify);"></select>
								<img id="optVirusActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data1"><select class="text" id="optVirusNotify" name="optVirusNotify" style="width:160px"></select></td></tr>
						         <tr><td class="data2b" height="22">Worms/Trojans</td>
						         <td class="data2b"><select class="text" id="optTrojansAction" name="optTrojansAction" onChange="jsSyncNotifyOption(false,document.fmMain.optTrojansNotify);"></select>
								<img id="optTrojansActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data2"><select class="text" id="optTrojansNotify" name="optTrojansNotify" style="width:160px"></select></td></tr>
						         <tr><td class="data1b" height="22">Packed files:</td>
						         <td class="data1b"><select class="text" id="optPackersAction" name="optPackersAction" onChange="jsSyncNotifyOption(false,document.fmMain.optPackersNotify);"></select>
								<img id="optPackersActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data1"><select class="text" id="optPackersNotify" name="optPackersNotify" style="width:160px"></select></td></tr>
						         <tr style="display:none"><td class="data2b" height="22"><font color="#E41B17">Generics: </br>(TESTING ONLY)</font></td>
						         <td class="data2b"><select class="text" id="optGenericsAction" name="optGenericsAction" onChange="jsSyncNotifyOption((this.selectedIndex==0),document.fmMain.optGenericsNotify);"></select>
								<img id="optGenericsActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data1"><select class="text" id="optGenericsNotify" name="optGenericsNotify" style="width:160px"></select></td></tr>
						         <tr><td class="data2b" height="22">Other malicious code</td>
						         <td class="data2b"><select class="text" id="optOtherVirusAction" name="optOtherVirusAction" onChange="jsSyncNotifyOption((this.selectedIndex==0),document.fmMain.optOtherVirusNotify);"></select>
								<img id="optOtherVirusActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data2"><select class="text" id="optOtherVirusNotify" name="optOtherVirusNotify" style="width:160px"></select></td></tr>
						         <tr><td class="data1b" height="22">Spyware/Grayware</td>
						         <td class="data1b"><select class="text" id="optAdditonalThreatsAction" name="optAdditonalThreatsAction" onChange="jsshowWarning(this.id,this.selectedIndex);"></select>
							    <img id="optAdditonalThreatsActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);"></td>
						         <td class="data1"><select class="text" id="optAdditonalThreatsNotify" name="optAdditonalThreatsNotify" style="width:160px"></select></td></tr>
						        </table></td></tr>
						<tr><td height="22" colspan="3" style="padding:5"><b>Uncleanable files</b>
							    <select class="text" id="optUncleanFileAction" name="optUncleanFileAction" onChange="jsshowWarning(this.id,this.selectedIndex);"></select>
							    <img id="optUncleanFileActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);">
							</td></tr>
						</table></td></tr>
				<tr>
					<td colspan="2"><input type=checkbox id="chkBackup" name="chkBackup" $$OPT_BACKUP_B4_ACTION_CHECKED$$>Backup infected file before performing action</td></tr>
				<tr>
					<td colspan="2"><input type=checkbox id="chkUnclean" name="chkUnclean" $$OPT_DO_NOT_CLEAN_COMPRESSED_FILE_CHECKEDS$$>Do not clean infected compressed files to optimize performance.
						<img src="images/info_mark.gif" style="cursor:hand;position:relative" onMouseOut="hideToolTip('ifmToolTip');" 
						onmouseover="showToolTip('ifmToolTip',this,300,100,TIP_PERFORMANCE_TITLE,TIP_PERFORMANCE_CONTENT);"></td></tr>
				<tr><td height="5" colspan="2"></td></tr>
				</table></td></tr>
		<!--||Advanced Options||-->
		<tr><td class="tableheader">Advanced Options</td></tr>
		<tr><td class="tableheadergreyS">
		       <a href="javascript:setUIMoreDisplay(document.getElementById('tabMacros'));" class="tableheaderlink" id="tabMacros"> 
		        <img id="tabMacros_icon" src="images/more_down_out.gif" border="0">
		        Macros
		       </a> 
				</td></tr>
		<tr><td><table id="tabMacros_items" style="display:none" border="0" cellpadding="0" cellspacing="0" class="border2" width="100%"><tr><td>
		        <table border="0" cellpadding="0" cellspacing="0">
				<tr><td class="data1" height="22"><input type="checkbox" id="chkEnableMacros" name="chkEnableMacros" value="on" onClick="jsUIDependency();" $$OPT_ENABLE_MACRO_VIRUS_SCANNING_CHECKED$$></td>
					<td colspan="2">Enable advanced macro scan
						<img src="images/info_mark.gif" style="cursor:hand;position:relative" onMouseOut="hideToolTip('ifmToolTip');" 
						onmouseover="showToolTip('ifmToolTip',this,300,140,TIP_MACRO_TITLE,TIP_MACRO_CONTENT);"></td></tr>
				<tr><td height="22"></td>
					<td><input type=radio id="optMacrosType" name="optMacrosType" value="heuristic" $$OPT_MACRO_VIRUS_SCANNING_TYPE_VALUE_HEURISTIC$$ onclick="jsUIDependency();" onclick="jsUIDependency();"></td>
					<td>Heuristic level: <select class="text" id="optHeuristicLevel" name="optHeuristicLevel"></select></td></tr>
				<tr><td height="22"></td>
					<td><input type=radio id="optMacrosType" name="optMacrosType" value="stripping" $$OPT_MACRO_VIRUS_SCANNING_TYPE_VALUE_STRIPPING$$ onclick="jsUIDependency();" onclick="jsUIDependency();"></td>
					<td>Delete all macros detected by advanced macro scan</td></tr>
				</table></td></tr>
				</table></td></tr>
		<tr><td class="tableheadergreyS">
		       <a href="javascript:setUIMoreDisplay(document.getElementById('tabUnscannable'));" class="tableheaderlink" id="tabUnscannable"> 
		        <img id="tabUnscannable_icon" src="images/more_down_out.gif" border="0"> 
		        Unscannable Files
		        </a>
		        </td></tr>
		<tr><td>
		        <table id="tabUnscannable_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border2"><tr><td>
		        <table border="0" cellpadding="0" cellspacing="0">
				<tr><td height="22" width="250" nowrap>&nbsp;Encrypted or password protected files</td>
					<td><select class="text" id="optEncryptedAction" name="optEncryptedAction"  onchange="jsshowWarning(this.id,this.selectedIndex);"></select>
					        <img id="optEncryptedActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);">
						and <select class="text" id="optEncryptedNotify" name="optEncryptedNotify"></select>
					</td></tr>
				<tr><td height="22" nowrap>&nbsp;Files exceeding specified scanning restrictions</td>
					<td><select class="text" id="optSpecifiedAction" name="optSpecifiedAction"  onchange="jsshowWarning(this.id,this.selectedIndex);"></select>
					        <img id="optSpecifiedActionTipIcon" src="images/info_mark.gif" style="cursor:hand;position:relative;display:none;" onMouseOut="hideToolTip('ifmToolTip');" 
						        onmouseover="showToolTip('ifmToolTip',this,300,90,TIP_QUARANTINE_ALL_TITLE,TIP_QUARANTINE_ALL_CONTENT);">
						and <select class="text" id="optSpecifiedNotify" name="optSpecifiedNotify"></select>
					</td></tr>
				</table></td></tr></table></td></tr>
		<tr><td class="tableheadergreyS">
		        <a href="javascript:setUIMoreDisplay(document.getElementById('tabBackup'));" class="tableheaderlink" id="tabBackup"> 
		        <img id="tabBackup_icon" src="images/more_down_out.gif" border="0"> 
		        Backup Setting
		        </a> 
		        </td></tr>
		<tr>
			<td class="border2">
				<table id="tabBackup_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0">		
				<tr><td class="data1" nowrap>Backup directory:</td>
					<td class="data1" width="100%"><input type=text class="text" id="txtBackupDirectory" name="txtBackupDirectory" value="$$TXT_BACKUP_DIR_VALUE$$" style="width:95%"></td></tr>
                <!--
				<tr><td id="txtQuarantineDirectoryHeader" class="data1" nowrap>Quarantine directory:</td>
					<td id="txtQuarantineDirectoryBody" class="data1" width="100%"><input type=text class="text" id="txtQuarantineDirectory" name="txtQuarantineDirectory" value="$$TXT_QUARANTINE_DIR_VALUE$$" style="width:95%"></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="btnSubmit" value="Save" onClick="jsSubmit();">
		<input type="button" class="button" id="btnReset" value="Reset" onClick="jsReset();">
		<input type="hidden" name="FormAction" value="Save"></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>
