<html>
<head>
<title>Web_Threat_Protection</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">
<!--
var SortDir = "ASC";
var MaxURLCount = $$MAX_URL_COUNT$$;
var GlobalorLocal = "$$LWCS_LOCAL_OR_GLOBAL$$";
var vCURRENT_TAG = "Target";
var bIsRealTime = $$REAL_TIME$$;

function jsInitPage() {
	document.getElementById("AppURLSort_icon").src = (SortDir == "ASC")?"images/arrow_up.gif":"images/arrow_down.gif";
	if (document.getElementById("stApprovedURL").options.length!=0)
	    jsContactListUI(document.getElementById("stApprovedURL"),document.getElementById("divAppURLL"),document.getElementById("divAppURLList"));


	document.fmMain.txtNotifyAdminSubject.maxLength		= INT_LMAX_EM_SUBJECT;

	setOptionValueEx(document.fmMain.optAdminMessageType,STR_WTP_NOTIFY_MSG,STR_WTP_NOTIFY_MSG);
    setOptionValueEx(document.fmMain.optViolatorMessageType,STR_WTP_NOTIFY_MSG,STR_WTP_NOTIFY_MSG);
	setOptionValueEx(document.fmMain.optSNMPMessageType,STR_WTP_NOTIFY_MSG,STR_WTP_NOTIFY_MSG);
    
	jsUIDependency();

    //change the action page
    if (bIsRealTime)
    {
        document.getElementById("trUniqueAction").style.display = "none";
        document.getElementById("trRealTimeAction").style.display = "";

    }
    else
    {
         // show notify to violator
        document.getElementById('notifyViolatorDIV1').style.display = "";
        document.getElementById('notifyViolatorDIV2').style.display = "";

        document.getElementById("trUniqueAction").style.display = "";
        document.getElementById("trRealTimeAction").style.display = "none";
    }
	
	if("local" == GlobalorLocal)
	{
		document.getElementById("rdoSecurityLevel_High").disabled = true;
		document.getElementById("rdoSecurityLevel_Mid").disabled  = true;
		document.getElementById("chkEnableTakeActionToNoRating").disabled = true;
		document.getElementById("chkEnableTakeActionToNoRating").checked = false;
	}
	
}
function jsContactListUI(oList,oOuterDiv,oInnerDiv) {
	oInnerDiv.style.width  = 0;
	oInnerDiv.style.height = 0;
	oList.style.display	= "";
	if (oList.options.length==0) {oList.style.display="none"; return false;}
	
	var nRatio = (vBrowser == "IE")?3:2;
	oList.size = oList.options.length+1;
	
	oList.style.top = -1*nRatio;
	oList.style.left = -1*nRatio;
	oList.style.position="relative";
	if (oList.offsetWidth < (oOuterDiv.offsetWidth+(oList.offsetWidth-oList.scrollWidth)-20)+2*nRatio) {
		if (oList.offsetHeight > oOuterDiv.offsetHeight+2*nRatio) {
			oList.style.width = (oOuterDiv.offsetWidth+(oList.offsetWidth-oList.scrollWidth)-20)-2*nRatio;
		} else {
			oList.style.width = (oOuterDiv.offsetWidth+(oList.offsetWidth-oList.scrollWidth)-20)+2*nRatio;
		}
	}
	var nWidth  = oList.offsetWidth-2*nRatio-(oList.offsetWidth-oList.scrollWidth);
	var nHeight = oList.offsetHeight-2*nRatio;
	oInnerDiv.style.height = (nHeight<0)?0:nHeight;
	oInnerDiv.style.width  = (nWidth<0)?0:nWidth;
}
function jsSubmit() {	

	//Suspicious Tag Text
    //if(document.getElementById("rdoDeliverAct_Tag_and_deliver").checked
	//    && document.getElementById("txtTag").value == "")
    //{
	//	alert(STR_ERR_EMPTY_WTP_TAG);
    //    setUITagDisplay(2,3,STR_WTP_TAB_ACTION);
    //    jsFocus(document.getElementById("txtTag"));
	//	return;
    //}
    
    //Notification
	if(document.getElementById("chkNotifyAdmin").checked){
	    if(document.fmMain.txtNotifyAdminTo1.value == ""){
	        alert(STR_ERR_NOTIFY_ADMIN_ACCOUNT);

	        setUITagDisplay(3,3,STR_WTP_TAB_NOTIFICATION);
	        if(document.getElementById("tabNotifyAdmin_items").style.display=="none")
	                document.getElementById("tabNotifyAdmin").onclick();
		    jsFocus(document.fmMain.txtNotifyAdminTo1);
		    return false;
	    }
	}
	if(document.getElementById("chkNotifySNMP").checked){
	    if (!document.fmMain.txtSNMPIP.value.length){
	            alert(STR_ERR_BLANK_IPADDRESS);
	            jsFocus(document.fmMain.txtSNMPIP);
	            return false;
	    }
		if (!checkIPAddressFormat(document.fmMain.txtSNMPIP.value,"") && !checkIsIPv6Address(document.fmMain.txtSNMPIP.value)) {
	        alert(STR_ERR_INVALID_IPADDRESS);
			setUITagDisplay(3,3,STR_WTP_TAB_NOTIFICATION);
	        if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
	        jsFocus(document.fmMain.txtSNMPIP);
	        return false;
        }
        if (!checkNumberRange(document.fmMain.txtSNMPCommunity.value.length,INT_NMIN_SNMP,INT_NMAX_SNMP,STR_WARN_SNMP,false)) {
	        setUITagDisplay(3,3,STR_WTP_TAB_NOTIFICATION);
	        if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
	        jsFocus(document.fmMain.txtSNMPCommunity);
	        return false;	
        }
    }
	if (!checkNumberRange(document.fmMain.txtNotifyAdminSettingsPeriod.value,INT_NMIN_NOTI_PERIOD,INT_NMAX_NOTI_PERIOD,STR_WARN_NOTI_PERIOD,false)) {
		setUITagDisplay(3,3,STR_WTP_TAB_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,STR_WTP_TAB_NOTIFICATION);
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminSettingsOccurence);
		return false;	
	}
	if (!checkMultiEmailPatternFormat(document.fmMain.txtNotifyAdminTo1.value,STR_ERR_INVALID_EMAIL) ||
		!checkNumberRange(document.fmMain.txtNotifyAdminTo1.value.length,1,INT_LMAX_EM_ADDR_M,STR_WARN_EM_ADDR_M)) {
		setUITagDisplay(3,3,STR_WTP_TAB_NOTIFICATION);
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.fmMain.txtNotifyAdminTo1);
		return false;
	}
    if (!checkNumberRange(document.getElementById("txtNotifyAdminMessage").value.length,0,INT_LMAX_EM_CONTENT,STR_WARN_EM_CONTENT)) {
		setUITagDisplay(3,3,'Notification');
		if (document.getElementById("tabNotifyAdmin_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabNotifyAdmin"));
		jsFocus(document.getElementById("txtNotifyAdminMessage"));
		return false;
		}
    /*
	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++) {
        alert(i);
		if (!checkNumberRange(ntf_email_message_array[i].value.length,0,INT_LMAX_EM_CONTENT,STR_WARN_EM_CONTENT)) {
			setUITagDisplay(3,3,STR_WTP_TAB_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 (document.getElementById("txtSNMPMessage").value.length == 0)
		{
			alert(STR_ERR_BLANK_MESSAGE);
			setUITagDisplay(3,3,STR_WTP_TAB_NOTIFICATION);
			jsFocus(document.fmMain.txtSNMPMessage);
			return false;
		}  	
	if (!checkNumberRange(document.getElementById("txtSNMPMessage").value.length,0,INT_LMAX_EM_CONTENT,STR_WARN_EM_CONTENT)) {
		setUITagDisplay(3,3,STR_WTP_TAB_NOTIFICATION);
		if (document.getElementById("tabSNMP_items").style.display == "none") setUIMoreDisplay(document.getElementById("tabSNMP"));
		jsFocus(document.getElementById("txtSNMPMessage"));
		return false;
	}
	if(document.getElementById("chkEnableTakeActionToNoRating").checked)
	{
		document.getElementById("checkTakeActionToNoRating").value = "checked";
	}
	else
		document.getElementById("checkTakeActionToNoRating").value = "unchecked";
	setOption2Selected(document.getElementById("stApprovedURL"));
	document.fmMain.FormAction.value = "Save";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}

function jsUIDependency(){
    //Violator Notification
	 if(!bIsRealTime)
	 {
	    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 ;  
	//document.fmMain.txtTag.disabled = !(document.getElementById("rdoDeliverAct_Tag_and_deliver").checked);
	
	if($$E2K3_DISABLED_SMTP$$){
	    oform = document.fmMain;
	    EleLen = oform.elements.length;
	    for (var i=0;i<EleLen;i++){
	        oform.elements[i].disabled = true;
	    }
	    document.getElementById("Enable_WTP").style.display = "none";
	    document.getElementById("E2K3_Disabled_SMTP").style.display = "";
	}
}

function jsReset() {
    if (!confirm(STR_WARN_WTP_RESET_SETTINGS)) return;
    
	document.fmMain.FormAction.value = "Reset";
	jsAddCSRFToken(document.fmMain);
    document.fmMain.submit();
}

function jsSortAppURL(){
    document.getElementById("AppURLSort_icon").src = (SortDir == "ASC")?"images/arrow_up.gif":"images/arrow_down.gif";
    var aryAppURL=new Array();
    var ln =document.getElementById("stApprovedURL").options.length;
    for(var i=0;i<ln;i++)
    {
        aryAppURL[i] = document.getElementById("stApprovedURL").options[i].value;
    }
   
   aryAppURL.sort();

   if(SortDir == "DES")
   { aryAppURL.reverse();}
   while (ln--)
   {
        document.getElementById("stApprovedURL").options[ln] = null;
   }

    for (i = 0; i < aryAppURL.length; i++)
    {
          //document.getElementById("stApprovedURL").add (new Option(aryAppURL[i], aryAppURL[i]));
          var oOption = document.createElement("OPTION");
          oOption.text = aryAppURL[i];
          oOption.value = aryAppURL[i];
          document.getElementById("stApprovedURL").options.add(oOption);     
    }
}

function jsSort(){
    SortDir = (SortDir == "ASC")?"DES":"ASC";
    jsSortAppURL();
}

function jsAddAppURL(oList,oTable,strAppURL, strSkip){
	if(strAppURL == null)
    	strAppURL = setTrim(document.getElementById("txtAppURL").value.toLowerCase());
	if(strAppURL == "")
		return;
	var bFirstwww = true;
    if(strAppURL.substr(0,7) == "http://")
        strAppURL = strAppURL.substring(7,strAppURL.length);
    if(strAppURL.substr(0,8) == "https://")
        strAppURL = strAppURL.substring(8,strAppURL.length);
    if(strAppURL.substr(0,4) == "www.")
       { 
            strAppURL = strAppURL.substring(4,strAppURL.length);
            bFirstwww = false;
       }
    if (bFirstwww&&(strAppURL.substr(0,4) != "wwww"))
    { 
         if(strAppURL.substr(0,3) == "www")
       { 
            strAppURL = strAppURL.substring(3,strAppURL.length);
       }
    
    }
    if(strAppURL.indexOf("/")!=-1 )
	{
		strAppURL = strAppURL.substring(0,strAppURL.indexOf("/"));
	}
    // check format of added URL
    if(strSkip!="true" && !checkWTPURLFormat(strAppURL,STR_WARN_APPROVED_URL,false))
    {
        jsFocus(document.getElementById("txtAppURL"));
		return false;
    }

    if(strAppURL.indexOf("[")!=-1 && strAppURL.indexOf("]")!=-1 )
	{
		strAppURL = strAppURL.replace("[","");
	//	strAppURL = strAppURL.replace("]","");
		strAppURL = strAppURL.replace(/\].*/i,"");
	}
    // check if the new URL has been in the approved list
    if((strSkip!="true")  && !jsCheckDuplicateURLAndCount(strAppURL, oList, true))
    {
        jsFocus(document.getElementById("txtAppURL"));
		return false;
    }
    
    setUIAddItem(strAppURL,oList); 
    if (document.getElementById("stApprovedURL").options.length!=0)
        jsContactListUI(document.getElementById("stApprovedURL"),document.getElementById("divAppURLL"),document.getElementById("divAppURLList"));
	  
    document.getElementById("txtAppURL").value = "";
}

