<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="RecordBody">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Mail Settings</title>
		<link rel="stylesheet" href="../../../theme/css/censusmain.css" type="text/css"/>
		<link rel="stylesheet" href="../../../theme/css/grid.css" type="text/css"/>
		<script type="text/javascript" src="../../../js/mqsysutils.js"></script>
		<script type="text/javascript" src="../../../js/htmllistutils.js"></script>
		<script type="text/javascript" src="../../../js/window.js"></script>
		<script type="text/javascript" src="../../../js/cmqsysmsg.js" ></script>
		<script type="text/javascript" src="../../../js/cmqhttprequest.js"></script>
		<script type="text/javascript" src="../../../js/mqlist.js"></script>
		<script type="text/javascript" src="../../../js/mqformelements.js"></script>
		<script type="text/javascript">
			//he should always define this object for the system messages
			var objSysMsg = new CMqSysMsg;
			var m_objMqButton=new MqButton();
			var m_objGroupList=new CMqFormElement();
			var m_objIntegrationList=new CMqFormElement();
			var m_arrIntegrations = new Array();
			var m_strCurrentLocation=g_MqRef.MqFS.GetCurrentLocation(window);
			var m_objMqStr=g_MqRef.MqStr;
			var TOOLTIP_HOSTNAME= "The hostname or IP address of the SMTP server. <br /><br /> Example: <br />smtp.mycompany.com";
			var TOOLTIP_PORT =  "The port through which the SMTP server communicates.  The default SMTP server port is 25. If SSL is enabled, another port is typically used. The default SMTP SSL server port is 465.";
			var TOOLTIP_PASSWORD = "The password for logging into the SMTP server. Use this only if your SMTP server requires authentication.";
			var TOOLTIP_LOGON = "The logon account used to gain access to the SMTP server. Use this only if your SMTP server requires authentication.";
			var TOOLTIP_NOTIFICATION_RETRIES = "The maximum number of retries for e-mail notifications. Once surpassed, the e-mail will be sent to the address specified in the Send Invalid Notifcations option.";
			var TOOLTIP_NOTIFICATION_INVALID = "If the Maximum Retries is surpassed, the e-mail will be sent to this address. If there is no address specified, the e-mail service will continue trying to send to the original recipient.";
			var TOOLTIP_SERVER_MAIL_SENDER = "Name of the sender for SMTP  e-mail. Some SMTP mail servers require the sender to be a valid e-mail address. <br/><br/> Supported Formats: <br />\"Notification Service\"&lt;notificationservice@company.com&gt;<br /> notificationservice@yourcompany.com";
			var TOOLTIP_SERVER_MAIL_INTERVAL = "Send e-mail notifications at the specified interval (in minutes).";
			var TOOLTIP_MAIL_CHECK_INTERVAL = "Check for new incoming e-mails at the specified interval. (Integrations)";
			var TOOLTIP_RECEIPT = "Read receipts will appear in the conversation, confirming that the recipient has read the message. Note, however, that some recipients may choose to never send read receipts.";
			var TOOLTIP_SSL = "Enable this option if the SMTP Server requires an encrypted connection (SSL).";
			var PASSWORD_PLACEHOLDER = "********";
			var objUsrMgrAdminRefs;
			var m_objHTTPrequest;

			var DELIM="$|$";
			var EQUAL = "=";
			var CSS_UNIT_PIXELS = "px";
			
			var SETTING_ID_SERVER_NAME = 4;
			var SETTING_ID_INTEGRATION_MAIL_CHECK_INTERVAL = 11;
			var SETTING_ID_SERVER_MAIL_SENDER = 201;
			var SETTING_ID_SERVER_MAIL_INTERVAL = 202;
			var SETTING_ID_SMTP_PORT = 206;
			var SETTING_ID_MAX_NOTIFICATION_RETRIES = 207;
			var SETTING_ID_INVALID_NOTIFICATION_CONTACT = 208;
			var SETTING_ID_SMTP_USER = 209;
			var SETTING_ID_SMTP_PASSWORD = 210;
			var SETTING_ID_REQUEST_READ_RECEIPT = 213;
			var SETTING_ID_SMTP_SSL_ENABLED = 402;
			
			var MAIL_OPTION_PREFIX = "OMO_";
			
			var IFRAME_TOOLTIP_ID = "ifrTooltip";
			
			var m_objRef;
			
		  if(parent){
				m_objRef=parent;
		  }
		
			if(parent){
				if(parent.parent){
					objUsrMgrAdminRefs=parent.parent;
				}
			}
			if(objUsrMgrAdminRefs){			
				if(objUsrMgrAdminRefs.objAdmin){
					m_objHTTPrequest=objUsrMgrAdminRefs.objAdmin.GetHTTPRequest();
				}
			}

		function KeyPressed(e)
		{
			if(!e){
				e = window.event;
			}
			if(typeof(e.keyCode)== 'number'){
					if(e.keyCode == 13){
						SetOptions();
					}
			}
		}
		
		function SetOptions()
		{
			var strPassword;
			var objServerName = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SERVER_NAME);
			var objServerMailSender = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SERVER_MAIL_SENDER);
			var objSMTPPort = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_PORT);
			var objSMTPUser = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_USER);
			var objSMTPPassword = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_PASSWORD);
			var objServerMailInterval = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SERVER_MAIL_INTERVAL);
			var objIntegrationMailCheckInterval = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_INTEGRATION_MAIL_CHECK_INTERVAL);
			var objRequestReadReceipt = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_REQUEST_READ_RECEIPT);
			var objMaxNotificationRetries = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_MAX_NOTIFICATION_RETRIES);
			var objInvalidNotificationContact = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_INVALID_NOTIFICATION_CONTACT);
			var objSMTPSSL = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_SSL_ENABLED);
			
			if(objSMTPPassword.value == PASSWORD_PLACEHOLDER){
				 strPassword = GetSMTPPassword();
			}else{
				strPassword = objSMTPPassword.value;
			}
			
			if(objServerName && objServerMailSender && objSMTPPort && objSMTPUser && objSMTPPassword && 
				objServerMailInterval && objIntegrationMailCheckInterval && objRequestReadReceipt && 
				objMaxNotificationRetries && objInvalidNotificationContact && objSMTPSSL){
			
			
				var strRecordInfo =  SETTING_ID_SERVER_NAME + EQUAL + m_objMqStr.PropStringEncode(objServerName.value) + DELIM +
												  SETTING_ID_SERVER_MAIL_SENDER + EQUAL + m_objMqStr.PropStringEncode(objServerMailSender.value) + DELIM +	
												  SETTING_ID_SERVER_MAIL_INTERVAL + EQUAL + m_objMqStr.PropStringEncode(objServerMailInterval.value) + DELIM +	
												  SETTING_ID_INTEGRATION_MAIL_CHECK_INTERVAL + EQUAL + m_objMqStr.PropStringEncode(objIntegrationMailCheckInterval.value) + DELIM +	
												  SETTING_ID_SMTP_PORT + EQUAL + m_objMqStr.PropStringEncode(objSMTPPort.value) + DELIM +	
												  SETTING_ID_SMTP_USER + EQUAL + m_objMqStr.PropStringEncode(objSMTPUser.value) + DELIM +
												  SETTING_ID_REQUEST_READ_RECEIPT + EQUAL + m_objMqStr.PropStringEncode(objRequestReadReceipt.value) + DELIM +
												  SETTING_ID_MAX_NOTIFICATION_RETRIES + EQUAL + m_objMqStr.PropStringEncode(objMaxNotificationRetries.value) + DELIM +
												  SETTING_ID_INVALID_NOTIFICATION_CONTACT + EQUAL + m_objMqStr.PropStringEncode(objInvalidNotificationContact.value) + DELIM +
												  SETTING_ID_SMTP_PASSWORD + EQUAL + m_objMqStr.PropStringEncode(strPassword)  + DELIM +
												  SETTING_ID_SMTP_SSL_ENABLED + EQUAL + m_objMqStr.PropStringEncode(objSMTPSSL.value);
				var co=m_objHTTPrequest.Get(m_strCurrentLocation + "WCMailInt.ASP?WCI=wciSaveOptions&RI=" +  m_objMqStr.MqEncodeURIComponent(strRecordInfo), true);
			
				if (co!=m_objHTTPrequest.CANCEL_PROCESS){		
					var objResponse=m_objHTTPrequest.Response(co);
					
					if (objResponse){
						if (objResponse.HasErrors()){
							objResponse.ProcessErrors("",true);
						}else{
							m_objMqButton.DisableButton("Apply");
						}
					}
				}		
			}
		}
		
		function GetSMTPPassword()
		{
			var lngProjectID= m_objRef.GetProjectID();
			var co=m_objRef.m_objHTTPrequest.Get(m_strCurrentLocation + "WCMailInt.ASP?WCI=wciGetSetting&SID=210", true);
			
			if (co!=m_objRef.m_objHTTPrequest.CANCEL_PROCESS){
				var objResponse=m_objRef.m_objHTTPrequest.Response(co);
				
				if (objResponse){
					if (objResponse.HasErrors()){
						objResponse.ProcessErrors("",true);
					}else{
						return co;
					 }
				 }
			}
		}
		
		function TestSMTP()
		{

			var objServerName = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SERVER_NAME);
			var objServerMailSender = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SERVER_MAIL_SENDER);
			var objSMTPPort = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_PORT);
			var objSMTPUser = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_USER);
			var objSMTPPassword = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_PASSWORD);
			var objSMTPSSL = document.getElementById(MAIL_OPTION_PREFIX + SETTING_ID_SMTP_SSL_ENABLED);
			
			if(objServerName && objServerMailSender && objSMTPPort && objSMTPUser && objSMTPPassword && objSMTPSSL){
				  
				  var strRecordInfo =  "&Sender=" + m_objMqStr.MqEncodeURIComponent(m_objMqStr.MqHtmlDecode(objServerMailSender.value,false)) + 	
																  "&Port=" + m_objMqStr.MqEncodeURIComponent(objSMTPPort.value) + 	
																  "&User=" + m_objMqStr.MqEncodeURIComponent(objSMTPUser.value) +
																  "&Server=" + m_objMqStr.MqEncodeURIComponent(objServerName.value) +
																  "&Pass=" + m_objMqStr.MqEncodeURIComponent(objSMTPPassword.value) + 
																  "&SSL=" + m_objMqStr.MqEncodeURIComponent(objSMTPSSL.value)
			}
		  
			OpenChildWindow("WCMailInt.asp?WCI=wciTestSMTPTmpl" + strRecordInfo ,"EditIntegration","scrollbars=yes,resizable=yes", true,500, 150, false);
		
		}
		
		function OnLoadBody()
		{
			var objTooltip = document.getElementById(IFRAME_TOOLTIP_ID);
			
			if(objTooltip){
				objTooltip.visibility = "hidden";
				objTooltip.style.display = "none";
				objTooltip.style.border = "darkblue 0px ridge";
				objTooltip.style.height = "0px";
			}
			
			m_objMqButton.DisableButton("Apply");
		}
		
		function EnableApply()
		{
			m_objMqButton.EnableButton("Apply");
		}
		
		function ShowTooltip(strTooltipText, strSpanName){
			var objFormElement=new CMqFormElement();	
			var objTooltip = document.getElementById(IFRAME_TOOLTIP_ID);
			var objSpan = document.getElementById(strSpanName);
			var lngWidthWithIFrame;
			var TOOLTIP_IFRAME_MAX_WIDTH = 325;
	
			if(objTooltip){
				strTooltipText = m_objMqStr.MqEncodeURIComponent(strTooltipText);
				
				objTooltip.style.width = TOOLTIP_IFRAME_MAX_WIDTH + CSS_UNIT_PIXELS;
				objTooltip.style.border = "darkblue 0px ridge";
				objTooltip.style.height = "0px";
				
				objTooltip.src="WCMailInt.asp?WCI=wciTooltip&Text=" + strTooltipText + "&Resize=1";
				
				if(objSpan){
					objSpan.style.cursor = "help";
					
					if(objSpan){
						if(objFormElement){
							var lngXPos = objFormElement.GetPosition(objSpan, true);
							var lngYPos = objFormElement.GetPosition(objSpan, false);
						}
					}
					
					objTooltip.style.left = lngXPos + CSS_UNIT_PIXELS;
					objTooltip.style.top = (lngYPos+25) + CSS_UNIT_PIXELS;
					
					lngWidthWithIFrame = (lngXPos + TOOLTIP_IFRAME_MAX_WIDTH);
					
					//Determine if the iframe will go beyond the X contraints:
					if(lngWidthWithIFrame > GetWinWidth()){
						lngXPos = lngXPos - (TOOLTIP_IFRAME_MAX_WIDTH - objSpan.offsetWidth);
					}else{
						objTooltip.style.width = TOOLTIP_IFRAME_MAX_WIDTH + CSS_UNIT_PIXELS;
					}
					
					objTooltip.style.top = (lngYPos +  objSpan.offsetHeight + 2) + CSS_UNIT_PIXELS;
					objTooltip.style.left = lngXPos + CSS_UNIT_PIXELS;
					objTooltip.style.visibility = "";
					objTooltip.style.display = "";
				}
			}
		} 
		
		function HideTooltip(strSpanName){
			var objTooltip = document.getElementById(IFRAME_TOOLTIP_ID);
			
			if(objTooltip){
				objTooltip.style.border = "darkblue 0px ridge";
				objTooltip.style.display = "none";
				objTooltip.style.visibility = "hidden";
				objTooltip.style.height = "0px";
			}

			document.getElementById(strSpanName).style.cursor = "";
		}
		
		function ResizeTooltip(lngWidth, lngHeight)
		{
			var objTooltip = document.getElementById(IFRAME_TOOLTIP_ID);
			
			if(objTooltip){
			
				objTooltip.style.width = lngWidth + CSS_UNIT_PIXELS;
				SetTooltipHeight(lngHeight);
				objTooltip.style.height = lngHeight;
				
				if(objTooltip.style.width != "0px" && objTooltip.style.height != "0px"){
					objTooltip.style.border = "darkblue 1px ridge";
				}
				objTooltip.style.visibility = "";
				objTooltip.style.display = "";
			}
		}

		function SetTooltipHeight(lngHeight)
		{
			if(lngHeight != null){
				var objTooltip = document.getElementById(IFRAME_TOOLTIP_ID);
				if(objTooltip){
					objTooltip.style.height=(parseInt(lngHeight)+3) + CSS_UNIT_PIXELS;
				}
			}
		}
		</script>
		<style type="text/css">
			iframe.Tooltip{
				width:0px;
				height:0px;
				border:darkblue 1px ridge;
				position:absolute;
				z-index: 2;
				border: 0px;
				margin: 0px;
			}
			
			table.Main{
				position:absolute;
				width:100%;
				height:97%;
				top:2px;
				left:0%;
				right:0%;
				border: 0px;
			}
		</style>
	</head>
	<body id="bdyMail" class="RecordBody" style="width:100%;margin: 0px" onload="OnLoadBody();" onkeypress="KeyPressed(event)">
			<iframe name="ifrTooltip" id="ifrTooltip" class="Tooltip" style="visibility: hidden;display:none;" frameborder="0" scrolling="no" src="WCMailInt.asp?WCI=wciTooltip&amp;Text="></iframe>		

		<table id="tblMain" class="Main" cellpadding="0" cellspacing="0" >
	  <!--Box Top Border -->
		<tr height="20" >
			<td width="14" ><div class="BoxTLeft"></div></td>
			<td class="BoxTCenter">&nbsp;</td>
			<td width="14" ><div class="BoxTRight"></div></td>
		</tr>
	<!--End of Box Top Border -->
	<!--Box Middle w/table-->
		<tr style="width:100%;" >
			<td width="14" class="BoxMLeft">&nbsp;</td>
			<td style="width:100%;" class="BoxMCenter" valign="top">
						<table width="95%" style="margin-top:0px; margin-left:10px; margin-right:0px;table-layout: fixed" border="0" cellspacing="4px">
						<tr width="100%">
							<td width="20%"></td>
							<td width="30%"></td>
							<td width="20%"></td>
							<td width="30%"></td>
						</tr>
								<tr width="100%">
									<td colspan="4" class="DialogLabel" >
										<b>Outgoing E-mail Server (SMTP)</b>
									</td>
								</tr>
								<tr width="100%">
									<td width="20%" id="tdHostname" class="DialogLabel">
										<span id="spnHostname" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_HOSTNAME, this.id);" onmouseout="HideTooltip(this.id);">
											Hostname:</span>
									</td>
									<td width="30%">
										<input type="text" name="OMO_4" id="OMO_4" class="TextBoxWidth" style="width:96%"
											onmouseover="this.className='TextBoxWidthHover';" onmouseout="this.className='TextBoxWidth';" 
											maxlength="255" onchange="EnableApply();" value="<WC@OUTGOING_MAIL_OPTION>4</WC@OUTGOING_MAIL_OPTION>" />
									</td>	
									<td width="15%" style="font-size: 8pt">
											<span id="spnPort" style="left:10px;position:relative;border-bottom: 1px dashed #000080;" 
											onmouseover="ShowTooltip(TOOLTIP_PORT, this.id);" 
											onmouseout="HideTooltip(this.id);">
											Port:</span>
									</td>
									<td width="45%">
										<table cellspacing="0" cellpadding="0" style="width: 100%;padding: 0px;margin: 0px">
										<tr>
											<td style="width: 50%">
												<input type="text" id="OMO_206" name="OMO_206"  class="TextBoxWidth" style="width: 50%"
													onmouseover="this.className='TextBoxWidthHover';" onmouseout="this.className='TextBoxWidth';" 
													maxlength="255" onchange="EnableApply();" value="<WC@OUTGOING_MAIL_OPTION>206</WC@OUTGOING_MAIL_OPTION>" />
											</td>
											<td style="width: 10%;">
												<span id="spnSSL"  class="DialogLabel" style="border-bottom: 1px dashed #000080;position:relative;margin-left:12px" onmouseover="ShowTooltip(TOOLTIP_SSL, this.id);" onmouseout="HideTooltip(this.id);">
													SSL:
												</span>
											</td>
											<td style="width: 30%;text-align: right">
												<select id="OMO_402" name="OMO_402" width="80%" onchange="EnableApply();">
													<option value="Yes" <WC@OUTGOING_MAIL_OPTION>402_Yes</WC@OUTGOING_MAIL_OPTION>>Yes</option>
													<option value="No" <WC@OUTGOING_MAIL_OPTION>402_No</WC@OUTGOING_MAIL_OPTION>>No</option>
												</select>
											</td>
										</tr>
										</table>
									</td>
								</tr>
								<tr width="100%">
									<td width="20%" class="DialogLabel">
										<span id="spnInbox" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_LOGON, this.id);" onmouseout="HideTooltip(this.id);">
										Logon:</span>
									</td>
									<td width="30%">
										<input type="text" name="OMO_209" id="OMO_209" class="TextBoxWidth" style="width: 96%"
											onmouseover="this.className='TextBoxWidthHover';" onmouseout="this.className='TextBoxWidth';" 
											maxlength="255" onchange="EnableApply();" value="<WC@OUTGOING_MAIL_OPTION>209</WC@OUTGOING_MAIL_OPTION>" />
									</td>	
										<td width="20%" class="DialogLabel">
												<span id="spnPassword" style="left:10px;position:relative;border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_PASSWORD, this.id);" onmouseout="HideTooltip(this.id);">
													Password:
												</span>
										</td>
									<td width="30%">
										<input type="password" name="OMO_210" id="OMO_210" class="TextBoxWidth" style="width: 96%"
											onmouseover="this.className='TextBoxWidthHover';" onchange="EnableApply();" onmouseout="this.className='TextBoxWidth';" 
											maxlength="255" value="<WC@OUTGOING_MAIL_OPTION>210</WC@OUTGOING_MAIL_OPTION>" />
									</td>	
								</tr>
								<tr width="100%">
									<td colspan="3"></td>
									<td colspan = "1" width="100%" class="DialogLabel" align="right">
											<script type="text/javascript">m_objMqButton.WriteButtonHTML("Test","TestSMTP();","Test",false,m_objMqButton.STATE_EN,"Test");</script>
									</td>

								</tr>
							<tr width="100%">
								<td class="DialogLabel" valign="top" width="20%" align="left">
									<span id="spnReceipt" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_RECEIPT, this.id);" onmouseout="HideTooltip(this.id);">
										Request Read Receipt?
									</span>
								</td>
								<td class="DialogLabel" valign="top" width="80%" align="left" colspan="3">
									<select id="OMO_213" name="OMO_213" width="80%" onchange="EnableApply();">
										<option value="Yes" <WC@OUTGOING_MAIL_OPTION>213_Yes</WC@OUTGOING_MAIL_OPTION>>Yes</option>
										<option value="No" <WC@OUTGOING_MAIL_OPTION>213_No</WC@OUTGOING_MAIL_OPTION>>No</option>
									</select><br />
								</td>
							</tr>
							<tr width="100%">
								<td colspan="4" class="DialogLabel">
									<hr style="color:#BDBECE; height:1px;" />
									Send Automatic E-mail Notifications
								</td>
							</tr>
							<tr width="100%">
								<td class="DialogLabel" valign="top" width="20%" align="left">
									<span id="spnServerMailSender" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_SERVER_MAIL_SENDER, this.id);" onmouseout="HideTooltip(this.id);">
									From:</span>
								</td>
								<td class="DialogLabel" valign="top" width="80%" align="left" colspan="3">
									<input type="text" class="TextBoxWidth" id="OMO_201" name="OMO_201" onmouseover="this.className='TextBoxWidthHover';" 
									onmouseout="this.className='TextBoxWidth';" onchange="EnableApply();" style="width: 78%" value="<WC@OUTGOING_MAIL_OPTION>201</WC@OUTGOING_MAIL_OPTION>" />
								</td>
							</tr>
							<tr width="100%">
								<td class="DialogLabel" valign="top" width="20%" align="left">
									<span id="spnServerMailRetries" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_SERVER_MAIL_INTERVAL, this.id);" onmouseout="HideTooltip(this.id);">
									Every:</span>
								</td>
								<td class="DialogLabel" valign="top" width="70%" align="left" colspan="3">
									<input type="text" class="TextBoxWidth"  id="OMO_202" name="OMO_202" onmouseover="this.className='TextBoxWidthHover';" 
									onmouseout="this.className='TextBoxWidth';" onchange="EnableApply();" style="width: 10%" value="<WC@OUTGOING_MAIL_OPTION>202</WC@OUTGOING_MAIL_OPTION>" /> minute(s) 
								</td>
							</tr>
							<tr width="100%">
								<td colspan="4" class="DialogLabel">
									<hr style="color:#BDBECE; height:1px;" />
									Failed Outgoing E-mails
								</td>
							</tr>
							<tr width="100%">
								<td class="DialogLabel" valign="top" width="20%" align="left">
									<span id="spnNotificationRetries" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_NOTIFICATION_RETRIES, this.id);" onmouseout="HideTooltip(this.id);">
									Maximum Retries:</span>
								</td>
								<td class="DialogLabel" valign="top" width="70%" align="left" colspan="3">
									<input type="text" class="TextBoxWidth" id="OMO_207" name="OMO_207" onmouseover="this.className='TextBoxWidthHover';" 
									onmouseout="this.className='TextBoxWidth';" onchange="EnableApply();" style="width: 10%" value="<WC@OUTGOING_MAIL_OPTION>207</WC@OUTGOING_MAIL_OPTION>" />
								</td>
						</tr>
						<tr width="100%">

							<td class="DialogLabel" valign="top" width="20%" align="left">
								<span id="spnNotificationInvalid" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_NOTIFICATION_INVALID, this.id);" onmouseout="HideTooltip(this.id);">
								Send to:</span>
							</td>
							<td class="DialogLabel" valign="top" width="80%" align="left" colspan="3">
								<input type="text" class="TextBoxWidth" id="OMO_208" name="OMO_208" onmouseover="this.className='TextBoxWidthHover';" 
								onmouseout="this.className='TextBoxWidth';" onchange="EnableApply();" style="width: 78%" value="<WC@OUTGOING_MAIL_OPTION>208</WC@OUTGOING_MAIL_OPTION>" />
							</td>
						</tr>
						<tr width="100%">
							<td colspan="4">
								<hr class="LineSep" />
							</td>
						</tr>
						<tr width="100%">
								<td colspan="4" class="DialogLabel" style="margin-top: 20px">
									<b>Incoming E-mail Server (POP)</b><br /><br />
								</td>
						</tr>
						<tr width="100%">
							<td colspan="4" class="DialogLabel">
								Check Server For New Mail
							</td>
						</tr>
						<tr width="100%">
								<td class="DialogLabel" valign="top" width="20%" align="left">
									<span id="spnMailCheckInterval" style="border-bottom: 1px dashed #000080;" onmouseover="ShowTooltip(TOOLTIP_MAIL_CHECK_INTERVAL, this.id);" onmouseout="HideTooltip(this.id);">
										Every:</span>
								</td>
								<td class="DialogLabel" valign="top" width="70%" align="left" colspan="3">
									<input type="text" class="TextBoxWidth" id="OMO_11" name="OMO_11" onmouseover="this.className='TextBoxWidthHover';" 
									onmouseout="this.className='TextBoxWidth';" onchange="EnableApply();"  style="width: 10%" value="<WC@OUTGOING_MAIL_OPTION>11</WC@OUTGOING_MAIL_OPTION>" /> minute(s)
								</td>
						</tr>
						<tr width="100%">
							<td colspan="4">
								<table align="right" width="100%">
									<tr>
										<td align="right" style="padding-top:1px" width="90%">
											<script type="text/javascript">m_objMqButton.WriteButtonHTML("Apply","SetOptions();","Apply",false,m_objMqButton.STATE_DIS,"Apply");</script>
										</td>
										<td align="right" style="padding-top:1px" width="8%">
											<script type="text/javascript">m_objMqButton.WriteButtonHTML("Cancel","document.location.reload();","CancelT",false,m_objMqButton.STATE_EN,"Cancel");</script>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
		</td>
		<td width="14" class="BoxMRight">&nbsp;</td>
		</tr>

	<!--End of Box Middle w/table-->
	<!--Box Bottom Border -->
		<tr height="20" >
			<td width="14" ><div class="BoxBLeft"></div></td>
			<td class="BoxBCenter">&nbsp;</td>
			<td width="14" ><div class="BoxBRight"></div></td>
		</tr>
	<!--End of Box Bottom Border -->

	</table>	
	</body>
</html>