<html>
<head>
<title>One-time_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" src="cgiDispatcher.exe?Page=administration/SystemDateTime.htm">
<!-- //src="cgiDispatcher.exe?Page=administration/SystemDateTime.htm" return 5 values: vSvrDate, vSvrDateFormat, vSvrTime, vSvrTimeFormat, vSvrTwoDigitYearMax. //-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
CANCEL_EVENT = true;
var STR_GRAPH_TYPE_VALUE	= "HOURLY,DAILY,WEEKLY,MONTHLY";
function newDate(strDateString)
{
    var vDateTime = strDateString.split(" ");
    var vDate = vDateTime[0].split("-");
    var vTime = vDateTime[1].split(":");
    // The js Date month range is 0--11, so need vDate[1]-1
    return new Date(vDate[0],vDate[1]-1,vDate[2],vTime[0],vTime[1],vTime[2]);
}
var hiAntiSpam = $$ID_PR_ANTI_SPAM_HIDE$$;
var vCurrentPageID = 0;
var vStrCurPage = "&CurPageID" + "=";
var strBeginTime  = "$$QUERY_BEGIN_TIME$$";
var strEndTime = "$$QUERY_END_TIME$$";
var DateFrom = newDate(strBeginTime);
var DateTo = newDate(strEndTime);
function jsInitPage() {	
	document.fmMain.onclick = jsCloseCalendar;
	// 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;
	}
	
	setOptionValue(document.fmMain.optHourFrom,			STR_TIME_HOUR,	false);
	setOptionValue(document.fmMain.optHourTo,			STR_TIME_HOUR,	false);
	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.spyware_top_n_spyware.maxLength             = INT_LMAX_REPORT_TOP;
    document.fmMain.spyware_top_n_sender.maxLength             = INT_LMAX_REPORT_TOP;
    document.fmMain.virus_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.txtDateFrom_display.maxLength	= INT_LMAX_DATE;
	document.fmMain.txtDateTo_display.maxLength	= INT_LMAX_DATE;

//	var oDate = new Date();
	document.fmMain.txtDateTo_display.value = setDateTimeFormatToServerSetting(setDateTimeFormat(DateTo).substring(0,10),vSvrDateFormat);
	document.fmMain.optHourTo.selectedIndex = setDateTimeFormat(DateTo).substr(11,2);
