<HTML>

<%@page info="NewF" language="java" pageEncoding="utf-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
<%@include file="/uwc/js/resourceBundleUtils.js"%>

<jato:useViewBean className="com.sun.uwc.NewFViewBean">
<% String mode = (String)request.getAttribute("New"); %>
<html>
<head>
<title><%= getLocalizedLabel(session,"uwc-mail-options-sieve-newfilter-title","SunONE Affinity - Options - Mail") %></title>

<SCRIPT language="JavaScript" src="../uwc/js/scripts.js"></SCRIPT>
<SCRIPT src="../uwc/js/browserVersion.js" type="text/javascript"></SCRIPT>
<SCRIPT src="../uwc/js/uwcUtils.js" type="text/javascript"></SCRIPT>

<script language="Javascript">

  if (is_ie5up) // IE5
  {
   document.write("<LINK href=<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="skinModel" lookInSession="true" name="Style-Sheet-IE" defaultValue="../uwc/css/css_ie5win.css"/> type=text/css rel=stylesheet>") 
  }
  else if (is_gecko) // Netscape 6/7 or Mozilla
  {
  document.write("<LINK href=<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="skinModel" lookInSession="true" name="Style-Sheet-NN" defaultValue="../uwc/css/css_ns6up.css"/> type=text/css rel=stylesheet>") 
  }
  else  // All others
  {
  document.write("<LINK href=<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="skinModel" lookInSession="true" name="Style-Sheet-NN" defaultValue="../uwc/css/css_ns6up.css"/> type=text/css rel=stylesheet>") 
  }

</script>

<script language="JavaScript">

//get folder list
var mobileFwdChecked = false;

function handleFolderDropDown(ind) {
   var fdropdown = document.NewF.folderDropDown;
   var fldr_ind = fdropdown.options[ind].value;
   if(fldr_ind < 0) {
    UWCAlert('<%= getLocalizedLabel(session,"uwc-mail-options-invalid-folder-selected-prompt","Please select a valid file-to folder.") %>');
    return false;
   }

   var fldr_name = parent.mailcfg.cfgFrame.mbox[fldr_ind].name;
   document.NewF["NewF.fileFolderAction"].checked = true;
   document.NewF["NewF.selFolder"].value = fldr_name;
}

function trim(str) {
  var i=0;

  while(i < str.length && str.charAt(i) == ' ')
    i++;
  if(i==str.length) {
    return "";
  }

  var j=str.length-1;
  while(j >= 0 && str.charAt(j) == ' ')
    j--;

  return str.substr(i,j-i+1);
}

function validateData() {
   var frm = document.forms[0].elements;
   var filtName = frm["NewF.filterName"].value;

   // validating filter name
   filtName = trim(filtName);
   if(!filtName || filtName.length == 0) {
     UWCAlert('<%= getLocalizedLabel(session,"uwc-mail-options-invalid-filter-name-prompt","Please enter a valid filter name.") %>');
     return false;
   }

   frm["NewF.filterName"].value = filtName;
   if(!frm["NewF.fileFolderAction"].checked && 
      !frm["NewF.keepCopy1"].checked &&     
      !frm["NewF.fwdEmailAction"].checked && 
      !frm["NewF.keepCopy2"].checked &&
      !frm["NewF.discardAction"].checked &&
      !mobileFwdChecked) 
   {
     UWCAlert('<%= getLocalizedLabel(session,"uwc-mail-options-no-action-selected-prompt","Please select atleast one action.") %>');
     return false;   
   }   

   if(frm["NewF.fileFolderAction"].checked)
   {     
     var fdropdown = document.NewF.folderDropDown;
     var fldr_ind = fdropdown.options[fdropdown.selectedIndex].value;
     if(fldr_ind < 0) {
       UWCAlert('<%= getLocalizedLabel(session,"uwc-mail-options-invalid-folder-selected-prompt","Please select a valid file-to folder.") %>');
       return false;
     }
   }

   if(frm["NewF.fwdEmailAction"].checked) {
     var emailAddr = frm["NewF.emailAddr"].value;
     if(emailAddr == null || emailAddr.length == 0 ||
         !parent.mailcfg.isvalidemailaddress(emailAddr)) 
     {
       UWCAlert('<%= getLocalizedLabel(session,"uwc-mail-error-invalid-email","Invalid Email Address !") %>');
       return false;
     }
   }

   return true;
}