function jsRemoveAppURL(oList,oTable)
{
    var nCount = 0;  
       
   for (var i=0;i<oList.options.length;i++) 
   {
       if (oList.options[i].selected) 
       { 
           nCount++;           
       }     
   }     
    setUIDelfromList(oList);
    

}
function jsCheckDuplicateURLAndCount(newURL, oList, bWarnning){
if(oList.options.length >= MaxURLCount)
	{	
		if(bWarnning)
		{
			alert(STR_WARN_MAX_URL_COUNT);
		}
		return false;
	}
	
    for(var i=0; i<oList.options.length; i++){
        if(setTrim(oList.options[i].value) == setTrim(newURL))
		{
			if(bWarnning)
			{
				alert(STR_WARN_APPROVED_URL_DUPLICATE);
			}
            return false;
		}
    }
    return true;
}

function jsImport() {
	document.cookie = "WTPImportInit=" + escape("initial");
	//var rv = window.open("$$IMPORT_APPROVED_LIST_PAGE$$","WTP_Import","width=600,height=250");
	var rv = window.open("cgiDispatcher.exe?Page=scan/WebThreatProtection_Import.htm&Locale=&CurPage=","WTP_Import","width=600,height=250");
	rv.opener = self;
}
function jsImportCGI() {
	var strImpAppList =  document.getElementById("ReturnValue").value;
	var strAppList = "";
	var bfirst = true;	
    var strOldApplist = new Array();
    var ln =document.getElementById("stApprovedURL").options.length;
    
    for(var j=0;j<ln;j++)
         {
            strOldApplist[j] = document.getElementById("stApprovedURL").options[j].value;       
         }
    while(ln--)
         document.getElementById("stApprovedURL").options[ln] = null;
         
    var strNewApplist = strImpAppList.split(";");
    var vAppList = strOldApplist.concat(strNewApplist);
	
	vAppList.sort();
	var i = 0;
	while(i < vAppList.length -1 )
	{
		if(setTrim(vAppList[i].toLowerCase()) == setTrim(vAppList[i + 1].toLowerCase()))
		{
			vAppList.splice(i, 1);
		}
		else
		{   
            //jsAddAppURL(document.getElementById("stApprovedURL"),document.getElementById("tabApprovedURL"),vAppList[i]);
           if(document.getElementById("stApprovedURL").options.length < MaxURLCount)
	        {	
		        var oOption = document.createElement("OPTION");
		        oOption.text = vAppList[i];
		        oOption.value = vAppList[i];
		        document.getElementById("stApprovedURL").options.add(oOption);    
                
			    i++; 
	        }
	        else
	            break;    
		}
	}
    //jsAddAppURL(document.getElementById("stApprovedURL"),document.getElementById("tabApprovedURL"),vAppList[i]);
           if(document.getElementById("stApprovedURL").options.length < MaxURLCount)
	        {	
	            var oOption = document.createElement("OPTION");
		        oOption.text = vAppList[i];
		        oOption.value = vAppList[i];
		        document.getElementById("stApprovedURL").options.add(oOption);  
		        
	        }
           else 
              alert(STR_WARN_URLLENGTH_EXCEED);     
	if(SortDir == "DES")
	    jsSortAppURL();
	if (document.getElementById("stApprovedURL").options.length!=0)
	    jsContactListUI(document.getElementById("stApprovedURL"),document.getElementById("divAppURLL"),document.getElementById("divAppURLList"));
}
function jsExport() {
	
	var strAppURLList="";
	var ln =document.getElementById("stApprovedURL").options.length;
	
	 for(var j=0;j< ln; j++)
         {
            if(j==0)
         		strAppURLList = document.getElementById("stApprovedURL").options[j].value; 
         	else
                strAppURLList = strAppURLList+"\n"+document.getElementById("stApprovedURL").options[j].value;                
         }
	document.fmExport.approved_list.value = strAppURLList;
    jsAddCSRFToken(document.fmExport);
	document.fmExport.submit();
}
function jsExportCGI() {
	alert(document.getElementById("ReturnValue").value);
}

