<html>
||define||count||-1||
||include||meta.tpl||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<script type="text/javascript" src="||nwimg||/bookonly.js"></script>
<title>||lang_str||Address Book|| (||lang||abook_edit||)</title>
</head>
<body onload="focus()" class="body">
||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||
<form name="addrbook" method="post" action="||action||">
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="abook_edit" value="||abook_edit||" />
<input type="hidden" name="field" value="||field||" />
<input type="hidden" name="cmd" value="" />
<input type="hidden" name="process" value="" />
||ifndef||show_cc|| ||define||show_cc||_display_cc|| ||endif||
<input type="hidden" name="show_cc" value="||show_cc||" />
<table width="100%" cellspacing="0" cellpadding="0" class="bg1">
<tr>
	<th class="c">
		||lang_str||Address Book||
		<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"||ifequal||abook_edit||Recent Addresses|| selected="selected"||endif||>||lang_str||Recent Addresses||</option>
			<option value="Groups"||ifequal||abook_edit||Groups|| selected="selected"||endif||>||lang_str||Groups||</option>
		</select>
		<input type="button" class="btn" value="||lang_str||Done||" onclick="pasteChecked();window.close();" />
	</th>
</tr>
<tr valign="top">
	<td class="c">
||ifequal||abook_edit||Recent Addresses||

<table bgcolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
	<th>||lang_str||To||:</th>
	||ifequal||show_cc||true||
	<th>||lang_str||Cc||:</th>
	<th>||lang_str||BCC||:</th>
	||endif||
	<th width="100%" nowrap>||lang_str||Email Address||</th>
</tr>
||begin_picklist||
||define||xaddr||(||encode_quotes||pick_full||)||
||define||count||(||add||count||1||)||
||define||java_array||(||java_array|| this[i++] = "||xaddr||";)||
	<tr>
		<td><input type="checkbox" name="sel_to_||count||" /></td>
		||ifequal||show_cc||true||
		<td><input type="checkbox" name="sel_cc_||count||" /></td>
		<td><input type="checkbox" name="sel_bcc_||count||" /></td>
		||endif||
		<td nowrap><a href="javascript:pressnick2('||count||')">||html_text||pick_full||</a></td>
	</tr>
||end_picklist||
</table>

||else||
	||ifequal||abook_edit||Groups||

<table bgcolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
	<th>||lang_str||To||:</th>
	||ifequal||show_cc||true||
	<th>||lang_str||Cc||:</th>
	<th>||lang_str||BCC||:</th>
	||endif||
	<th width="30%" nowrap>||lang_str||Group Name||</th>
	<th width="70%" nowrap>||lang_str||Addresses in Group||</th>
</tr>
||begin_distlist||
||define||xaddr||(||encode_quotes||dist_label||)||
||define||count||(||add||count||1||)||
||define||java_array||(||java_array|| this[i++] = "||xaddr||";)||
	<tr>
		<td><input type="checkbox" name="sel_to_||count||" /></td>
		||ifequal||show_cc||true||
		<td><input type="checkbox" name="sel_cc_||count||" /></td>
		<td><input type="checkbox" name="sel_bcc_||count||" /></td>
		||endif||
		<td nowrap><a href="javascript:pressnick2('||count||')">||html_text||dist_label||</a></td>
		<td nowrap>||lchop||dist_value||60||</td>
	</tr>
||end_distlist||
</table>

	||else||

<table bgcolor="#FFFFFF" width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
	<th>||lang_str||To||:</th>
	||ifequal||show_cc||true||
	<th>||lang_str||Cc||:</th>
	<th>||lang_str||BCC||:</th>
	||endif||
	<th width="30%">||lang_str||Nickname||</th>
	<th width="40%" nowrap>||lang_str||Email Address||</th>
	<th width="30%" nowrap>||lang_str||Full Name||</th>
</tr>
||begin_address||
||define||xaddr||(||name||)||
||ifnempty||abk_full_name||
	||ifnempty||abk_email||
		||define||xaddr||("||abk_full_name||" <||abk_email||>)||
	||endif||
||else||
	||ifnempty||abk_email||
		||define||xaddr||abk_email||
	||endif||
||endif||
||define||xaddr||(||encode_quotes||xaddr||)||
||define||count||(||add||count||1||)||
||define||java_array||(||java_array|| this[i++] = "||xaddr||";)||
	<tr>
		<td><input type="checkbox" name="sel_to_||count||" /></td>
		||ifequal||show_cc||true||
		<td><input type="checkbox" name="sel_cc_||count||" /></td>
		<td><input type="checkbox" name="sel_bcc_||count||" /></td>
		||endif||
		||define||foo||(||lchop||name||40||)||
		<td nowrap><a href="javascript:pressnick2('||count||')">||html_text||foo||</a></td>
		<td nowrap>||lchop||abk_email||40||</td>
		<td nowrap>||lchop||abk_full_name||40||</td>
	</tr>
||end_address||
</table>

	||endif||
||endif||
	</td>
</tr>
<tr><th class="c"><input type="button" class="btn" value="||lang_str||Done||" onclick="pasteChecked();window.close();" /></th></tr>
</table>
</form>
</body>

<script type="text/javascript">
<!--
function makefldarray()
{
	var i =0;
	||java_array||
	this[i] = null;
	this.length = i;
}
var full_folder_list = new makefldarray();
var loop = full_folder_list.length;
function pressnick2(jname)
{
	x = full_folder_list[jname];
	pressnick(x);
}
//-->
</script>

</html>