function init() {

  var fldr = document.NewF["NewF.selFolder"].value;
  if(fldr) {
     var folderl = document.NewF.folderDropDown;
     for(var i=0;i < folderl.options.length;i++) {
        var fldr_ind = folderl.options[i].value;
        if(fldr_ind >= 0) {
           var tmp = parent.mailcfg.cfgFrame.mbox[fldr_ind].name;
           if(fldr == tmp) {
              folderl.selectedIndex = i;
           }
        }
     }
  }

 var rad = document.NewF["NewF.radioIndex"].value;
 if(rad == 2)
   checkHeaderRadio();
 else {
   var frm = document.forms[0].elements;
   frm["NewF.conditionSelect"][rad].checked = true;
 }

 mobileFwdChecked = false;
}

function checkHeaderRadio() {
  var frm = document.forms[0].elements
  var hdr_radio

  if(frm["NewF.conditionSelect"][1].value == 'HEADER') {
    hdr_radio = frm["NewF.conditionSelect"][1]
  }
  else
    hdr_radio = frm["NewF.conditionSelect"][2]
  hdr_radio.checked = true
}

var advCondTitle, advActTitle, invalidMsgSizePrompt, invalidMobileFwdPrompt;
function openAdvancedConditions() {
  checkHeaderRadio();
  advCondTitle = '<%= getLocalizedLabel(session,"uwc-mail-options-advfiltercondition-page-title","Sun&#153;ONE WebMail - Advanced Mail Filter Conditions") %>';
  invalidMsgSizePrompt = '<%= getLocalizedLabel(session,"uwc-mail-options-advfiltercondition-invalid-msgsize-prompt","Invalid message size. Please re-enter.") %>';
  window.open("<%=getContextURI(request)%>/base/AdvFilterConditionMain", 
          "advancedConditions", "height=400,width=650,titlebar=yes,resizable=yes,scrollbars=yes");
}

function openAdvancedActions() {
  advActTitle = '<%= getLocalizedLabel(session,"uwc-mail-options-advfilteraction-page-title","Sun&#153;ONE WebMail - Advanced Mail Filter Actions") %>';
  invalidMobileFwdPrompt = '<%= getLocalizedLabel(session,"uwc-mail-options-advfilteraction-invalid-fwdmobile-prompt","Invalid mobile address. Please re-enter.") %>';
  window.open("<%=getContextURI(request)%>/base/AdvFilterActionMain",
              "advancedActions", "height=250,width=650,titlebar=yes,resizable=yes,scrollbars=yes");
}

function generateFolderDropDown() {
  
  var s;
  share = parent.mailcfg.cfgFrame;
  s = parent.mailcfg.folderSelection('folderDropDown','handleFolderDropDown(selectedIndex);', null,null,null,null,share);
  
  return s
}


</script>

</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="Page" onLoad="init();">

<!-- Pagelet for branding -->
   <jato:containerView name="MasterHead">
       <%@include file="/uwc/common/MasterHeadNormal.jsp"%>
   </jato:containerView> 
   
<!-- JSP include for application toolbar -->
   <%@include file="/uwc/common/OptionsApplBarPagelet.jsp"%>