var bListboxUI = new Array(false,false,false);
function jsListboxUI(bIndex,oList,oInnerDiv,oOuterDiv) {
	if (bListboxUI[bIndex]) {return;}
	bListboxUI[bIndex] = true;
	if (oList.options.length == 0) {oList.style.display = "none";}
	if (oList.style.display=="none") {return;}
	
	var nRatio = 2;
	oList.selectedIndex = 0;
	oList.style.display = "";
	if (vBrowser == "IE") {
		oList.size = oList.options.length+1;
		nRatio = 3;
	}
	oList.style.top = -1*nRatio;
	oList.style.left = -1*nRatio;
	if (oList.offsetWidth < oOuterDiv.offsetWidth+2*nRatio) {
		if (oList.offsetHeight-oOuterDiv.offsetHeight > 2*nRatio) oList.style.width = oOuterDiv.offsetWidth-4*nRatio;
		else oList.style.width = oOuterDiv.offsetWidth+2*nRatio;
	} else {
		oList.style.width = oList.offsetWidth;
	}
	var nHeight = oList.offsetHeight-2*nRatio;
	var nWidth  = oList.offsetWidth-2*nRatio-(oList.offsetWidth-oList.scrollWidth);
	oInnerDiv.style.height = (nHeight<0)?0:nHeight;
	oInnerDiv.style.width  = (nWidth<0)?0:nWidth;
}

