<html>
<head>
<title>Scheduled_Reports_Edit</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 STR_GRAPH_TYPE_VALUE	= "HOURLY,DAILY,WEEKLY,MONTHLY";
var bNewTemplate		= $$NEW_TEMPLATE$$;

var rptName				= "$$RPT_TEMPLATE_NAME$$";
var rptID				= "$$RPT_TEMPLATE_ID$$";
var rptEnableStat		= "$$RPT_TEMPLATE_ENABLE$$";
var rptLastGenerateTime = "$$RPT_LAST_GENERATE_TIME$$";
var rptStatus			= "$$RPT_STATUS$$";
var rptFrequency		= "$$RPT_FREQUENCY$$";
var rptFrequencyDelta	= "$$RPT_FREQUENCY_DELTA$$";
var rptEnableDelivery   = ("$$RPT_ENABLE_DELIVERY$$" == "true");
var rptDelivery         = "$$RPT_DELIVERY$$";
var rptGenerateHH		= "$$RPT_GENERATE_HH$$";
var rptGenerateMM		= "$$RPT_GENERATE_MM$$";

var rptItem_SUMMARY		= "$$RPT_ITEM_SUMMARY$$";
var rptItem_TRAFFIC		= "$$RPT_ITEM_TRAFFIC$$";
var RPT_PARAM_TRAFFIC_BY_HOUR		= "$$report_item_traffic_by_hour$$";
var RPT_PARAM_TRAFFIC_BY_DAY		= "$$report_item_traffic_by_day$$";
var RPT_PARAM_TRAFFIC_BY_WEEK		= "$$report_item_traffic_by_week$$";

var rptItem_VIRUS		= "$$RPT_ITEM_VIRUS$$";
var RPT_PARAM_VIRUS_SUMMARY				= "$$report_item_virus_summary$$";
var RPT_PARAM_VIRUS_GRAPH				= "$$report_item_virus_graph$$";
var RPT_PARAM_VIRUS_TOP_VIRUSES			= "$$report_item_virus_top_viruses$$";
var RPT_PARAM_VIRUS_ACTIONS				= "$$report_item_virus_actions$$";
var RPT_PARAM_VIRUS_TYPES				= "$$report_item_virus_types$$";
var RPT_PARAM_VIRUS_SCAN_MODE			= "$$virus_scan_mode$$";
var RPT_PARAM_VIRUS_GRAPH_UNIT			= "$$virus_graph_unit$$";
var RPT_PARAM_VIRUS_TOP_N_VIRUSES		= "$$virus_top_n_virus$$";
var RPT_PARAM_VIRUS_TOP_SENDER			= "$$report_item_virus_top_sender$$";
var RPT_PARAM_VIRUS_TOP_N_SENDER		= "$$virus_top_n_sender$$";

var RPT_PARAM_SPYWARE_GRAPH		        = "$$report_item_spyware_graph$$";
var RPT_PARAM_SPYWARE_TOP_SPYWARES		= "$$report_item_spyware_top_spywares$$";
var RPT_PARAM_SPYWARE_ACTIONS			= "$$report_item_spyware_actions$$";
var RPT_PARAM_SPYWARE_TOP_N_SPYWARES	        ="$$spyware_top_n_spyware$$";
var RPT_PARAM_SPYWARE_GRAPH_UNIT                ="$$spyware_graph_unit$$";
var RPT_PARAM_SPYWARE_TOP_SENDER		= "$$report_item_spyware_top_sender$$";
var RPT_PARAM_SPYWARE_TOP_N_SENDER		= "$$spyware_top_n_sender$$";

var rptItem_ATTACH		= "$$RPT_ITEM_ATTACH$$";
var RPT_PARAM_ATTACH_SUMMARY			= "$$report_item_attach_summary$$";
var RPT_PARAM_ATTACH_GRAPH				= "$$report_item_attach_graph$$";
var RPT_PARAM_ATTACH_TOP_FILETYPE		= "$$report_item_attach_top_filetype$$";
var RPT_PARAM_ATTACH_TOP_FILENAME		= "$$report_item_attach_top_filename$$";
var RPT_PARAM_ATTACH_TOP_FILE_EXT		= "$$report_item_attach_top_file_ext$$";
var RPT_PARAM_ATTACH_TOP_SENDER			= "$$report_item_attach_top_sender$$";
var RPT_PARAM_ATTACH_TOP_RULE			= "$$report_item_attach_top_rule$$";
var RPT_PARAM_ATTACH_SCAN_MODE			= "$$attach_scan_mode$$";
var RPT_PARAM_ATTACH_GRAPH_UNIT			= "$$attach_graph_unit$$";
var RPT_PARAM_ATTACH_TOP_N_FILENAME		= "$$attach_top_n_filename$$";
var RPT_PARAM_ATTACH_TOP_N_FILEEXT		= "$$attach_top_n_fileext$$";
var RPT_PARAM_ATTACH_TOP_N_FILETYPE		= "$$attach_top_n_filetype$$";
var RPT_PARAM_ATTACH_TOP_N_SENDER		= "$$attach_top_n_sender$$";
var RPT_PARAM_ATTACH_TOP_N_RULE			= "$$attach_top_n_rule$$";

var rptItem_CONTENT		= "$$RPT_ITEM_CONTENT$$";
var RPT_PARAM_CONTENT_SUMMARY			= "$$report_item_content_summary$$";
var RPT_PARAM_CONTENT_GRAPH				= "$$report_item_content_graph$$";
var RPT_PARAM_CONTENT_TOP_SENDER		= "$$report_item_content_top_sender$$";
var RPT_PARAM_CONTENT_TOP_RECIPIENT		= "$$report_item_content_top_recipient$$";
var RPT_PARAM_CONTENT_TOP_RULE			= "$$report_item_content_top_rule$$";
var RPT_PARAM_CONTENT_SCAN_MODE			= "$$content_scan_mode$$";
var RPT_PARAM_CONTENT_GRAPH_UNIT		= "$$content_graph_unit$$";
var RPT_PARAM_CONTENT_TOP_N_SENDER		= "$$content_top_n_sender$$";
var RPT_PARAM_CONTENT_TOP_N_RECIPIENT	= "$$content_top_n_recipient$$";
var RPT_PARAM_CONTENT_TOP_N_RULE		= "$$content_top_n_rule$$";