<!-- Second Level of Tabs -->
<div class="Tab2">
<TABLE border="0" cellspacing="0" cellpadding="0" class="Tab2Tbl" width="100%" summary="Table that contains the Calendar View Tabs">
  <tr> 
    <td colspan="13"><img src="../uwc/images/spacer.gif" width="1" height="10" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td colspan="5" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="5"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
  </tr>
  <tr>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2NotSel">
        <div class="Tab2NotSel"><a title='<%= getLocalizedLabel(session, "uwc-common-tooltip-global", "Global Options")%>' href="<%= getContextURI(request) %>/base/UserPreferencesSettings" class="TabLblNormal" onMouseOver="status='Global Options'; return true;" onMouseOut="status=';'" target="_parent"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-global" defaultValue="Global" escape="false" /></a>
        </div>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td class="Tab2Sel"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2Sel">
      <DIV class="Tab2Sel"><SPAN class="TabLblSel" title='<%= getLocalizedLabel(session, "uwc-common-tooltip-mail", "Mail Options")%>'><%= getLocalizedLabel(session, "uwc-common-mail", "Mail")%></span></div>
    </td>
    <td class="Tab2Sel"><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
<jato:content name="CalendarTab">
      <td nowrap><div class="Tab2NotSel"><A title='<%= getLocalizedLabel(session, "uwc-common-tooltip-calendar", "Calendar Options")%>' href="<%= getContextURI(request) %>/base/CalendarPreferences" class="TabLblNormal" onMouseOver="status='Calendar Options'; return true;" onMouseOut="status=';'" target="_parent"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-calendar" defaultValue="Calendar" escape="false" /></a></div></td>
      <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
</jato:content>
     <td width="90%">
      <div class="Tab2NotSel"><A title='<%= getLocalizedLabel(session, "uwc-common-tooltip-addressbook", "Address Book Options")%>' href="<%= getContextURI(request) %>/base/ABPreferences" class="TabLblNormal" onMouseOver="status='Address Book Options'; return true;" onMouseOut="status=';'" target="_parent"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-addressbook" defaultValue="Address Book" escape="false" /></a></div>
     </td>
  </tr>
  <tr>
    <td class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="3" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="3" class="Tab2Sel"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
    <td colspan="5" class="Tab2LineBkgd"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
  </tr>
</table>
</div>
<!-- Third Level of Tabs -->
<div class="Tab3">
<table class="Tab3Tbl" width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tr>
    <td><img src="../uwc/images/spacer.gif" width=1 height=10 alt=""></td>
  </tr>
</table>
<table class="Tab3Tbl" border="0" cellspacing="0" cellpadding="0" title="">
  <tr>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
      <td>
      <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesPersonal" class="TabLblNormal" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-personal" defaultValue="Personal Information" escape="false" />"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-personal" defaultValue="Personal Information" escape="false" /></a></div>
       </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
    <td>
    <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesSettings" class="TabLblNormal" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-settings" defaultValue="Settings" escape="false" />"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-settings" defaultValue="Settings" escape="false" /></a></div>
      </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
    <td>
     <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesLayout" class="TabLblNormal" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-layout" defaultValue="Layout" escape="false" />"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-layout" defaultValue="Layout" escape="false" /></a></div>
    </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
     <td>
      <div class="Tab3"><a href="<%= getContextURI(request) %>/base/MailPreferencesVacation" class="TabLblNormal" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-vacation" defaultValue="Vacation Message" escape="false" />"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-vacation" defaultValue="Vacation Message" escape="false" /></a></div>
    </td>
    <td><img src="../uwc/images/dividerbar.gif" alt=""></td>
     <td>
      <div class="Tab3"><span class="TabLblSel" title="<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-tooltip-seieve" defaultValue="Mail Filters" escape="false" />"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-options-sieve" defaultValue="Mail Filters" escape="false" /></span></div>
    </td>
  </tr>
</table>
</div>

<!-- Error information pagelet -->
   <jato:containerView name="errorPlugin">
      <%@include file="/uwc/common/error.jsp"%>
   </jato:containerView>

