<!-- Copyright 2001, 2002, 2003 Macromedia, Inc. All rights reserved. -->
<!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine 5.0//dialog">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
<head>
	<title><MMString:loadString id="TagLibraries/JRun/sendmail/title" /></title>
  <link rel="stylesheet" href="../../fields.css">
<script src="../../Shared/Common/Scripts/dwscripts.js"></script>
<script src="../../Shared/Common/Scripts/ListControlClass.js"></script>
<script src="../../Shared/Common/Scripts/tagDialogsCmn.js"></script>
<script src="loc_strings.js"></script>
<script src="strings.js"></script>
<script>
/************************* GLOBAL VARS **************************/

var SELECTORLIST;
var theUIObjects;
var applyType = "dynamic"; 

/****************************************************************/

function inspectTag(tagNodeObj)
{
  var curValue = SELECTORLIST.getValue(); 
  var activeDisplayNode = dwscripts.findDOMObject("the" + curValue);
  tagDialog.inspectTagCommon(tagNodeObj, null, applyType, activeDisplayNode, SELECTORLIST); 
}

function applyTag(tagNodeObj)
{
  var curValue = SELECTORLIST.getValue(); 
  var activeDisplayNode = dwscripts.findDOMObject("the" + curValue);
  tagDialog.applyTagCommon(tagNodeObj, null, applyType, activeDisplayNode); 
}

function updateUI()
{
  var curDiv = SELECTORLIST.getValue(); 
  tagDialog.showOnlyThisLayer(curDiv,document.layers[0]); 
}

function initializeUI()
{
	SELECTORLIST = new ListControl("theselector"); 
	theUIObjects = new Array(SELECTORLIST);
	
  tagDialog.populateDropDownList(SELECTORLIST, theMailTypesCap, theMailTypesVal, 0); 
}
</script>
</head>

<body onLoad="initializeUI()">
<div MMString:name="TagLibraries/JRun/sendmail/div/name/General"> 
 
<MMString:loadString id="TagLibraries/JRun/sendmail/text/Use" /> 
<select name="theselector" class="selectorList" id="attr:jrunsendmail:selector" onChange="updateUI();" editable="false">
</select>
<hr width="100%"> 
<div id="themailserver" style="position:absolute;width:350px;height:115px;z-index:1;visibility: hidden;left: 0px;top: 43px;">
  <table border="0" cellspacing="4">
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Host" /> </td>
      <td nowrap="nowrap">
        <input name="thehost" type="text" class="basicTextField" id="attr:jrun:sendmail:msgsrc" attname="host" required="true" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Port" /> </td>
      <td nowrap="nowrap">
        <input name="theport" type="text" class="basicTextField" id="attr:jrun:sendmail:port" attname="port" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Timeout" /> </td>
      <td nowrap="nowrap">
        <input name="thetimeout" type="text" class="basicTextField" id="attr:jrun:sendmail:timeout" attname="timeout" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Sender" /> </td>
      <td nowrap="nowrap">
        <input name="thesender" type="text" class="basicTextField" id="attr:jrun:sendmail:sender" attname="sender" required="true" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Recipient" /> </td>
      <td nowrap="nowrap">
        <input name="therecipient" type="text" class="basicTextField" id="attr:jrun:sendmail:recipient" attname="recipient" required="true" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/CC" /> </td>
      <td nowrap="nowrap">
        <input name="thecc" type="text" class="basicTextField" id="attr:jrun:sendmail:cc" attname="cc" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/BCC" /> </td>
      <td nowrap="nowrap">
        <input name="thebcc" type="text" class="basicTextField" id="attr:jrun:sendmail:bcc" attname="bcc" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Subject" /> </td>
      <td nowrap="nowrap">
        <input name="thesubject" type="text" class="basicTextField" id="attr:jrun:sendmail:subject" attname="subject" />
      </td>
    </tr>
  </table> 
</div>
<div id="thejavamail" style="position:absolute;width:350px;height:115px;z-index:1;visibility: hidden;left: 0px;top: 43px;">
  <table border="0" cellspacing="4">
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Session" /> </td>
      <td nowrap="nowrap">
        <input name="thesession" type="text" class="basicTextField" id="attr:jrun:sendmail:session" attname="session" required="true" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Sender" /> </td>
      <td nowrap="nowrap">
        <input name="thesender" type="text" class="basicTextField" id="attr:jrun:sendmail:sender" attname="sender" required="true" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Recipient" /> </td>
      <td nowrap="nowrap">
        <input name="therecipient" type="text" class="basicTextField" id="attr:jrun:sendmail:recipient" attname="recipient" required="true" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/CC" /> </td>
      <td nowrap="nowrap">
        <input name="thecc" type="text" class="basicTextField" id="attr:jrun:sendmail:cc" attname="cc" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/BCC" /> </td>
      <td nowrap="nowrap">
        <input name="thebcc" type="text" class="basicTextField" id="attr:jrun:sendmail:bcc" attname="bcc" />
      </td>
    </tr>
    <tr>
      <td valign="baseline" align="right" nowrap="nowrap"><MMString:loadString id="TagLibraries/JRun/sendmail/text/Subject" /> </td>
      <td nowrap="nowrap">
        <input name="thesubject" type="text" class="basicTextField" id="attr:jrun:sendmail:subject" attname="subject" />
      </td>
    </tr>
  </table> 
</div>
</div>
<div MMString:name="TagLibraries/JRun/sendmail/div/name/Mail"> 
  <textarea name="innerHTML" attname="innerHTML" id="attr:jrun:sendmail:theinnerhtml" class="contentsField" wrap="VIRTUAL"></textarea>
</div>
</body>
</html>