var rptItem_DLP		= "$$RPT_ITEM_DLP$$";
var RPT_PARAM_DLP_SUMMARY			= "$$report_item_dlp_summary$$";
var RPT_PARAM_DLP_GRAPH				= "$$report_item_dlp_graph$$";
var RPT_PARAM_DLP_TOP_SENDER		= "$$report_item_dlp_top_sender$$";
var RPT_PARAM_DLP_TOP_RECIPIENT		= "$$report_item_dlp_top_recipient$$";
var RPT_PARAM_DLP_TOP_RULE			= "$$report_item_dlp_top_rule$$";
var RPT_PARAM_DLP_TOP_TEMPLATE		= "$$report_item_dlp_top_template$$";
var RPT_PARAM_DLP_SCAN_MODE			= "$$dlp_scan_mode$$";
var RPT_PARAM_DLP_GRAPH_UNIT		= "$$dlp_graph_unit$$";
var RPT_PARAM_DLP_TOP_N_SENDER		= "$$dlp_top_n_sender$$";
var RPT_PARAM_DLP_TOP_N_RECIPIENT	= "$$dlp_top_n_recipient$$";
var RPT_PARAM_DLP_TOP_N_RULE		= "$$dlp_top_n_rule$$";
var RPT_PARAM_DLP_TOP_N_TEMPLATE	= "$$dlp_top_n_template$$";

var rptItem_SPAM		= "$$RPT_ITEM_SPAM$$";
var RPT_PARAM_SPAM_SUMMARY				= "$$report_item_spam_summary$$";
var RPT_PARAM_SPAM_GRAPH				= "$$report_item_spam_graph$$";
var RPT_PARAM_SPAM_TOP_SENDER			= "$$report_item_spam_top_sender$$";
var RPT_PARAM_SPAM_TOP_MAILBOX			= "$$report_item_spam_top_mailbox$$";
var RPT_PARAM_SPAM_TOP_DOMAIN			= "$$report_item_spam_top_domain$$";
var RPT_PARAM_SPAM_TOP_FP_SENDER		= "$$report_item_spam_top_false_positive_sender$$";
var RPT_PARAM_SPAM_TOP_FP_DOMAIN		= "$$report_item_spam_top_false_positive_domain$$";
var RPT_PARAM_SPAM_CATEGORIES			= "$$report_item_spam_categories$$";
var RPT_PARAM_SPAM_GRAPH_UNIT			= "$$spam_graph_unit$$";
var RPT_PARAM_SPAM_TOP_N_SENDER			= "$$spam_top_n_sender$$";
var RPT_PARAM_SPAM_TOP_N_MAILBOX		= "$$spam_top_n_mailbox$$";
var RPT_PARAM_SPAM_TOP_N_DOMAIN			= "$$spam_top_n_domain$$";
var RPT_PARAM_SPAM_TOP_N_FP_SENDER		= "$$spam_top_n_false_positive_sender$$";
var RPT_PARAM_SPAM_TOP_N_FP_DOMAIN		= "$$spam_top_n_false_positive_domain$$";

var rptItem_WTP		= "$$RPT_ITEM_URL_FILTER$$";
var RPT_PARAM_WTP_SUMMARY				= "$$report_item_url_summary$$";
var RPT_PARAM_WTP_GRAPH					= "$$report_item_url_graph$$";
var RPT_PARAM_WTP_TOP_SENDER			= "$$report_item_url_top_sender$$";
var RPT_PARAM_WTP_TOP_URL				= "$$report_item_url_top_urls$$";
var PRT_PARAM_WTP_GRAPH_UNIT			= "$$url_graph_unit$$"
var PRT_PARAM_WTP_TOP_N_SENDER			= "$$url_top_n_sender$$"
var PRT_PARAM_WTP_TOP_N_URL				= "$$url_top_n_url$$"

var rptItem_UNSCANNABLE		= "$$RPT_ITEM_UNSCANNABLE$$";
var RPT_PARAM_UNSCANNABLE_SUMMARY		= "$$report_item_unscannable_summary$$";
var RPT_PARAM_UNSCANNABLE_GRAPH				= "$$report_item_unscannable_graph$$";
var RPT_PARAM_UNSCANNABLE_UNIT = "$$unscannable_graph_unit$$";

var hiAntiSpam = $$ID_PR_ANTI_SPAM_HIDE$$;

var vCurrentPageID = 0;
var vStrCurPage = "&CurPageID" + "=";