function jsChangeTag(vTag){
    vCURRENT_TAG = vTag;
}
function jsOpenOnlineHelp(){
	//if (bIsRealTime)
	{
		if (vCURRENT_TAG == "Action") {
			strMapURL = "config_web_reputation_action_settings.htm";
		}
		else if (vCURRENT_TAG == "Notification"){
			strMapURL = "web_reputation_notifications.htm";
		}  
		else if (vCURRENT_TAG == "Target") {			
			strMapURL = "config_web_reputation_target_settings.htm";
		}
	}
	/*else
	{
		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);
		}
		strMapURL = (winSubject.indexOf("SS") > 0) ? "configuring_scheduled_scan_web_reputation.htm" :
			"configuring_manual_scan__web_reputation.htm";		
	}*/
    jsMapOnlineHelp(strMapURL);
	
	
}
function jsshowToolTip(ttFrame,ttObject,ttWidth,ttHeight,ttTitle,ttContent){
		showToolTip(ttFrame,ttObject,ttWidth,ttHeight,ttTitle,ttContent);	
}
//-->
</script>
</head>

<body onLoad="jsInitPage();">
<form id="fmMain" name="fmMain" action="$$FORM_ACTION$$" method="POST">
<!--Hidden Field-->
<input type="hidden" name="FormAction">
<input type="hidden" id="ReturnValue" name="ReturnValue">
<input type="hidden" id="checkTakeActionToNoRating" name="checkTakeActionToNoRating" value="unchecked">
<input type="hidden" id="txtSSTaskName" name="txtSSTaskName" value="$$SS_TASK_NAME$$" />
<input type="hidden" id="txtSSTaskBehavior" name="txtSSTaskBehavior" value="$$SS_TASK_BEHAVIOR$$" />
<!--/Hidden Field-->
<!--Page Title-->
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="content-title" nowrap>$$WTP_CONTENT_TITLE$$</td>
	<td valign="bottom" align="right">
		<a href="javascript:jsOpenOnlineHelp();" class="moretestblue">
		<img src="images/question.gif" border="0"> Help</a></td></tr>