<jato:form name="NewF" method="post">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD colspan="4"><IMG src="../uwc/images/spacer.gif" width="1" height="15" alt=""></TD>
  </TR>
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
      <TD width="100%"><SPAN class="TtlTxt">
       <% if( mode != null ) { %>
           <%= getLocalizedLabel(session,"uwc-mail-options-newfilter-page-heading","New Mail Filter") %>
       <% } else { %>
           <%= getLocalizedLabel(session,"uwc-mail-options-editfilter-page-heading","Edit Mail Filter") %>
       <% } %>
       </SPAN></TD>
      <TD align="right" nowrap> 
       <jato:button name="saveTop" styleClass="Btn1" onClick="return validateData();" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" extraHtml='<%= getTitleForExtraHtml(session, "uwc-common-save", "Save") %>' tabIndex="24"/>
       <jato:button name="cancelTop" styleClass="Btn2" onMouseOver="if (this.disabled==0) this.className='Btn2Hov'" onFocus="if (this.disabled==0) this.className='Btn2Hov'" onMouseOut="if (this.disabled==0) this.className='Btn2'" onBlur="if (this.disabled==0) this.className='Btn2'" extraHtml='<%= getTitleForExtraHtml(session, "uwc-common-cancel", "Cancel") %>' tabIndex="25"/>
    </TD>
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Horizontal Top/Bottom of Page Line -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
    <TD class="TtlLin" width="100%"><IMG src="../uwc/images/spacer.gif" width="1" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Form Input for Filter Name and Status -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tr> 
    <td colspan="2"><IMG src="../uwc/images/spacer.gif" width="1" height="15" alt=""></td>
  </tr>
  <tr> 
    <td><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td width="100%"> 
      <table border="0" cellspacing="0" cellpadding="2" title="">
        <tr> 
          <td class="PropLabel"><span class="Lbl2"><label for="filterName"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-nameLabel","Filter Name:") %></label></span></td>
          <td class="PropInput">
            <jato:textField name="filterName" size="50" tabIndex="1"/>
          </td>
        </tr>
        <tr> 
          <td class="PropLabel"><span class="Lbl2"><label for="filterStatus"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-statusLabel","Status:") %></label></span></td>
          <td class="PropInput">
            <jato:listbox name="filterStatus" tabIndex="2"/>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- Section Title and 5px Horizontal Divider -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" title="">
    <tr> 
      <td colspan="3"><img src="../uwc/images/spacer.gif" width="1" height="20" alt=""></td>
    </tr>
    <tr> 
      <td><img src="../uwc/images/spacer.gif" width="10" height="5" alt=""></td>
      <td class="SectionDivider" width="100%"><img src="../uwc/images/spacer.gif" width="1" height="5" alt=""></td>
      <td><img src="../uwc/images/spacer.gif" width="10" height="5" alt=""></td>
    </tr>
    <tr> 
      <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
      <td class="SectionHeader"><span class="SectionHeader"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-for-incoming-mesg-label","For Incoming Messages") %></span></td>
      <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    </tr>
  </table>