function jsInitPage() {
	// Init Page
	if($$ID_PR_CONTENT_FILTER_HIDE$$) {
		document.getElementById("prContentFilter").style.display="none";
		document.fmMain.CONTENT_FILTER_REPORT.checked=false;
	}
	if($$ID_PR_DLP_HIDE$$) {
		document.getElementById("prDLPFilter").style.display="none";
		document.fmMain.DLP_FILTER_REPORT.checked=false;
	}	
	if(hiAntiSpam) {
		document.getElementById("prAntispam").style.display="none";
		document.fmMain.ANTI_SPAM_REPORT.checked=false;
	}
	setOptionValueEx(document.fmMain.optWeekly,       STR_WEEKLY_TYPE,  STR_WEEKLY_TYPE_VALUE);
	setOptionValueEx(document.fmMain.optWeekDay,      STR_TIME_WEEK,    STR_TIME_WEEK_VALUE);
	setOptionValueEx(document.fmMain.optMonthly,      STR_MONTHLY_TYPE, STR_MONTHLY_TYPE_VALUE);
	setOptionValue	(document.fmMain.optGenerateHH,	  STR_TIME_HOUR);
	setOptionValue	(document.fmMain.optGenerateMM,   STR_TIME_MIN);
    //set default value to 15 minute
     jsSetSelection(document.fmMain.optGenerateMM,15);

	setOptionValueEx(document.fmMain.optVirusGraph,   STR_GRAPH_TYPE,   STR_GRAPH_TYPE_VALUE);
    setOptionValueEx(document.fmMain.optSpywareGraph, STR_GRAPH_TYPE, STR_GRAPH_TYPE_VALUE);
	setOptionValueEx(document.fmMain.optAttachGraph,  STR_GRAPH_TYPE,   STR_GRAPH_TYPE_VALUE);
	setOptionValueEx(document.fmMain.optContentGraph, STR_GRAPH_TYPE,   STR_GRAPH_TYPE_VALUE);
	setOptionValueEx(document.fmMain.optDLPGraph,		STR_GRAPH_TYPE, STR_GRAPH_TYPE_VALUE);
	setOptionValueEx(document.fmMain.optSpamGraph,    STR_GRAPH_TYPE,   STR_GRAPH_TYPE_VALUE);
	setOptionValueEx(document.fmMain.optWtpGraph,       STR_GRAPH_TYPE, STR_GRAPH_TYPE_VALUE);	
	setOptionValueEx(document.fmMain.optUnscannableGraph,    STR_GRAPH_TYPE,   STR_GRAPH_TYPE_VALUE);	
	// set max length
	document.fmMain.txtName.maxLength			= INT_LMAX_REPORTNAME;
	document.fmMain.virus_top_n_virus.maxLength	= INT_LMAX_REPORT_TOP;
	document.fmMain.virus_top_n_sender.maxLength             = INT_LMAX_REPORT_TOP;
	document.fmMain.spyware_top_n_spyware.maxLength	= INT_LMAX_REPORT_TOP;
	document.fmMain.spyware_top_n_sender.maxLength             = INT_LMAX_REPORT_TOP;
	document.fmMain.attach_top_n_filetype.maxLength            = INT_LMAX_REPORT_TOP;
	document.fmMain.attach_top_n_filename.maxLength            = INT_LMAX_REPORT_TOP;
	document.fmMain.attach_top_n_fileext.maxLength             = INT_LMAX_REPORT_TOP;
	document.fmMain.attach_top_n_sender.maxLength          	   = INT_LMAX_REPORT_TOP;
	document.fmMain.attach_top_n_rule.maxLength                = INT_LMAX_REPORT_TOP;
	document.fmMain.content_top_n_sender.maxLength             = INT_LMAX_REPORT_TOP;
	document.fmMain.content_top_n_recipient.maxLength          = INT_LMAX_REPORT_TOP;
	document.fmMain.content_top_n_rule.maxLength               = INT_LMAX_REPORT_TOP;
	document.fmMain.dlp_top_n_sender.maxLength             		= INT_LMAX_REPORT_TOP;
	document.fmMain.dlp_top_n_recipient.maxLength          		= INT_LMAX_REPORT_TOP;
	document.fmMain.dlp_top_n_rule.maxLength               		= INT_LMAX_REPORT_TOP;
	document.fmMain.dlp_top_n_template.maxLength               = INT_LMAX_REPORT_TOP;
	document.fmMain.spam_top_n_false_positive_sender.maxLength = INT_LMAX_REPORT_TOP;
	document.fmMain.spam_top_n_false_positive_domain.maxLength = INT_LMAX_REPORT_TOP;
	document.fmMain.txtDelivery.maxLength		= INT_LMAX_EM_ADDR;
	
	if (!bNewTemplate) {
		document.getElementById("labPageTitle").innerHTML = "Edit";
		jsSetPageValues();
	}
	document.fmMain.txtName.focus();
	document.fmMain.txtName.select();
	// release event capture
	CANCEL_EVENT = false;
	
	document.fmMain.hiddenEnableStat.value = (rptEnableStat == "false") ? "0" : "1";
	
	//set UI dependency
	jsServerRoleDependency("reports/Scheduled_Edit.htm");
}
function jsSubmit() {
	// add some checking
	document.fmMain.txtName.value = setTrim(document.fmMain.txtName.value);
	if (!checkNumberRange(document.fmMain.txtName.value.length,1,INT_LMAX_REPORTNAME,STR_WARN_REPORTNAME,false)){
		jsFocus(document.fmMain.txtName);
		return;
	}
	if (!jsValidateText(document.fmMain.virus_top_n_virus	            ) ||
  		!jsValidateText(document.fmMain.virus_top_n_sender 		) ||
	  	!jsValidateText(document.fmMain.spyware_top_n_spyware           ) ||
	  	!jsValidateText(document.fmMain.spyware_top_n_sender 		) ||
		!jsValidateText(document.fmMain.attach_top_n_filetype           ) || 
		!jsValidateText(document.fmMain.attach_top_n_filename           ) || 
		!jsValidateText(document.fmMain.attach_top_n_fileext            ) ||
		!jsValidateText(document.fmMain.attach_top_n_sender             ) || 
		!jsValidateText(document.fmMain.attach_top_n_rule               ) ||
		!jsValidateText(document.fmMain.content_top_n_sender            ) || 
		!jsValidateText(document.fmMain.content_top_n_recipient         ) || 
		!jsValidateText(document.fmMain.content_top_n_rule              ) || 
		!jsValidateText(document.fmMain.dlp_top_n_sender            	) || 
		!jsValidateText(document.fmMain.dlp_top_n_recipient         	) || 
		!jsValidateText(document.fmMain.dlp_top_n_rule              	) || 
		!jsValidateText(document.fmMain.dlp_top_n_template              ) || 
		!jsValidateText(document.fmMain.spam_top_n_false_positive_sender) || 
		!jsValidateText(document.fmMain.spam_top_n_false_positive_domain) ||
		!jsValidateText(document.fmMain.spam_top_n_sender               ) ||
		!jsValidateText(document.fmMain.spam_top_n_mailbox              ) ||
		!jsValidateText(document.fmMain.spam_top_n_domain               ) ||
		!jsValidateText(document.fmMain.url_top_n_url                   ) ||
		!jsValidateText(document.fmMain.url_top_n_sender                ) )
		return;
	if (getSelectedOptionValue(document.fmMain.chkTarget)=="") {
		alert(STR_ERR_CHECK_REPORT_CONTENT);
		return;
	}
	
	if (document.fmMain.chkDelivery.checked){
	    if(document.fmMain.txtDelivery.value.length == 0 || document.fmMain.txtDelivery.value.length > INT_LMAX_EM_ADDR){
	        alert(STR_WARN_EM_ADDR_EMPTY);
	        jsFocus(document.fmMain.txtDelivery);
	        return;
	    }
        if(!checkMultiEmailPatternFormat(document.fmMain.txtDelivery.value,STR_ERR_INVALID_EMAIL)){
            jsFocus(document.fmMain.txtDelivery);
            return;
        }
	}
	
	// cancel event capture 
	CANCEL_EVENT = true;
	document.fmMain.btnSave.disabled = true;
	document.fmMain.btnCancel.disabled = true;
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}
function jsCancel() {
	// cancel event capture
	CANCEL_EVENT = true;
	document.fmMain.btnSave.disabled = true;
	document.fmMain.btnCancel.disabled = true;
	vCurrentPageID = document.fmMain.txtCurrentPage.value;
	var uriCancelAction = "$$CANCEL_ACTION_URI$$";
	var strCurrentPageID = vStrCurPage + vCurrentPageID;
	document.location.href = uriCancelAction + strCurrentPageID;
	 
}
function jsSetFrequency(frequency, frequency_delta)
{
	switch (frequency)
	{
	case "DAILY":
		jsSetRadioGroupStatus(document.fmMain.optSchedule, "DAILY");
		break;
	case "WEEKLY":
		jsSetRadioGroupStatus(document.fmMain.optSchedule, "WEEKLY");
		jsSetSelection(document.fmMain.optWeekly,   "WEEKLY");
		jsSetSelection(document.fmMain.optWeekDay,  frequency_delta);
		break;
	case "BIWEEKLY":
		jsSetRadioGroupStatus(document.fmMain.optSchedule, "WEEKLY");
		jsSetSelection(document.fmMain.optWeekly,   "BIWEEKLY");
		jsSetSelection(document.fmMain.optWeekDay,  frequency_delta);
		break;
	case "MONTHLY":
		jsSetRadioGroupStatus(document.fmMain.optSchedule, "MONTHLY");
		jsSetSelection(document.fmMain.optMonthly,  frequency_delta);
		break;	
	}
}
function jsSetCheckStatus(obj, value)
{
	obj.checked = (value == "true");
}
function jsSetCheckGroupStatus(obj, objValue, value)
{
	for (i = 0; i != obj.length; ++i)
		if (obj[i].value == objValue)
			obj[i].checked = (value == "enable");
}
function jsSetSelection(obj, value)
{
	for (i = 0; i != obj.options.length; ++i)
		if (obj.options[i].value == value)
		{
			obj.options[i].selected = true;
			break;
		}
}
function jsSetRadioGroupStatus(obj, value)
{
	for (i = 0; i != obj.length; ++i)
		if (obj[i].value == value)
		{
			obj[i].checked = true;
			break;
		}
}
function jsSetGraphUnit(obj, value)
{
	for (i = 0; i != obj.length; ++i)
		if (obj[i].value == value)
		{
			obj[i].selected = true;
			break;
		}
}
function jsSetTxtValue(obj, value)
{
	if (value != "")
		obj.value = value;
}
function jsSetPageValues()
{
	document.fmMain.txtName.value	= rptName;
	document.fmMain.txtID.value		= rptID;
	document.fmMain.txtDelivery.value	= rptDelivery;
	document.fmMain.chkDelivery.checked	= rptEnableDelivery;

	jsSetFrequency(rptFrequency, rptFrequencyDelta);
	jsSetSelection(document.fmMain.optGenerateHH, rptGenerateHH);
	jsSetSelection(document.fmMain.optGenerateMM, rptGenerateMM);

	jsSetCheckStatus(document.fmMain.SUMMARY_REPORT, rptItem_SUMMARY);
	jsSetCheckStatus(document.fmMain.TRAFFIC_REPORT, rptItem_TRAFFIC); 
	jsSetCheckGroupStatus(document.fmMain.chkTraffic_items,	"report_item_traffic_by_hour",		RPT_PARAM_TRAFFIC_BY_HOUR	);
	jsSetCheckGroupStatus(document.fmMain.chkTraffic_items,	"report_item_traffic_by_day",		RPT_PARAM_TRAFFIC_BY_DAY	);	
	jsSetCheckGroupStatus(document.fmMain.chkTraffic_items,	"report_item_traffic_by_week",		RPT_PARAM_TRAFFIC_BY_WEEK	);
	
	jsSetCheckStatus(document.fmMain.VIRUS_SCAN_REPORT, rptItem_VIRUS);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_virus_summary",		RPT_PARAM_VIRUS_SUMMARY		);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_virus_graph",			RPT_PARAM_VIRUS_GRAPH		);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_virus_top_viruses",	RPT_PARAM_VIRUS_TOP_VIRUSES	);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_virus_actions",		RPT_PARAM_VIRUS_ACTIONS		);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_virus_types",			RPT_PARAM_VIRUS_TYPES		);
	jsSetGraphUnit(document.fmMain.virus_graph_unit,		RPT_PARAM_VIRUS_GRAPH_UNIT			);
	jsSetTxtValue(document.fmMain.virus_top_n_virus,		RPT_PARAM_VIRUS_TOP_N_VIRUSES		);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_virus_top_sender",		RPT_PARAM_VIRUS_TOP_SENDER	);
	jsSetTxtValue(document.fmMain.virus_top_n_sender,		RPT_PARAM_VIRUS_TOP_N_SENDER		);
	
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_spyware_graph",			RPT_PARAM_SPYWARE_GRAPH		);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_spyware_top_spywares",	RPT_PARAM_SPYWARE_TOP_SPYWARES	);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_spyware_actions",		RPT_PARAM_SPYWARE_ACTIONS		);
	jsSetGraphUnit(document.fmMain.spyware_graph_unit,		RPT_PARAM_SPYWARE_GRAPH_UNIT			);
	jsSetTxtValue(document.fmMain.spyware_top_n_spyware,		RPT_PARAM_SPYWARE_TOP_N_SPYWARES		);
	jsSetCheckGroupStatus(document.fmMain.chkVirus_items,	"report_item_spyware_top_sender",		RPT_PARAM_SPYWARE_TOP_SENDER	);
	jsSetTxtValue(document.fmMain.spyware_top_n_sender,		RPT_PARAM_SPYWARE_TOP_N_SENDER		);
	
	jsSetCheckStatus(document.fmMain.ATTACHMENT_BLOCKING_REPORT, rptItem_ATTACH);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_summary",		RPT_PARAM_ATTACH_SUMMARY		);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_graph",			RPT_PARAM_ATTACH_GRAPH			);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_top_filetype",	RPT_PARAM_ATTACH_TOP_FILETYPE	);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_top_filename",	RPT_PARAM_ATTACH_TOP_FILENAME	);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_top_file_ext",	RPT_PARAM_ATTACH_TOP_FILE_EXT	);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_top_sender",	RPT_PARAM_ATTACH_TOP_SENDER	);
	jsSetCheckGroupStatus(document.fmMain.chkAttach_items,	"report_item_attach_top_rule",		RPT_PARAM_ATTACH_TOP_RULE	);
	jsSetGraphUnit(document.fmMain.attach_graph_unit,		RPT_PARAM_ATTACH_GRAPH_UNIT			);
	jsSetTxtValue(document.fmMain.attach_top_n_filename,	RPT_PARAM_ATTACH_TOP_N_FILENAME		);
	jsSetTxtValue(document.fmMain.attach_top_n_fileext,		RPT_PARAM_ATTACH_TOP_N_FILEEXT		);
	jsSetTxtValue(document.fmMain.attach_top_n_filetype,	RPT_PARAM_ATTACH_TOP_N_FILETYPE		);
	jsSetTxtValue(document.fmMain.attach_top_n_sender,	RPT_PARAM_ATTACH_TOP_N_SENDER		);
	jsSetTxtValue(document.fmMain.attach_top_n_rule,	RPT_PARAM_ATTACH_TOP_N_RULE		);

	jsSetCheckStatus(document.fmMain.CONTENT_FILTER_REPORT,	rptItem_CONTENT);
	jsSetCheckGroupStatus(document.fmMain.chkContent_items,	"report_item_content_summary",			RPT_PARAM_CONTENT_SUMMARY		);
	jsSetCheckGroupStatus(document.fmMain.chkContent_items,	"report_item_content_graph",			RPT_PARAM_CONTENT_GRAPH			);
	jsSetCheckGroupStatus(document.fmMain.chkContent_items,	"report_item_content_top_sender",		RPT_PARAM_CONTENT_TOP_SENDER	);
	jsSetCheckGroupStatus(document.fmMain.chkContent_items,	"report_item_content_top_recipient",	RPT_PARAM_CONTENT_TOP_RECIPIENT	);
	jsSetCheckGroupStatus(document.fmMain.chkContent_items,	"report_item_content_top_rule",			RPT_PARAM_CONTENT_TOP_RULE		);
	jsSetGraphUnit(document.fmMain.content_graph_unit, 		RPT_PARAM_CONTENT_GRAPH_UNIT		);
	jsSetTxtValue(document.fmMain.content_top_n_sender,		RPT_PARAM_CONTENT_TOP_N_SENDER		);
	jsSetTxtValue(document.fmMain.content_top_n_recipient,	RPT_PARAM_CONTENT_TOP_N_RECIPIENT	);
	jsSetTxtValue(document.fmMain.content_top_n_rule,		RPT_PARAM_CONTENT_TOP_N_RULE		);
	
	jsSetCheckStatus(document.fmMain.DLP_FILTER_REPORT,	rptItem_DLP);
	jsSetCheckGroupStatus(document.fmMain.chkDLP_items,	"report_item_dlp_summary",			RPT_PARAM_DLP_SUMMARY		);
	jsSetCheckGroupStatus(document.fmMain.chkDLP_items,	"report_item_dlp_graph",			RPT_PARAM_DLP_GRAPH			);
	jsSetCheckGroupStatus(document.fmMain.chkDLP_items,	"report_item_dlp_top_sender",		RPT_PARAM_DLP_TOP_SENDER	);
	jsSetCheckGroupStatus(document.fmMain.chkDLP_items,	"report_item_dlp_top_recipient",	RPT_PARAM_DLP_TOP_RECIPIENT	);
	jsSetCheckGroupStatus(document.fmMain.chkDLP_items,	"report_item_dlp_top_rule",			RPT_PARAM_DLP_TOP_RULE		);
	jsSetCheckGroupStatus(document.fmMain.chkDLP_items,	"report_item_dlp_top_template",		RPT_PARAM_DLP_TOP_TEMPLATE	);
	jsSetGraphUnit(document.fmMain.dlp_graph_unit, 		RPT_PARAM_DLP_GRAPH_UNIT		);
	jsSetTxtValue(document.fmMain.dlp_top_n_sender,		RPT_PARAM_DLP_TOP_N_SENDER		);
	jsSetTxtValue(document.fmMain.dlp_top_n_recipient,	RPT_PARAM_DLP_TOP_N_RECIPIENT	);
	jsSetTxtValue(document.fmMain.dlp_top_n_rule,		RPT_PARAM_DLP_TOP_N_RULE		);
	jsSetTxtValue(document.fmMain.dlp_top_n_template,	RPT_PARAM_DLP_TOP_N_TEMPLATE	);

	jsSetCheckStatus(document.fmMain.ANTI_SPAM_REPORT,	rptItem_SPAM);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_summary",						RPT_PARAM_SPAM_SUMMARY				);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_graph",						RPT_PARAM_SPAM_GRAPH				);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_top_sender",					RPT_PARAM_SPAM_TOP_SENDER			);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_top_mailbox",					RPT_PARAM_SPAM_TOP_MAILBOX			);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_top_domain",					RPT_PARAM_SPAM_TOP_DOMAIN			);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_top_false_positive_sender",	RPT_PARAM_SPAM_TOP_FP_SENDER		);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_top_false_positive_domain",	RPT_PARAM_SPAM_TOP_FP_DOMAIN		);
	jsSetCheckGroupStatus(document.fmMain.chkSpam_items,	"report_item_spam_categories",					RPT_PARAM_SPAM_CATEGORIES			);
	jsSetGraphUnit(document.fmMain.spam_graph_unit, RPT_PARAM_SPAM_GRAPH_UNIT);
	jsSetTxtValue(document.fmMain.spam_top_n_sender,					RPT_PARAM_SPAM_TOP_N_SENDER		);
	jsSetTxtValue(document.fmMain.spam_top_n_mailbox,					RPT_PARAM_SPAM_TOP_N_MAILBOX	);
	jsSetTxtValue(document.fmMain.spam_top_n_domain,					RPT_PARAM_SPAM_TOP_N_DOMAIN		);
	jsSetTxtValue(document.fmMain.spam_top_n_false_positive_sender,	RPT_PARAM_SPAM_TOP_N_FP_SENDER	);
	jsSetTxtValue(document.fmMain.spam_top_n_false_positive_domain,	RPT_PARAM_SPAM_TOP_N_FP_DOMAIN	);
	
	jsSetCheckStatus(document.fmMain.URL_FILTER_REPORT,	rptItem_WTP);
	jsSetCheckGroupStatus(document.fmMain.chkURL_items,	"report_item_url_summary",						RPT_PARAM_WTP_SUMMARY				);
	jsSetCheckGroupStatus(document.fmMain.chkURL_items,	"report_item_url_graph",						RPT_PARAM_WTP_GRAPH				);
	jsSetCheckGroupStatus(document.fmMain.chkURL_items,	"report_item_url_top_sender",					RPT_PARAM_WTP_TOP_SENDER			);
	jsSetCheckGroupStatus(document.fmMain.chkURL_items,	"report_item_url_top_urls",						RPT_PARAM_WTP_TOP_URL			);
	jsSetGraphUnit(document.fmMain.url_graph_unit, PRT_PARAM_WTP_GRAPH_UNIT);
	jsSetTxtValue(document.fmMain.url_top_n_sender,	PRT_PARAM_WTP_TOP_N_SENDER	);
	jsSetTxtValue(document.fmMain.url_top_n_url,	PRT_PARAM_WTP_TOP_N_URL	);
	
	jsSetCheckStatus(document.fmMain.UNSCANNABLE_ENTITY_REPORT, rptItem_UNSCANNABLE);
	jsSetCheckGroupStatus(document.fmMain.chkUnscannable_items,	"report_item_unscannable_summary",	RPT_PARAM_UNSCANNABLE_SUMMARY		);
	jsSetCheckGroupStatus(document.fmMain.chkUnscannable_items,	"report_item_unscannable_graph",			RPT_PARAM_UNSCANNABLE_GRAPH		);
    jsSetGraphUnit(document.fmMain.unscannable_graph_unit, RPT_PARAM_UNSCANNABLE_UNIT);
}
function jsValidateText(txtField) {
	if (!checkNumberRange(txtField.value,INT_NMAX_REPORT_TOP,INT_NMIN_REPORT_TOP,STR_WARN_REPORT_TOP,false)) {
		jsFocus(txtField);
		return false;
	}
	return true;
}
function jsViewLogSchema()
{
    jsOpenReportSQLSchema('html/reports/report_sql_schema.htm');
}
//-->
</script>
<body onload="jsInitPage();" onclick="checkPageStatus(event);">
<form id="fmMain" name="fmMain" action="$$FORM_ACTION$$" method="POST">
<!--Hidden Field-->
<input type="hidden" name="txtID"/>
<input type="hidden" name="virus_scan_mode" value="ALL"/>
<input type="hidden" id="txtCurrentPage" name="txtCurrentPage"  value="$$CURRENT_PAGE$$"/>
<!--/Hidden Field-->

