<html>
||include||meta.tpl||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<script type="text/javascript">
<!--
||/*||// The following is the lang translations for POPUP javascript alerts||*/||
var x_savedist = "||lang_str||You need to enter a name for the group||";
var x_toobig = "||lang_str||The group is too large, reduce the number of addresses or split it into several groups||";

||ifdef||netscape_version||
var ns=true;
||else||
var ns=false;
||endif||
// -->
</script>
<script type="text/javascript" src="||nwimg||/pick_dist.js"></script>
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>

<title>||cust_title|| - ||lang_str||Group List||</title>
</head>
<body class="body" onload="doresize();" onresize="doresize()">

||include||_layout_start.tpl||

||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||
||ifdef||u_message||
	||include||_umsginline.tpl||
||endif||

<form name="editgrp" method="post" action="||action||">
	<input type="hidden" name="cmd" value="pick_edit" />
	<input type="hidden" name="encode_text" value="group_name,stored_dist"/>
	<input type="hidden" name="page" value="pick_dist"/>
	<input type="hidden" name="group_name" value=""/>
	<input type="hidden" name="stored_dist" value="" />
	<input type="hidden" name="changing_address" value="||changing_address||" />
	<input type="hidden" name="utoken" value="||utoken||" />
</form>

<form name="pickform" method="post" action="||action||">
<input type="hidden" name="dist_list" value="||dist_list||" />
<input type="hidden" name="picklist" value="||picklist||" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="force_connection" value="true" />
<input type="hidden" name="cmd" value="pick_edit" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="abook_edit" value="||abook_edit||" />
<input type="hidden" name="abook_list" value="" />
<input type="hidden" name="changing_address" value="||changing_address||" />
<input type="hidden" name="stored_dist" value="" />

<center>
||ifempty||changing_address||

<table width="95%"><tr>
<td nowrap class="LF c">||lang_str||Address Book||</td>
<td></td>
<td nowrap class="LF c">||lang_str||New Address Book||</td>
</tr>
<tr>
<td><select size="1" name="addr_books" onchange="do_copy(this)">
		||begin_book||
			<option value="||addr_book||" ||selected||>||trans_addr_book||</option>
		||end_book||
		<option value="Recent Addresses">||lang_str||Recent Addresses||</option>
		<option value="Groups" selected="selected">||lang_str||Groups||</option>
	</select></td>
<td nowrap class="LF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><INPUT TYPE="Text"  name="abook_new" SIZE="26"></td>
<td><INPUT TYPE="button" class="btn" VALUE="||lang_str||Create||" onclick="javascript:create()"></td>
<td width="100%"> </td>
<td class="c"><INPUT TYPE="button" class="btn" VALUE="||lang_str||Import an Address Book||" onclick="javascript:G2('import_new&force_connection=true')"></td>
</tr></table>
<table class="LT" border="0" cellspacing="0" width="95%">
<TR class="bg1">
	<th width="30%" nowrap>||lang_str||Group Name||</th>
	<th width="70%" nowrap>||lang_str||Addresses in Group||</th>
	<th></th>
</tr>
||define||color||1||
||begin_distlist||
	<tr class="L||color||">
		||ifequal||color||1||
			||define||color||0||
		||else||
			||define||color||1||
		||endif||
		<td><a href="javascript:G2('msg_new&get_attach_id=true&encode_text=h_from&h_from=||encode_text||dist_label||')">||html_text||dist_label|| </a></td>
		<td nowrap>||lchop||dist_value||80||</td>
		<td nowrap>
			<a href="javascript:G2('msg_new&get_attach_id=true&encode_text=h_from&h_from=||encode_text||dist_label||')">||lang_str||email||</a>
			<a href="javascript:edit_group('||encode_text||dist_label||','||encode_text||dist_value||')">||lang_str||edit||</a>
			<a href="javascript:del_group('||encode_text||dist_label||')">||lang_str||delete||</a>
		</td>
	</tr>
||end_distlist||
</table>

||endif||

<br />
<table>
<tr><td align="center">
<TABLE class="bg1" width="500">
<TR><TD COLSPAN="3" class="c b LF">
	||ifempty||changing_address||
		||lang_str||Add a new Group||
	||else||
		||lang_str||Edit|| "||html_text||group_name||" ||lang_str||Group List||<br>
		<a class="LF" href="javascript:G2('pick_edit&force_connection=true&abook_edit=||abook_edit||&page=pick_dist')">||lang_str||Back to Groups||</a>
		<input type="hidden" name="group_name" value="||ifnempty||group_name||||message_text||group_name||||endif||" />
	||endif||
</TD></TR>
||ifempty||changing_address||
<TR>
	<TD COLSPAN="3" class="c LF">
		||lang_str||Group Name||:
		<input type="Text" name="new_group_name" size="26" value="||ifnempty||group_name||||message_text||group_name||||endif||">
		<input type="hidden" name="group_name" value="||ifnempty||group_name||||message_text||group_name||||endif||" />
</TR>
||endif||
<TR>
	<TD class="c LF">
		||lang_str||Address Book||<br>
		<select size="1" name="addr_books" onchange="do_copy2(this)">
		||begin_book||
			<option value="||addr_book||" ||selected||>||trans_addr_book||</option>
		||end_book||
		</select><br>
		<SELECT NAME="abksel" SIZE="10" MULTIPLE>
			||begin_address||
				||ifdef||abk_email||<OPTION VALUE="">||html_text||abk_email||</OPTION>||endif||
			||end_address||
		</SELECT><br>
	</TD>
	<TD class="c">
	<INPUT TYPE="button" class="btn" VALUE="||lang_str||Add|| >>" onclick="addSel();"><P>
	</TD>

	<TD class="c LF">
		||lang_str||Group List||<br>
		||ifdef||stored_dist||
<textarea rows="9" name="group_list" cols="25">||begin_email||stored_dist||||email||,
||end_email||</textarea>
		||else||
			<textarea rows="9" name="group_list" cols="25">||group_list||</textarea>
		||endif||
	</TD>
</TR>
<TR><TD COLSPAN="3" class="c"><INPUT TYPE="button" class="btn" onclick="saveDist();" VALUE="||lang_str||Save|| ||ifnempty||changing_address||||lang_str||changes to|| ||endif||||lang_str||Group List||"></TD></TR>
</TABLE>
</td></tr>
</TABLE>
</form>
</center>
</body>
</html>