<!-- Form Input section for Filter Conditions -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tr> 
    <td><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td width="100%"> 
      <table border="0" cellspacing="0" cellpadding="0" title="">
        <tr> 
          <td class="PropInput">
            <input type="radio" name="NewF.conditionSelect" id="conditionSelect1" value="ALL" tabindex="3">
          </td>
          <td class="PropInputMail"><label for="conditionSelect1"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-match-all-mesg-label","Match all incoming messages") %></label></td>
        </tr>
        <jato:content name="spamDetect">
        <tr> 
          <td class="PropInput">
            <input type="radio" name="NewF.conditionSelect" id="conditionSelect2" value="SPAM" tabindex="4">
          </td>
          <td class="PropInputMail"><label for="conditionSelect2"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-match-spam-mesg-label","Match messages identified by the server as spam") %></label></td>
        </tr>
        </jato:content>
        <tr> 
          <td class="PropInput">
            <input type="radio" name="NewF.conditionSelect" id="conditionSelect3" value="HEADER" tabindex="5">
          </td>
          <td class="PropInputMail"><label for="conditionSelect3"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-match-word","Match") %>
             <jato:listbox name="anyallSelect" tabIndex="6" onChange="checkHeaderRadio();"/>
            <%= getLocalizedLabel(session,"uwc-mail-options-newfilter-following-condition-text","of the following conditions:") %></label></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td> 
            <table border="0" cellspacing="0" cellpadding="0" title="">
              <tr> 
                <td class="PropLabel"><span class="Lbl2"><label for="NewF.oprSender"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-sender-label","Sender:") %></label></span></td>
                <td class="PropInput">
                   <jato:listbox name="oprSender" tabIndex="7" onChange="checkHeaderRadio();"/>
                  <jato:textField name="senderText" size="25" tabIndex="8" onChange="checkHeaderRadio();"/>
                </td>
              </tr>
              <tr> 
                <td class="PropLabel"><span class="Lbl2"><label for="NewF.oprRecipient"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-recipient-label","Recipient:") %></label></span></td>
                <td class="PropInput">
                  <jato:listbox name="oprRecip" tabIndex="9" onChange="checkHeaderRadio();"/>
                  <jato:textField name="recipientText" size="25" tabIndex="10" onChange="checkHeaderRadio();"/>
                </td>
              </tr>
              <tr> 
                <td class="PropLabel"><span class="Lbl2"><label for="NewF.oprSubject"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-subject-label","Subject:") %></label></span></td>
                <td class="PropInput">
                  <jato:listbox name="oprSubject" tabIndex="11" onChange="checkHeaderRadio();"/>
                  <jato:textField name="subjectText" size="25" tabIndex="12" onChange="checkHeaderRadio();"/>
                </td>
              </tr>
              <tr> 
                <td colspan="2"><IMG src="../uwc/images/spacer.gif" width="1" height="6" alt=""></td>
              </tr>
              <tr> 
                <td class="PropLabel" colspan="2">
                  <jato:button name="advCond" styleClass="Btn1" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" onClick="openAdvancedConditions();return false;" extraHtml='<%= getTitleForExtraHtml(session, "uwc-mail-options-advfiltercondition-page-title", "Advanced Mail Filter Conditions") %>' tabIndex="13"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
    <td><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
</table>
<!-- Section Title and 5px Horizontal Divider -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tr> 
    <td colspan="3"><img src="/../uwc/images/spacer.gif" width="1" height="20" alt=""></td>
  </tr>
  <tr> 
    <td><img src="../uwc/images/spacer.gif" width="10" height="5" alt=""></td>
    <td class="SectionDivider" width="100%"><img src="../uwc/images/spacer.gif" width="1" ></td>
        <td><img src="../uwc/images/spacer.gif" width="10" height="5" alt=""></td>
  </tr>
  <tr> 
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td class="SectionHeader" ><span class="SectionHeader"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-applymsgaction-label","Apply Message Actions") %></span></td>
    <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