<!--Page Title-->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title">Scheduled Reports: <font id="labPageTitle">Add</font>&nbsp;Report</td>
	<td align="right" valign="bottom">
		<a href="javascript:jsMapOnlineHelp('reports\Scheduled_Edit.htm');" class="moretestblue">
		<img src="images/question.gif" 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" cellspacing="0" cellpadding="0">
<!--Page Description-->
<tr><td>Report name:&nbsp;&nbsp;
		<input type=text class="text" id="txtName" name="txtName" style="width:300" value="untitled"></td></tr>
<tr><td height="10"></td></tr>
<!--/Page Description-->
<!--Page Content-->
<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Schedule||-->
		<tr><td class="tableheadergreyS">Schedule</td></tr>
		<tr><td><table border="0" cellpadding="0" cellspacing="0">
				<tr><td class="data1" width="20"><input type=radio id="optSchedule" name="optSchedule" value="DAILY"></td>
					<td class="data1">Daily</td>
				<tr><td class="data1"><input type=radio id="optSchedule" name="optSchedule" value="WEEKLY"></td>
					<td class="data1">Weekly, every</td>
					<td class="data1"><select style="display:none" class="text" id="optWeekly" name="optWeekly"></select>
						<select class="text" id="optWeekDay" name="optWeekDay"></select></td></tr>
				<tr><td class="data1"><input type=radio id="optSchedule" name="optSchedule" value="MONTHLY" checked="checked"></td>
					<td class="data1">Monthly, every</td>
					<td class="data1"><select class="text" id="optMonthly" name="optMonthly"></select></td></tr>
				<tr><td class="data1" colspan="3" height="10"></td></tr>
				<tr><td class="data1" colspan="2" valign="top">Generate report at:</td>
					<td class="data1"><table border="0" cellpadding="0" cellspacing="0">
						<tr><td><select class="text" id="optGenerateHH" name="optGenerateHH"></select></td>
							<td>&nbsp;:&nbsp;</td>
							<td><select class="text" id="optGenerateMM" name="optGenerateMM"></select></td></tr>
						<tr><td>hh</td><td></td><td>mm</td></tr>
						</table></td></tr>
				</table></td></tr>
		<!--||Content||-->
		<tr><td class="tableheadergreyM">Content</td></tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				<!-- Summary report -->
				<tr><td width="25"><input type=checkbox id="chkTarget" name="SUMMARY_REPORT" value="enable"></td>
					<td>Scanning status summary</td></tr>
				<!-- Security risk scan -->
				<tr><td><input type=checkbox id="chkTarget" name="VIRUS_SCAN_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkVirus_items);"></td>
					<td>Security risk scan report
					    <span id="tabVirus" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabVirus_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="tabVirus_items" style="display:none">
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_virus_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td colspan="2" nowrap>Security risk scan summary</td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_virus_types"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td colspan="2" nowrap>Security risk types</td></tr>
						<tr><td width="20"><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_virus_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td width="25%" nowrap>Viruses/malware graph:</td>
							<td width="75%"><select class="text" id="optVirusGraph" name="virus_graph_unit"></select></td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_virus_top_viruses"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td nowrap>Top viruses/malware:</td>
							<td><input type=text class="text" id="txtVirusTop" name="virus_top_n_virus" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_virus_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td nowrap>Top viruses/malware violators:</td>
							<td><input type=text class="text" id="txtSenderTop" name="virus_top_n_sender" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_virus_actions"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td colspan="2" nowrap>Viruses/malware action summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_spyware_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td width="25%" nowrap>Spyware/grayware graph:</td>
							<td width="75%"><select class="text" id="optSpywareGraph" name="spyware_graph_unit"></select></td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_spyware_top_spywares"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td nowrap>Top Spyware/grayware:</td>
							<td><input type=text class="text" id="txtSpywareTop" name="spyware_top_n_spyware" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_spyware_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td nowrap>Top spyware/grayware violators:</td>
							<td><input type=text class="text" id="txtSenderTop" name="spyware_top_n_sender" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkVirus_items" name="chkVirus_items" value="report_item_spyware_actions"
								onclick="setUIItemsChecked(fmMain.chkTarget[1], fmMain.chkVirus_items, false);"></td>
							<td colspan="2" nowrap>Spyware/grayware action summary</td></tr>
						</table></td></tr>
				<!-- File blocking -->
				<tr><td><input type=checkbox id="chkTarget" name="ATTACHMENT_BLOCKING_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkAttach_items);"></td>
					<td>File blocking report
					    <span id="tabAttach" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabAttach_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="tabAttach_items" style="display:none">
						<tr><td><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td colspan="2" nowrap>File blocking summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td width="25%" nowrap>Blocked files graph:</td>
							<td width="75%"><select class="text" id="optAttachGraph" name="attach_graph_unit"></select></td></tr>
						<tr><td><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_top_filetype"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td nowrap>Top file types blocked:</td>
							<td><input type=text class="text" id="txtAttachTop" name="attach_top_n_filetype" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_top_filename"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td nowrap>Top file names blocked:</td>
							<td><input type=text class="text" id="txtAttachFileTop" name="attach_top_n_filename" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_top_file_ext"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td nowrap>Top file extensions blocked:</td>
							<td><input type=text class="text" id="txtAttachExtTop" name="attach_top_n_fileext" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td nowrap>Top blocked file violators:</td>
							<td><input type=text class="text" id="txtAttachSenderTop" name="attach_top_n_sender" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkAttach_items" name="chkAttach_items" value="report_item_attach_top_rule"
								onclick="setUIItemsChecked(fmMain.chkTarget[2], fmMain.chkAttach_items, false);"></td>
							<td nowrap>Top file blocking policy triggered:</td>
							<td><input type=text class="text" id="txtAttachRuleTop" name="attach_top_n_rule" value="10" style="width:30"></td></tr>
						</table></td></tr>
				<!-- Content filter -->
				<tr id="prContentFilter"><td><input type=checkbox id="chkTarget" name="CONTENT_FILTER_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkContent_items);"></td>
					<td>Content filtering report
					    <span id="tabContent" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabContent_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="tabContent_items" style="display:none">
						<tr><td><input type=checkbox id="chkContent_items" name="chkContent_items" value="report_item_content_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[3], fmMain.chkContent_items, false);"></td>
							<td colspan="2" nowrap>Content filtering summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkContent_items" name="chkContent_items" value="report_item_content_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[3], fmMain.chkContent_items, false);"></td>
							<td width="25%" nowrap>Filtered files and Web content graph:</td>
							<td width="75%"><select class="text" id="optContentGraph" name="content_graph_unit"></select></td></tr>
						<tr><td><input type=checkbox id="chkContent_items" name="chkContent_items" value="report_item_content_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[3], fmMain.chkContent_items, false);"></td>
							<td nowrap>Top filtered files/Web content violators:</td>
							<td><input type=text class="text" id="txtSenderTop" name="content_top_n_sender" value="10" style="width:30"></td></tr>
						<tr style="display:none"><td><input type=checkbox id="chkContent_items" name="chkContent_items" value="report_item_content_top_recipient"
								onclick="setUIItemsChecked(fmMain.chkTarget[3], fmMain.chkContent_items, false);"></td>
							<td nowrap>Top filtered recipients:</td>
							<td><input type=text class="text" id="txtRecipientTop" name="content_top_n_recipient" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkContent_items" name="chkContent_items" value="report_item_content_top_rule"
								onclick="setUIItemsChecked(fmMain.chkTarget[3], fmMain.chkContent_items, false);"></td>
							<td nowrap>Top content filtering policy triggered:</td>
							<td><input type=text class="text" id="txtRuleTop" name="content_top_n_rule" value="10" style="width:30"></td></tr>
						</table></td></tr>
				<!-- DLP filter -->
				<tr id="prDLPFilter"><td><input type=checkbox id="chkTarget" name="DLP_FILTER_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkDLP_items);"></td>
					<td>Data loss prevention report
					    <span id="tabDLP" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabDLP_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="tabDLP_items" style="display:none">
						<tr><td><input type=checkbox id="chkDLP_items" name="chkDLP_items" value="report_item_dlp_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[4], fmMain.chkDLP_items, false);"></td>
							<td colspan="2" nowrap>Data loss prevention summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkDLP_items" name="chkDLP_items" value="report_item_dlp_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[4], fmMain.chkDLP_items, false);"></td>
							<td width="25%" nowrap>Filtered files and Web content graph:</td>
							<td width="75%"><select class="text" id="optDLPGraph" name="dlp_graph_unit"></select></td></tr>
						<tr><td><input type=checkbox id="chkDLP_items" name="chkDLP_items" value="report_item_dlp_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[4], fmMain.chkDLP_items, false);"></td>
							<td nowrap>Top filtered files/Web content violators:</td>
							<td><input type=text class="text" id="txtSenderTop" name="dlp_top_n_sender" value="10" style="width:30"></td></tr>
						<tr style="display:none"><td><input type=checkbox id="chkDLP_items" name="chkDLP_items" value="report_item_dlp_top_recipient"
								onclick="setUIItemsChecked(fmMain.chkTarget[4], fmMain.chkDLP_items, false);"></td>
							<td nowrap>Top filtered recipients:</td>
							<td><input type=text class="text" id="txtRecipientTop" name="dlp_top_n_recipient" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkDLP_items" name="chkDLP_items" value="report_item_dlp_top_rule"
								onclick="setUIItemsChecked(fmMain.chkTarget[4], fmMain.chkDLP_items, false);"></td>
							<td nowrap>Top data loss prevention policy triggered:</td>
							<td><input type=text class="text" id="txtRuleTop" name="dlp_top_n_rule" value="10" style="width:30"></td></tr>
						<tr><td><input type=checkbox id="chkDLP_items" name="chkDLP_items" value="report_item_dlp_top_template"
								onclick="setUIItemsChecked(fmMain.chkTarget[4], fmMain.chkDLP_items, false);"></td>
							<td nowrap>Top data loss prevention template triggered:</td>
							<td><input type=text class="text" id="txtTemplateTop" name="dlp_top_n_template" value="10" style="width:30"></td></tr>
						</table></td></tr>
				<!-- Antispam -->
				<tr id="prAntispam" style="display:none"><td><input type=checkbox id="chkTarget" name="ANTI_SPAM_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkSpam_items);"></td>
					<td>Spam report
					    <span id="tabSpam" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabSpam_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="tabSpam_items" style="display:none">
						<tr><td><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td colspan="2" nowrap>Spam summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td width="25%" nowrap>Spam graph:</td>
							<td width="75%"><select class="text" id="optSpamGraph" name="spam_graph_unit"></select></td></tr>
						<tr>
							<td><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td nowrap>Top spam sources:</td>
							<td><input type=text class="text" id="txtSpamSenderTop" name="spam_top_n_sender" value="10" style="width:30"></td></tr>
						<tr>
							<td><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_top_mailbox"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td nowrap>Top spam recipients:</td>
							<td><input type=text class="text" id="txtSpamMailBoxTop" name="spam_top_n_mailbox" value="10" style="width:30"></td></tr>
						<tr>
							<td><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_top_domain"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td nowrap>Top domains of spam recipients:</td>
							<td><input type=text class="text" id="txtSpamDomainTop" name="spam_top_n_domain"  value="10" style="width:30"></td></tr>
						<tr id="FalsePositive_Sender" style="display:none"><td><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_top_false_positive_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td nowrap>Top reported false positive senders:</td>
							<td><input type=text class="text" id="txtSpamFalseSenderTop" name="spam_top_n_false_positive_sender" value="10" style="width:30"></td></tr>
						<tr id="FalsePositive_Domain" style="display:none"><td><input type=checkbox id="Checkbox2" name="chkSpam_items" value="report_item_spam_top_false_positive_domain"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td nowrap>Top reported false positive domains:</td>
							<td><input type=text class="text" id="txtSpamFalseDomainTop" name="spam_top_n_false_positive_domain" value="10" style="width:30"></td></tr>
						<tr style="display:none" ><td><input type=checkbox id="chkSpam_items" name="chkSpam_items" value="report_item_spam_categories"
								onclick="setUIItemsChecked(fmMain.chkTarget[5], fmMain.chkSpam_items, false);"></td>
							<td colspan="2" nowrap>Spam detection by category</td></tr>
						</table></td></tr>
				<!-- Unscannable entity -->
				<tr><td><input type=checkbox id="chkTarget" name="UNSCANNABLE_ENTITY_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkUnscannable_items);"></td>
					<td>Unscannable file report
					    <span id="tabUnscannable" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabUnscannable_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="tabUnscannable_items" style="display:none">
						<tr><td><input type=checkbox id="chkUnscannable_items" name="chkUnscannable_items" value="report_item_unscannable_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[6], fmMain.chkUnscannable_items, false);"></td>
							<td colspan="2" nowrap>Unscannable file summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkUnscannable_items" name="chkUnscannable_items" value="report_item_unscannable_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[6], fmMain.chkUnscannable_items, false);"></td>
							<td width="25%" nowrap>Unscannable file graph:</td>
							<td width="75%"><select class="text" id="optUnscannableGraph" name="unscannable_graph_unit"></select></td></tr>
						</table></td></tr>
					<!--Web Threat Protection -->
				<tr id="prURLFilter"><td><input type=checkbox id="chkTarget" name="URL_FILTER_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkURL_items);"></td>
					<td>Web reputation report
					    <span id="tabWtp" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onClick="setUIMoreDisplay(this);">
					        <img id="tabWtp_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="tabWtp_items" style="display:none">
						<tr><td><input type=checkbox id="chkURL_items" name="chkURL_items" value="report_item_url_summary"
								onclick="setUIItemsChecked(fmMain.chkTarget[7], fmMain.chkURL_items, false);"></td>
							<td colspan="2" nowrap>Web reputation summary</td></tr>
						<tr><td width="20"><input type=checkbox id="chkURL_items" name="chkURL_items" value="report_item_url_graph"
								onclick="setUIItemsChecked(fmMain.chkTarget[7], fmMain.chkURL_items, false);"></td>
							<td width="25%" nowrap>Suspicious URLs graph:</td>
							<td width="75%"><select class="text" id="optWtpGraph" name="url_graph_unit"></select></td></tr>
						<tr>
							<td><input type=checkbox id="chkURL_items" name="chkURL_items" value="report_item_url_top_urls"
								onclick="setUIItemsChecked(fmMain.chkTarget[7], fmMain.chkURL_items, false);"></td>
							<td nowrap>Top malicious URLs:</td>
							<td><input type=text class="text" id="txtSuspiciousURLTop" name="url_top_n_url" value="10" style="width:30"></td>
						</tr>
						<tr>
							<td><input type=checkbox id="chkURL_items" name="chkURL_items" value="report_item_url_top_sender"
								onclick="setUIItemsChecked(fmMain.chkTarget[7], fmMain.chkURL_items, false);"></td>
							<td nowrap>Top authors of Files/Web content containing suspicious URLs:</td>
							<td><input type=text class="text" id="txtWtpSenderTop" name="url_top_n_sender" value="10" style="width:30"></td>
						</tr>	
				</table></td></tr>				
				<!-- Traffic -->
				<tr style="display:none"><td><input type=checkbox id="chkTarget" name="TRAFFIC_REPORT" value="enable"
						onclick="setUIChecked(this.checked,fmMain.chkTraffic_items);"></td>
					<td>Traffic report
					    <span id="tabTraffic" class="more-out" onMouseOver="setUIMoreOverOut(this,true);" onMouseOut="setUIMoreOverOut(this,false);" onclick="setUIMoreDisplay(this);">
					        <img id="tabTraffic_icon" src="images/more_down_out.gif">
					        Show details
					    </span>
					    </td></tr>
				<tr style="display:none"><td></td>
					<td><table width="100%" border="0" cellpadding="0" cellspacing="0" id="tabTraffic_items" style="display:none">
						<tr><td width="20"><input type=checkbox id="chkTraffic_items" name="chkTraffic_items" value="report_item_traffic_by_hour"
								onclick="setUIItemsChecked(fmMain.chkTarget[8], fmMain.chkTraffic_items, false);"></td>
							<td nowrap>Traffic by hour</td></tr>
						<tr><td><input type=checkbox id="chkTraffic_items" name="chkTraffic_items" value="report_item_traffic_by_day"
								onclick="setUIItemsChecked(fmMain.chkTarget[8], fmMain.chkTraffic_items, false);"></td>
							<td nowrap>Traffic by day</td></tr>
						<tr><td><input type=checkbox id="chkTraffic_items" name="chkTraffic_items" value="report_item_traffic_by_week"
								onclick="setUIItemsChecked(fmMain.chkTarget[8], fmMain.chkTraffic_items, false);"></td>
							<td nowrap>Traffic by week</td></tr>
						</table></td></tr>
				</table></td></tr>