<tr><td colspan="2" height="4"></td></tr>
<tr><td colspan="2" height="1" background="images/dot.gif"></td></tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<!--/Page Title-->

<table width="98%" border="0" cellpadding="0" cellspacing="0">
<!--Page Description-->
$$SECTION_BEGIN$$
<tr><td><table border="0" cellpadding="0" cellspacing="0">
		<tr id="Enable_WTP_4DOC"><td width="20"><input type=checkbox name="chkFileEnable" id="chkFileEnable" $$ID_PR_ANTI_SPAM_DISABLE$$ $$ENABLE_WEB_THREAT_DOC_PROTECTION$$></td>
		<td>Enable real-time Web Reputation for document</td>
		<tr id="Enable_WTP_4CONTENT"><td width="20"><input type=checkbox name="chkEnable" id="chkEnable" $$ID_PR_ANTI_SPAM_DISABLE$$ $$ENABLE_WEB_THREAT_CONTENT_PROTECTION$$></td>
		<td>Enable real-time Web Reputation for Web content</td>
		<tr height="10"><td></td></tr>
		</table>
		</td></tr>
$$SECTION_END$$
<!--/Page Description-->
<!--Page Content-->
<tr height="10"><td></td></tr>
<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: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:url(images/tab_inactive_background_cui.gif)" class="tabinactive" onClick="jsChangeTag('Action');"><a class="subnavselect" href="javascript:setUITagDisplay(2,3,STR_WTP_TAB_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:url(images/tab_inactive_background_cui.gif)" class="tabinactive" onClick="jsChangeTag('Notification');"><a class="subnavselect" href="javascript:setUITagDisplay(3,3,STR_WTP_TAB_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>
<!--TAG 1 : Target-->
<tr><td><table id="Tag1_items" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Default Scanning||-->
		<tr><td class="tableheadergreyS">Security Level</td></tr>
		<tr><td height="10"></td></tr>
		<tr><td><table border="0" cellpadding="0" cellspacing="0">
			<tr><td width="20" height="20" class="data1"><input type="radio" name="rdoSecurityLevel" id="rdoSecurityLevel_High" value="High" $$OPT_SECURITY_LEVEL_HIGH$$></td>
				<td width="60" class="data1">High:</td>
				<td class="data1">Checks URLs in SharePoint Web content and file that are verified threat sources, potentially unsafe, or source associated with spam.</td></tr>
			<tr><td height="20" class="data1"><input type="radio" name="rdoSecurityLevel" id="rdoSecurityLevel_Mid" value="Mid" $$OPT_SECURITY_LEVEL_MEDIUM$$></td>
				<td class="data1">Medium:</td>
				<td class="data1">Checks URLs in SharePoint Web content and file for verified threat sources or sources determined to be potentially unsafe.</td></tr>
			<tr><td height="20" class="data1"><input type="radio" name="rdoSecurityLevel" id="rdoSecurityLevel_Low" value="Low" $$OPT_SECURITY_LEVEL_LOW$$></td>
				<td class="data1">Low:</td>
				<td class="data1">Checks URLs in SharePoint Web content and file to determine whether they are verified threat sources.</td></tr>
				
			</table></td></tr>
        <tr><td><table  border="0" cellpadding="0" cellspacing="0" style="display:$$WTP_TOOLTIP_DISPLAY$$">
		<tr height="10"><td>&nbsp;</td></tr>
		<tr>
	    <td style="padding:10px 5px">Current web reputation source settings restrict the Security Level to Low. To enable a higher level of security, unselect <b>Do not make external queries to Smart Protection Network</b>, or select <b>Smart Protection Network</b> on the
		<a href="$$SCAN_METHOD_SETTING_PATH$$">Smart Protection > Scan Service Settings</a> screen.
		</td></tr>
		<tr height="10"><td>&nbsp;</td></tr>
        </table>
        </td></tr>
		<tr><td height="10"></td></tr>
		<tr><td height="1" background="images/dot.gif"></td></tr>
		<tr><td height="10"></td></tr>
		<tr><td height="20" class="data1">If you believe a URL is misclassified, please use the following link to notify Trend Micro:</td></tr>
		<tr><td height="20" class="data1"><table border="0" cellpadding="0" cellspacing="0"><tr><td><img src="images/arrow_icons_red.gif"></td>
			<td ><a href="https://global.sitesafety.trendmicro.com" target="_blank">https://global.sitesafety.trendmicro.com</a></td></tr></table></td></tr>
 <tr><td width="100%" class="tableheadergreyE">Approved URL List</td></tr>
        <tr><td><table width="100%" border="0" cellpadding="0" cellspacing="2" style="margin:6px 0">
            <tr>
                <td width="20"><input type="checkbox" name="chkEnableAppURL" id="chkEnableAppURL" $$ENABLE_APPROVED_LIST$$ /></td>
                <td nowrap="nowrap"> <label for="enable_approved">Enable approved URL list</label></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <!-- url input field -->
                <td nowrap="nowrap" valign="top" style="padding-top:18px">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="200" nowrap="nowrap">Enter approved URL:</td>
                        <td width="100%">&nbsp;</td>
                    </tr>
                    <tr>
                        <td><input type="text" class="button" name="txtAppURL" id="txtAppURL" value="" size="45" /></td>
                        <td><input type="button" class="button" name="btnAddURL" id="btnAddURL" value="Add &gt;&gt;" style="width:100px;" onClick="jsAddAppURL(fmMain.stApprovedURL,document.getElementById('tabApprovedURL'),null,false);" /></td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap">Note: This will approve all subsites.</td>
                        <td></td>
                    </tr>
                    </table>
                </td>
                
                <!-- approved list -->
                <td width="100%" style="padding-right:6px">
                    <div style="width:240px;height:1px;"><img src="images/1space.gif" /></div>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
                        <tr>
                            <td class="data2" height="25">
                                <a class="databutton" href="javascript:jsRemoveAppURL(fmMain.stApprovedURL,document.getElementById('tabApprovedURL'));" ><img id="Import_icon" class="vAlignMid" src="images/icon_delete.gif" />Delete</a>
                                <a class="databutton" href="javascript:jsImport();" ><img id="Import_icon" class="vAlignMid" src="images/icon_import.gif" />Import</a>
                                 <a class="databutton" href="javascript:jsExport();"><img id="Export_icon" class="vAlignMid" src="images/icon_export.gif" />Export</a>
                            </td>
                        </tr>
                        <tr>
                            <td class="grey2-end" height="22">
                                <a href="javascript:jsSort();" id="btn_sort">Approved URL <img id="AppURLSort_icon" src="images/arrow_down.gif" class="vAlignMid"></a>
                            </td>
                        </tr>
                  
                        <tr><td>	    
                       <table width="100%" height="98%" border="0" cellpadding="0" cellspacing="0" >
						<tr><td><div id="divAppURLL" style="width:100%;height:240px;overflow:auto">
						          <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
						             <tr>
								         <td valign="top" width="100%" style="padding-top:1;padding-left:1">
								            <div id="divAppURLList" style="position:relative;overflow:hidden;width:100%">								         
								                 <select class="urlpick_menu" id="stApprovedURL" name="stApprovedURL"  style="display:none;font-size:10px;" multiple>$$APPROVED_LIST_ENTRIES$$</select>
								            </div>
								         </td>
								     </tr>
								  </table>
							   </div>
							 </td>
						 </tr>
						</table></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table></td></tr>
		<tr><td height="10"></td></tr>
		</table>
<!--TAG 2 : Action-->
		<table id="Tag2_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		<!--||Action||-->
		<tr><td colspan="2" class="tableheadergreyS">Action Settings</td></tr>
		<tr><td height="10"></td></tr>
		<tr><td><table border="0" cellpadding="0" cellspacing="0">
		<tr><td width="20"></td>
		<td></td></tr></table>
		</td></tr>
		<tr id="trRealTimeAction"><td><table border="0" cellpadding="0" cellspacing="0">
			<tr><td class="data1"><input type="radio" id="rdoDeliverAct_Delete_all" name="rdoActionType" value="DELETE_ALL" $$OPT_ACTION_DELETE_ALL$$ onClick="jsUIDependency();"></td>
				<td class="data1" nowrap>Block</td></tr>
			<tr><td class="data1"><input type="radio" id="rdoDeliverAct_Tag_and_deliver" name="rdoActionType" value="PASS" $$OPT_ACTION_PASS$$ onClick="jsUIDependency();"></td>
				<td class="data1" nowrap>Pass</td></tr>
			</table></td></tr>
        <tr id="trUniqueAction" ><td style="padding-left:6px;padding-top:3px;padding-bottom:2px;">Pass and log</td></tr>
		<tr><td height="10"></td></tr>
		
	
		<tr><td><b>&nbsp;&nbsp;AND</b></td></tr>
		<tr><td height="10"></td></tr>
		<tr><td><table border="0" cellpadding="0" cellspacing="0">
		    <tr><td width="20" class="data1"><input type="radio" id="rdoNotify_yes" name="rdoActionNotify" value="notify_enable" $$OPT_NOTIFY_ENABLE$$/></td>
		        <td class="data1">Notify</td></tr>
		    <tr><td width="20" class="data1"><input type="radio" id="rdoNotify_no" name="rdoActionNotify" value="notify_disable" $$OPT_NOTIFY_DISABLE$$/></td>
		        <td class="data1">Do not Notify</td></tr>
		    </table></td></tr>
		<tr><td height="10"></td></tr>
        <tr><td colspan="2" class="tableheadergreyM">Advanced Options</td></tr>
        <tr><td>
        	<table><tr><td width="20" class="data1"><input type=checkbox name="chkEnableTakeActionToNoRating" id="chkEnableTakeActionToNoRating" $$ENABLE_ACTION_TO_NO_RATING$$></td>
		        <td class="data1">Take action on URLs that have not been assessed by Trend Micro
		            <img src="images/info_mark.gif" style="cursor:pointer;position:relative" onMouseOut="hideToolTip('ifmToolTip');" 
						onmouseover="showToolTip('ifmToolTip',this,300,105,TIP_UNASSESSEDURL_TITLE,TIP_UNASSESSEDURL_CONTENT);"></td></tr></table></td></tr>
		<!--<tr><td colspan="2" class="tableheaderM">Advanced Options </td></tr>
		<tr><td class="tableheadergreyS">
		    <a colspan="2" href="javascript:setUIMoreDisplay(document.getElementById('tabDirectory'));" class="tableheaderlink" id="tabDirectory"> 
		    <img id="tabDirectory_icon" src="images/more_down_out.gif" border="0">
		    Quarantine Settings
		    </a>
		    </td></tr>
		<tr id="tabDirectory_items" style="display:none"><td>
		    <table width="100%" border="0" cellpadding="0" cellspacing="2">
				    <tr><td width="150">Quarantine directory:</td>
				        <td><input type=text class="text" name="txtQuarantineDir" value="$$QUARANTINE_PATH$$" style="width:95%"></td></tr>
		    </table></td></tr>
		<tr><td height="10"></td></tr>-->
		</table>
<!--TAG 3 : Notification-->
		<table id="Tag3_items" style="display:none" width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
		$$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();"></td></tr>
<!--/Button-->
</table>
</form>

<form action="$$EXPORT_APPROVED_LIST_PAGE$$" method="POST" id="fmExport" name="fmExport" target="iFrameForExportAppList">
<input type=hidden name="approved_list">
</form>

<iframe id="iFrameForExportAppList" name="iFrameForExportAppList" src="html/UntitledFrame-1.htm" frameborder="0" style="width:0;height:0"></iframe>
<iframe id="ifmToolTip" name="ifmToolTip" src="html/ToolTip.htm" frameborder="0" style="z-index:10000;position:absolute;width:0;height:0;overflow:hidden"/>
</body>
</html>