//	oDate.setDate(oDate.getDate()-1);
	document.fmMain.txtDateFrom_display.value = setDateTimeFormatToServerSetting(setDateTimeFormat(DateFrom).substr(0,10),vSvrDateFormat);
	document.fmMain.optHourFrom.selectedIndex = setDateTimeFormat(DateFrom).substr(11,2);
	
	var ModifiedFormat = DecorateDateFormat(vSvrDateFormat);

	document.getElementById("FromDateString").innerHTML = ModifiedFormat; 
	document.getElementById("ToDateString").innerHTML = ModifiedFormat;
	
	document.fmMain.txtName.focus();
	document.fmMain.txtName.select();
	// release event capture
	CANCEL_EVENT = false;
	
	//set UI dependency
	jsServerRoleDependency("reports/Onetime_Edit.htm");
}
function jsSubmit() {
	// add some checking
	document.fmMain.txtName.value = setTrim(document.fmMain.txtName.value);
	vDateFrom = setDateTimeFormatToProgramStandard(document.fmMain.txtDateFrom_display.value,vSvrDateFormat,vSvrTwoDigitYearMax);
	vDateTo = setDateTimeFormatToProgramStandard(document.fmMain.txtDateTo_display.value,vSvrDateFormat,vSvrTwoDigitYearMax);
	if (!checkNumberRange(document.fmMain.txtName.value.length,1,INT_LMAX_REPORTNAME,STR_WARN_REPORTNAME,false)){
		jsFocus(document.fmMain.txtName);
		return;
	}
	if (!checkDateTimeFormat(vDateFrom,STR_WARN_DATE,vSvrDateFormat)) {
		jsFocus(document.fmMain.txtDateFrom_display);
		return;
	}
	if (!checkDateTimeFormat(vDateTo,STR_WARN_DATE,vSvrDateFormat)) {
		jsFocus(document.fmMain.txtDateTo_display);
		return;
	}
	document.fmMain.txtDateFrom.value = setDateTimeCGIFormat(vDateFrom).substr(0,10) + " " + document.fmMain.optHourFrom.value + ":00:00";
	document.fmMain.txtDateTo.value = setDateTimeCGIFormat(vDateTo).substr(0,10) + " " + document.fmMain.optHourTo.value + ":00:00";
	if (document.fmMain.txtDateFrom.value > document.fmMain.txtDateTo.value) {
		alert(STR_ERR_DATETIME_PERIOD);
		jsFocus(document.fmMain.txtDateFrom_display);
		return;
	}
	if (!jsValidateText(document.fmMain.virus_top_n_virus	            ) ||
        !jsValidateText(document.fmMain.spyware_top_n_spyware           ) ||
        !jsValidateText(document.fmMain.spyware_top_n_sender            ) ||
        !jsValidateText(document.fmMain.virus_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;
	}
	// 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 jsCloseCalendar() {
	document.getElementById("divCalendar").style.width = 0;
	document.getElementById("divCalendar").style.height = 0;
	jsResetCalendarPos();
}

function jsGetCalendarFrom()
{
	document.getElementById("ifmCalendar").style.width = 245;
	document.getElementById("ifmCalendar").style.height = 200;
	getCalendar(window.ifmCalendar,document.fmMain.txtDateFrom_display,vSvrDateFormat,vSvrTwoDigitYearMax);
}
function jsGetCalendarTo()
{
	document.getElementById("ifmCalendar").style.width = 245;
	document.getElementById("ifmCalendar").style.height = 200;
	getCalendar(window.ifmCalendar,document.fmMain.txtDateTo_display,vSvrDateFormat,vSvrTwoDigitYearMax);
}
	
function jsResetCalendarPos()
{
	document.getElementById("ifmCalendar").style.width = 0;
	document.getElementById("ifmCalendar").style.height = 0;
}
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="txtDateFrom"/>
<input type="hidden" name="txtDateTo"/>
<input type="hidden" name="optSchedule" value="NOW"/>
<input type="hidden" name="txtID" value="$$RPT_TEMPLATE_ID$$"/>
<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">One-time Reports: Add/Edit a Report</td>
	<td align="right" valign="bottom">
		<a href="javascript:jsMapOnlineHelp('reports\Onetime_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">
		<!--||Criteria||-->
		<tr><td class="tableheadergreyS">Time</td></tr>
		<tr><td class="data1"><table border="0" cellpadding="0" cellspacing="0">
				<tr><td height="5"></td></tr>
				<tr><td>From&nbsp;</td>
					<td><input type=text class="text" id="txtDateFrom_display" name="txtDateFrom_display" style="width:75"></td>
					<td><a href="javascript:jsGetCalendarFrom();"><img id="txtDateFrom_display_img" src="images/icon_calendar.gif" style="position:relative" class="vAlignMid"></a></td>
					<td><select class="text" id="optHourFrom" name="optHourFrom"></select></td>
					<td>&nbsp;to&nbsp;</td>
					<td><input type=text class="text" id="txtDateTo_display" name="txtDateTo_display" style="width:75"></td>
					<td><a href="javascript:jsGetCalendarTo();"><img id="txtDateTo_display_img" src="images/icon_calendar.gif" style="position:relative" class="vAlignMid"></a></td>
					<td><select class="text" id="optHourTo" name="optHourTo"></select></td></tr>
				<tr><td></td><td><span id="FromDateString">mm/dd/yyyy</span></td><td></td><td>hh</td><td></td><td><span id="ToDateString">mm/dd/yyyy</span></td><td></td><td>hh</td></tr>
				<tr><td height="5"></td></tr>
				</table></td></tr>
		<!--||Content||-->
		<tr><td class="tableheadergreyM">Content</td></tr>
		<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr><td colspan="2" height="5"></td></tr>
				<!-- summary report -->
				<tr><td><input type=checkbox id="chkTarget" name="SUMMARY_REPORT" value="enable"></td>
					<td>Scan status summary</td></tr>
				<!-- Security risk scan -->
				<tr><td width="25"><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 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="txtVirusTopSender" 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><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_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="txtSpywareTopSender" 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 style="display:none">
							<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>Top spam senders:</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_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>
		</table></td></tr>
		<!--||Button||-->
		<tr><td height="10"></td></tr>
		<tr><td><input type=button class="text" id="btnSave" name="btnSave" value="Generate" 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>
</form>

<div id="divCalendar" name="divCalendar" style="position:absolute;width:0;height:0;overflow:auto">
<iframe id="ifmCalendar" name="ifmCalendar" src="html/calendar-new.htm" frameBorder="0" style="width:0;height:0"></iframe>
</div>
</body>
</html>