</table>
<!-- Form Input section for Filter Actions -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <tr> 
    <td><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
    <td width="100%"> 
      <table border="0" cellspacing="0" cellpadding="0" title="">
        <tr> 
          <td class="PropInput">
            <jato:checkbox name="fileFolderAction" elementId="actionSelect1" tabIndex="14"/>
          </td>
          <td class="PropInputMail" nowrap><label for="actionSelect1"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-filefolderaction-label","File message to folder: ") %></label> 
             <script>
                 document.write(generateFolderDropDown());
                 document.NewF.folderDropDown.tabindex = "15";
             </script>

          </td>
        </tr>
        <tr> 
          <td class="PropCheckBoxLvl2">&nbsp;</td>
          <td class="PropCheckBoxLvl2" nowrap>
            <jato:checkbox name="keepCopy1" elementId="keepCopy1" tabIndex="16"/>
            <label for="keepCopy1"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-keepaction-label","Keep a copy in Inbox.") %></label></td>
        </tr>
        <tr> 
          <td class="PropInput" align="top">
            <jato:checkbox name="fwdEmailAction" elementId="actionSelect2" tabIndex="17"/>
          </td>
          <td class="PropInput" nowrap><label for="actionSelect2"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-fwdemailaction-label","Forward to email address: ") %></label> 
            <jato:textField name="emailAddr" elementId="emailAddr" tabIndex="18"/>
            <label for="emailAddr"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-emailrule-text"," (One email address may be entered.)") %></label></td>
        </tr>
        <tr> 
          <td class="PropCheckBoxLvl2">&nbsp;</td>
          <td class="PropCheckBoxLvl2" nowrap>
            <jato:checkbox name="keepCopy2" elementId="keepCopy2" tabIndex="19"/>
            <label for="keepCopy2"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-keepaction-label","Keep a copy in Inbox.") %></label></div></td>
        </tr>
        <tr> 
          <td class="PropInput">
            <jato:checkbox name="discardAction" elementId="actionSelect3" tabIndex="20"/>
          </td>
          <td class="PropInput" nowrap><label for="actionSelect3"><%= getLocalizedLabel(session,"uwc-mail-options-newfilter-discardaction-label","Discard message") %></label></td>
        </tr>
        <tr> 
          <td colspan="2"><IMG src="../uwc/images/spacer.gif" width="1" height="6" alt=""></td>
        </tr>
        <tr> 
          <td class="PropLabel" colspan="2">
            <jato:button name="advAct" styleClass="Btn1" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" onClick="openAdvancedActions();return false;" extraHtml='<%= getTitleForExtraHtml(session, "uwc-mail-options-advfilteraction-page-title", "Advanced Mail Filter Actions") %>' tabIndex="21"/>
          </td>
        </tr>
      </table>
    </td>
    <td><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
  </tr>
</table>
<!-- Spacer -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="1" height="20" alt=""></TD>
  </TR>
</TABLE>
<!-- Horizontal Top/Bottom of Page Line -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
    <TD class="TtlLin" width="100%"><IMG src="../uwc/images/spacer.gif" width="1" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Bottom of Page Buttons -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD colspan="3"><IMG src="../uwc/images/spacer.gif" width="1" height="5" alt=""></TD>
  </TR>
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
    <TD align="right" width="100%"> 
        <jato:button name="saveBottom" styleClass="Btn1" onClick="return validateData();" onFocus="if (this.disabled==0) this.className='Btn1Hov'" onMouseOver="if (this.disabled==0) this.className='Btn1Hov'" onMouseOut="if (this.disabled==0) this.className='Btn1'" onBlur="if (this.disabled==0) this.className='Btn1'" extraHtml='<%= getTitleForExtraHtml(session, "uwc-common-save", " Save ") %>' tabIndex="22"/>
        <jato:button name="cancelBottom" styleClass="Btn2" onMouseOver="if (this.disabled==0) this.className='Btn2Hov'" onFocus="if (this.disabled==0) this.className='Btn2Hov'" onMouseOut="if (this.disabled==0) this.className='Btn2'" onBlur="if (this.disabled==0) this.className='Btn2'" extraHtml='<%= getTitleForExtraHtml(session, "uwc-common-cancel", "Cancel") %>' tabIndex="23"/>
      </TD>
    <TD><IMG src="../uwc/images/spacer.gif" width="10" height="1" alt=""></TD>
  </TR>
</TABLE>
<!-- Spacer -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" title="">
  <TR> 
    <TD><IMG src="../uwc/images/spacer.gif" width="1" height="20" alt=""></TD>
  </TR>
</TABLE>

<jato:hidden name="selFolder"/>

<jato:hidden name="radioIndex"/>
<jato:hidden name="displayDupAlert"/>
</jato:form>

</body>
</html>

</jato:useViewBean>

</HTML>