<!-- Report delivery -->
				<tr><td class="tableheadergreyM">Delivery</td></tr>
				<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" ID="Table1">
						<tr><td colspan="3" height="5"></td></tr>
						<tr><td width="25"><input type=checkbox name="chkDelivery" value="enable" ID="Checkbox1"></td>
							<td width="90" nowrap>Send to email : </td>
							<td><input name="txtDelivery" size="30" maxlength="30" style="width:300" class="text"/></td>
						</tr>
						<tr><td></td><td></td>
						    <td>Use semicolon";" to separate multiple addresses<br />For example: user1@domain.com;user2</td>
						</tr>
						<tr><td colspan="3" height="5"></td></tr></table></td></tr>
		</table></td></tr>
		<!--||Button||-->
		<tr><td height="10"></td></tr>
		<tr><td><input type=button class="text" id="btnSave" name="btnSave" value="Save" onclick="jsSubmit();">
				<input type=button class="text" id="btnCancel" name="btnCancel" value="Cancel" onclick="jsCancel();">
                <input type=button class="text" id="btnView" name="btnView" value="View Report Schema" onclick="jsViewLogSchema();">
                </td></tr>
		</table></td></tr>
<!--/Page Content-->
</table>
<input type=hidden class="text" id="hiddenEnableStat" name="hiddenEnableStat" value="1">
</form>
</body>
</html>
