<?php
// +-------------------------------------------------------------+
// | HiveMail™ version 1.3.1
// +-------------------------------------------------------------+
// | HIVEMAIL™ IS NOT FREE SOFTWARE
// | If you have downloaded this software from a website other
// | than Hivemail or if you have otherwise received
// | this software from someone who is not a representative of
// | this organization you are involved in an illegal activity.
// +-------------------------------------------------------------+
// +-------------------------------------------------------------+

// ############################################################################
// Templates
$templates[6] = array (
  'addbook_edit' => 
  array (
    'templategroupid' => '4',
    'user_data' => '$skin[doctype]
<html>
<head>
<title>$appname: Address Book - $contact[name]</title>
$css
<style type="text/css">
.defaultItem {
	color: #274EAD
}
.normalItem {
}
</style>
<script language="Javascript">
<!--

self.focus();

var emailDef = 0;
var phoneDef = 0;
var lastAdd = \'\';
var addressInfo = new Array();
$addressarray

// -->
</script>
<script type="text/javascript" src="misc/addressbook_edit.js"></script>
</head>
<body style="background-color: #C7E1F4;">

$header

<form action="addressbook.update.php" method="post" name="contactform" onSubmit="submitData(this.emailData, this.emails, \'emailDef\'); submitData(this.phoneData, this.phones, \'phoneDef\'); submitAddresses(this.addressData); return verifyData(this);">
<input type="hidden" name="cmd" value="update" />
<input type="hidden" name="contactid" value="$contact[contactid]" />
<input type="hidden" name="emailData" value="0" />
<input type="hidden" name="phoneData" value="0" />
<input type="hidden" name="addressData" value="0" />
<input type="hidden" name="sendAddress" value="" />
<input type="hidden" name="sendPhone" value="" />
<input type="hidden" name="typesEmail" value="" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="575">
	<tr class="headerRow">
		<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Personal Information</b></span></th>
	</tr>
	<tr class="{newclassname}Row">
		<td class="{classname}BothCell" colspan="2">
			<table width="100%" align="center">
				<tr>
					<td><span class="normalfont">First:</span></td>
					<td colspan="2"><input type="text" name="contact[nameinfo][first]" value="{$contact[nameinfo][first]}" class="bginput" style="width: 120px" /></td>
					<td><span class="normalfont">Middle:</span></td>
					<td><input type="text" name="contact[nameinfo][middle]" value="{$contact[nameinfo][middle]}" class="bginput" style="width: 120px" /></td>
					<td><span class="normalfont">Last:</span></td>
					<td><input type="text" name="contact[nameinfo][last]" value="{$contact[nameinfo][last]}" class="bginput" style="width: 120px" /></td>
				</tr>
				<tr>
					<td><span class="normalfont">Title:</span></td>
					<td><input type="text" name="contact[nameinfo][prefix]" value="{$contact[nameinfo][prefix]}" class="bginput" style="width: 60px" /></td>
					<td><span class="normalfont">Display:</span></td>
					<td colspan="2"><input type="text" name="contact[name]" id="display" class="bginput" value="{$contact[name]}" style="width: 175px" /></td>
					<td><span class="normalfont">Nickname:</span></td>
					<td><input type="text" name="contact[nameinfo][nickname]" value="{$contact[nameinfo][nickname]}" class="bginput" style="width: 120px" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class="{newclassname}Row">
		<td class="{classname}BothCell" colspan="2">
			<table width="575" align="center">
				<tr>
					<td nowrap="nowrap" width="15%"><span class="normalfont">Birthday:</span></td>
					<td nowrap="nowrap">
						<select name="contact[birthday][month]">
							<option value="0">(month)</option>
							$bmonthsel
						</select>
						<select name="contact[birthday][day]">
							<option value="0">(day)</option>
							$bdaysel
						</select>
						<select name="contact[birthday][year]">
							<option value="0">(year)</option>
							$byearsel
						</select>
					</td>
					<td nowrap="nowrap"><span class="normalfont">Time zone:</span></td>
					<td nowrap="nowrap">
						$timezone
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class="{newclassname}Row">
		<td class="{classname}BothCell" colspan="2">
			<table width="575" align="center">
				<tr>
					<td nowrap="nowrap" width="15%"><span class="normalfont">Web page:</span></td>
					<td><input type="text" name="contact[webpage]" id="webpage" value="$contact[webpage]" class="bginput" size="72" /> <input type="button" value="Go" onClick="gotoUrl(this.form.webpage.value);" class="bginput" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class="{newclassname}Row">
		<td class="{classname}BothCell" colspan="2">
			<table width="575" align="center">
				<tr>
					<td valign="top" nowrap="nowrap" width="15%"><span class="normalfont">Notes:</span></td>
					<td><textarea name="contact[notes]" cols="75" rows="3" style="overflow-y: visible; width: 475px">$contact[notes]</textarea></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td colspan="2"><span class="smallfonttablehead">&nbsp;</span></td>
	</tr>
	<tr class="headerRow">
		<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Email Addresses</b></span></span></th>
	</tr>
	<tr class="highRow">
		<td class="highBothCell" colspan="2">
			<table width="575" align="center">
				<tr>
					<td>
						<select name="emails" size="7" style="width: 440px" onClick="autoSelect(this);" onChange="updateDisabled(this, \'Email\');" onDblClick="window.open(\'compose.email.php?email=\'+escape(this.form.display.value+\' <\'+this.form.emails.options[this.form.emails.selectedIndex].text+\'>\'));">
							$emailoptions
						</select>
					</td>
					<td style="width: 125px" valign="top">
						<input type="button" style="width: 100%" name="addEmail" value="Add Email" onClick="insertItem(this.form.emails, \'email address\', true); updateDisabled(this.form.emails, \'Email\');" class="bginput" /><br />
						<input type="button" style="width: 100%" name="setDefEmail" value="Set as Primary" onClick="changeDefault(this.form.emails, \'emailDef\');" disabled="disabled" class="bginput" /><br />
						<input type="button" style="width: 100%" name="editEmail" value="Edit Email" onClick="editItem(this.form.emails, \'email address\', true); updateDisabled(this.form.emails, \'Email\');" disabled="disabled" class="bginput" /><br />
						<input type="button" style="width: 100%" name="removeEmail" value="Remove Email" onClick="removeItem(this.form.emails, \'email address\', \'emailDef\'); updateDisabled(this.form.emails, \'Email\');" disabled="disabled" class="bginput" /><br />
						<input type="button" style="width: 100%" name="sendEmail" value="Send Email" onClick="window.open(\'compose.email.php?email=\'+escape(this.form.display.value+\' <\'+this.form.emails.options[this.form.emails.selectedIndex].text+\'>\'));" disabled="disabled" class="bginput" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<br />
<div align="center">
<%if $contact[userid] != 0 or $hiveuser[canadmin] %><input type="submit" class="bginput" value="Save Changes" /><%else%><input type="submit" class="bginput" value="(Read Only)" disabled="disabled" /><%endif%>&nbsp;
<input type="button" class="bginput" value="Close Window" onClick="window.close();" />&nbsp;
<input type="button" class="bginput" value="More Options" onClick="window.location = \'#moreinfo\';" />
</div>
<br />

<a name="moreinfo" />
<table cellpadding="4" cellspacing="0" class="normalTable" width="575">
	<tr class="headerRow">
		<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Contact Details</b></span></span></th>
	</tr>
	<tr class="highRow">
		<td class="highBothCell" colspan="2">
			<table width="575" align="center">
				<tr>
					<td valign="top" style="width: 265px">
						<input type="button" style="width: 100%" name="addAddress" value="Add Address" onClick="insertAddress(this.form); updateAddressDisabled(this.form.addresses);" class="bginput" /><br />
						<select name="addresses" size="6" style="width: 265px" onClick="autoSelect(this);" onChange="if (this.selectedIndex == -1) { unloadAddressData(this.form); } else { reloadAddressData(this.options[this.selectedIndex], this.form); } updateAddressDisabled(this);">
							$addressoptions
						</select><br />
						<input type="button" style="width: 100%" name="setDefAddress" value="Set as Primary" onClick="changeDefaultAddy(this.form.addresses);" disabled="disabled" class="bginput" /><br />
						<input type="button" style="width: 100%" name="removeAddress" value="Remove Address" onClick="removeAddy(this.form.addresses); updateAddressDisabled(this.form.addresses);" disabled="disabled" class="bginput" />
					</td>
					<td>
						<table cellpadding="0" cellspacing="0" width="100%">
							<tr>
								<td colspan="2"><input type="text" name="adrName" onChange="updateAddressInfo(this.form.addresses, 0, this.value);" value="Address Title" style="width: 100%" disabled="disabled" class="bginput" /></td>
							</tr>
							<tr>
								<td colspan="2"><textarea name="adrStreet" rows="4" onChange="updateAddressInfo(this.form.addresses, 1, this.value);" style="width: 99%" disabled="disabled" />Street Address</textarea></td>
							</tr>
							<tr>
								<td colspan="2"><input type="text" name="adrCity" onChange="updateAddressInfo(this.form.addresses, 2, this.value);" value="City" style="width: 100%" disabled="disabled" class="bginput" /></td>
							</tr>
							<tr>
								<td width="50%"><input type="text" name="adrState" onChange="updateAddressInfo(this.form.addresses, 3, this.value);" value="State/Province" style="width: 97%" disabled="disabled" class="bginput" /></td>
								<td align="right"><input type="text" name="adrZip" onChange="updateAddressInfo(this.form.addresses, 4, this.value);" value="Postal Code" style="width: 97%" disabled="disabled" class="bginput" /></td>
							</tr>
							<tr>
								<td colspan="2"><input type="text" name="adrCountry" onChange="updateAddressInfo(this.form.addresses, 5, this.value);" value="Country/Region" style="width: 100%" disabled="disabled" class="bginput" /></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<br />
			<table width="575" align="center">
				<tr>
					<td>
						<select name="phones" size="7" style="width: 265px" onClick="autoSelect(this);" onChange="if (this.selectedIndex == -1) { unloadTypeSelection(this.form.phonetypes); } else { reloadTypeSelection(this.options[this.selectedIndex], this.form.phonetypes); } updateDisabled(this, \'Phone\');">
							$phoneoptions
						</select>
					</td>
					<td>
						<select multiple="multiple" name="phonetypes" id="typesPhone" disabled="disabled" size="7" style="width: 170px" onChange="updateTypeSelection(this.form.phones.options[this.form.phones.selectedIndex], this);">
							<option value="{<CONTACT_PHONE_HOME>}">Home phone</option>
							<option value="{<CONTACT_PHONE_VOICE>}">Voice messaging</option>
							<option value="{<CONTACT_PHONE_WORK>}">Work phone</option>
							<option value="{<CONTACT_PHONE_FAX>}">Fax number</option>
							<option value="{<CONTACT_PHONE_CELL>}">Cellular phone</option>
							<option value="{<CONTACT_PHONE_PAGER>}">Pager device</option>
						</select>
					</td>
					<td style="width: 125px" valign="top">
						<input type="button" style="width: 100%" name="addPhone" value="Add Phone" onClick="insertItem(this.form.phones, \'phone number\', false); updateDisabled(this.form.phones, \'Phone\');" class="bginput" /><br />
						<input type="button" style="width: 100%" name="setDefPhone" value="Set as Primary" onClick="changeDefault(this.form.phones, \'phoneDef\');" disabled="disabled" class="bginput" /><br />
						<input type="button" style="width: 100%" name="editPhone" value="Edit Phone" onClick="editItem(this.form.phones, \'phone number\', false); updateDisabled(this.form.phones, \'Phone\');" disabled="disabled" class="bginput" /><br />
						<input type="button" style="width: 100%" name="removePhone" value="Remove Phone" onClick="removeItem(this.form.phones, \'phone number\', \'phoneDef\'); updateDisabled(this.form.phones, \'Phone\');" disabled="disabled" class="bginput" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<br />
<div align="center">
<%if $contact[userid] != 0 or $hiveuser[canadmin] %><input type="submit" class="bginput" value="Save Changes" /><%else%><input type="submit" class="bginput" value="(Read Only)" disabled="disabled" /><%endif%>&nbsp;
<input type="button" class="bginput" value="Close Window" onClick="window.close();" />
</div>
</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head>
<title>$appname: Address Book - $contact[name]</title>
$GLOBALS[css]
<style type=\\"text/css\\">
.defaultItem {
	color: #274EAD
}
.normalItem {
}
</style>
<script language=\\"Javascript\\">
<!--

self.focus();

var emailDef = 0;
var phoneDef = 0;
var lastAdd = \'\';
var addressInfo = new Array();
$addressarray

// -->
</script>
<script type=\\"text/javascript\\" src=\\"misc/addressbook_edit.js\\"></script>
</head>
<body style=\\"background-color: #C7E1F4;\\">

$GLOBALS[header]

<form action=\\"addressbook.update.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"contactform\\" onSubmit=\\"submitData(this.emailData, this.emails, \'emailDef\'); submitData(this.phoneData, this.phones, \'phoneDef\'); submitAddresses(this.addressData); return verifyData(this);\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />
<input type=\\"hidden\\" name=\\"contactid\\" value=\\"$contact[contactid]\\" />
<input type=\\"hidden\\" name=\\"emailData\\" value=\\"0\\" />
<input type=\\"hidden\\" name=\\"phoneData\\" value=\\"0\\" />
<input type=\\"hidden\\" name=\\"addressData\\" value=\\"0\\" />
<input type=\\"hidden\\" name=\\"sendAddress\\" value=\\"\\" />
<input type=\\"hidden\\" name=\\"sendPhone\\" value=\\"\\" />
<input type=\\"hidden\\" name=\\"typesEmail\\" value=\\"\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"575\\">
	<tr class=\\"headerRow\\">
		<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Personal Information</b></span></th>
	</tr>
	<tr class=\\"{newclassname}Row\\">
		<td class=\\"{classname}BothCell\\" colspan=\\"2\\">
			<table width=\\"100%\\" align=\\"center\\">
				<tr>
					<td><span class=\\"normalfont\\">First:</span></td>
					<td colspan=\\"2\\"><input type=\\"text\\" name=\\"contact[nameinfo][first]\\" value=\\"{$contact[nameinfo][first]}\\" class=\\"bginput\\" style=\\"width: 120px\\" /></td>
					<td><span class=\\"normalfont\\">Middle:</span></td>
					<td><input type=\\"text\\" name=\\"contact[nameinfo][middle]\\" value=\\"{$contact[nameinfo][middle]}\\" class=\\"bginput\\" style=\\"width: 120px\\" /></td>
					<td><span class=\\"normalfont\\">Last:</span></td>
					<td><input type=\\"text\\" name=\\"contact[nameinfo][last]\\" value=\\"{$contact[nameinfo][last]}\\" class=\\"bginput\\" style=\\"width: 120px\\" /></td>
				</tr>
				<tr>
					<td><span class=\\"normalfont\\">Title:</span></td>
					<td><input type=\\"text\\" name=\\"contact[nameinfo][prefix]\\" value=\\"{$contact[nameinfo][prefix]}\\" class=\\"bginput\\" style=\\"width: 60px\\" /></td>
					<td><span class=\\"normalfont\\">Display:</span></td>
					<td colspan=\\"2\\"><input type=\\"text\\" name=\\"contact[name]\\" id=\\"display\\" class=\\"bginput\\" value=\\"{$contact[name]}\\" style=\\"width: 175px\\" /></td>
					<td><span class=\\"normalfont\\">Nickname:</span></td>
					<td><input type=\\"text\\" name=\\"contact[nameinfo][nickname]\\" value=\\"{$contact[nameinfo][nickname]}\\" class=\\"bginput\\" style=\\"width: 120px\\" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class=\\"{newclassname}Row\\">
		<td class=\\"{classname}BothCell\\" colspan=\\"2\\">
			<table width=\\"575\\" align=\\"center\\">
				<tr>
					<td nowrap=\\"nowrap\\" width=\\"15%\\"><span class=\\"normalfont\\">Birthday:</span></td>
					<td nowrap=\\"nowrap\\">
						<select name=\\"contact[birthday][month]\\">
							<option value=\\"0\\">(month)</option>
							$bmonthsel
						</select>
						<select name=\\"contact[birthday][day]\\">
							<option value=\\"0\\">(day)</option>
							$bdaysel
						</select>
						<select name=\\"contact[birthday][year]\\">
							<option value=\\"0\\">(year)</option>
							$byearsel
						</select>
					</td>
					<td nowrap=\\"nowrap\\"><span class=\\"normalfont\\">Time zone:</span></td>
					<td nowrap=\\"nowrap\\">
						$timezone
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class=\\"{newclassname}Row\\">
		<td class=\\"{classname}BothCell\\" colspan=\\"2\\">
			<table width=\\"575\\" align=\\"center\\">
				<tr>
					<td nowrap=\\"nowrap\\" width=\\"15%\\"><span class=\\"normalfont\\">Web page:</span></td>
					<td><input type=\\"text\\" name=\\"contact[webpage]\\" id=\\"webpage\\" value=\\"$contact[webpage]\\" class=\\"bginput\\" size=\\"72\\" /> <input type=\\"button\\" value=\\"Go\\" onClick=\\"gotoUrl(this.form.webpage.value);\\" class=\\"bginput\\" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class=\\"{newclassname}Row\\">
		<td class=\\"{classname}BothCell\\" colspan=\\"2\\">
			<table width=\\"575\\" align=\\"center\\">
				<tr>
					<td valign=\\"top\\" nowrap=\\"nowrap\\" width=\\"15%\\"><span class=\\"normalfont\\">Notes:</span></td>
					<td><textarea name=\\"contact[notes]\\" cols=\\"75\\" rows=\\"3\\" style=\\"overflow-y: visible; width: 475px\\">$contact[notes]</textarea></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td colspan=\\"2\\"><span class=\\"smallfonttablehead\\">&nbsp;</span></td>
	</tr>
	<tr class=\\"headerRow\\">
		<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Email Addresses</b></span></span></th>
	</tr>
	<tr class=\\"highRow\\">
		<td class=\\"highBothCell\\" colspan=\\"2\\">
			<table width=\\"575\\" align=\\"center\\">
				<tr>
					<td>
						<select name=\\"emails\\" size=\\"7\\" style=\\"width: 440px\\" onClick=\\"autoSelect(this);\\" onChange=\\"updateDisabled(this, \'Email\');\\" onDblClick=\\"window.open(\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}email=\'+escape(this.form.display.value+\' <\'+this.form.emails.options[this.form.emails.selectedIndex].text+\'>\'));\\">
							$emailoptions
						</select>
					</td>
					<td style=\\"width: 125px\\" valign=\\"top\\">
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"addEmail\\" value=\\"Add Email\\" onClick=\\"insertItem(this.form.emails, \'email address\', true); updateDisabled(this.form.emails, \'Email\');\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"setDefEmail\\" value=\\"Set as Primary\\" onClick=\\"changeDefault(this.form.emails, \'emailDef\');\\" disabled=\\"disabled\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"editEmail\\" value=\\"Edit Email\\" onClick=\\"editItem(this.form.emails, \'email address\', true); updateDisabled(this.form.emails, \'Email\');\\" disabled=\\"disabled\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"removeEmail\\" value=\\"Remove Email\\" onClick=\\"removeItem(this.form.emails, \'email address\', \'emailDef\'); updateDisabled(this.form.emails, \'Email\');\\" disabled=\\"disabled\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"sendEmail\\" value=\\"Send Email\\" onClick=\\"window.open(\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}email=\'+escape(this.form.display.value+\' <\'+this.form.emails.options[this.form.emails.selectedIndex].text+\'>\'));\\" disabled=\\"disabled\\" class=\\"bginput\\" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<br />
<div align=\\"center\\">
".(($contact[userid] != 0 or $hiveuser[canadmin] ) ? ("<input type=\\"submit\\" class=\\"bginput\\" value=\\"Save Changes\\" />") : ("<input type=\\"submit\\" class=\\"bginput\\" value=\\"(Read Only)\\" disabled=\\"disabled\\" />"))."&nbsp;
<input type=\\"button\\" class=\\"bginput\\" value=\\"Close Window\\" onClick=\\"window.close();\\" />&nbsp;
<input type=\\"button\\" class=\\"bginput\\" value=\\"More Options\\" onClick=\\"window.location = \'#moreinfo\';\\" />
</div>
<br />

<a name=\\"moreinfo\\" />
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"575\\">
	<tr class=\\"headerRow\\">
		<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Contact Details</b></span></span></th>
	</tr>
	<tr class=\\"highRow\\">
		<td class=\\"highBothCell\\" colspan=\\"2\\">
			<table width=\\"575\\" align=\\"center\\">
				<tr>
					<td valign=\\"top\\" style=\\"width: 265px\\">
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"addAddress\\" value=\\"Add Address\\" onClick=\\"insertAddress(this.form); updateAddressDisabled(this.form.addresses);\\" class=\\"bginput\\" /><br />
						<select name=\\"addresses\\" size=\\"6\\" style=\\"width: 265px\\" onClick=\\"autoSelect(this);\\" onChange=\\"if (this.selectedIndex == -1) { unloadAddressData(this.form); } else { reloadAddressData(this.options[this.selectedIndex], this.form); } updateAddressDisabled(this);\\">
							$addressoptions
						</select><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"setDefAddress\\" value=\\"Set as Primary\\" onClick=\\"changeDefaultAddy(this.form.addresses);\\" disabled=\\"disabled\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"removeAddress\\" value=\\"Remove Address\\" onClick=\\"removeAddy(this.form.addresses); updateAddressDisabled(this.form.addresses);\\" disabled=\\"disabled\\" class=\\"bginput\\" />
					</td>
					<td>
						<table cellpadding=\\"0\\" cellspacing=\\"0\\" width=\\"100%\\">
							<tr>
								<td colspan=\\"2\\"><input type=\\"text\\" name=\\"adrName\\" onChange=\\"updateAddressInfo(this.form.addresses, 0, this.value);\\" value=\\"Address Title\\" style=\\"width: 100%\\" disabled=\\"disabled\\" class=\\"bginput\\" /></td>
							</tr>
							<tr>
								<td colspan=\\"2\\"><textarea name=\\"adrStreet\\" rows=\\"4\\" onChange=\\"updateAddressInfo(this.form.addresses, 1, this.value);\\" style=\\"width: 99%\\" disabled=\\"disabled\\" />Street Address</textarea></td>
							</tr>
							<tr>
								<td colspan=\\"2\\"><input type=\\"text\\" name=\\"adrCity\\" onChange=\\"updateAddressInfo(this.form.addresses, 2, this.value);\\" value=\\"City\\" style=\\"width: 100%\\" disabled=\\"disabled\\" class=\\"bginput\\" /></td>
							</tr>
							<tr>
								<td width=\\"50%\\"><input type=\\"text\\" name=\\"adrState\\" onChange=\\"updateAddressInfo(this.form.addresses, 3, this.value);\\" value=\\"State/Province\\" style=\\"width: 97%\\" disabled=\\"disabled\\" class=\\"bginput\\" /></td>
								<td align=\\"right\\"><input type=\\"text\\" name=\\"adrZip\\" onChange=\\"updateAddressInfo(this.form.addresses, 4, this.value);\\" value=\\"Postal Code\\" style=\\"width: 97%\\" disabled=\\"disabled\\" class=\\"bginput\\" /></td>
							</tr>
							<tr>
								<td colspan=\\"2\\"><input type=\\"text\\" name=\\"adrCountry\\" onChange=\\"updateAddressInfo(this.form.addresses, 5, this.value);\\" value=\\"Country/Region\\" style=\\"width: 100%\\" disabled=\\"disabled\\" class=\\"bginput\\" /></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<br />
			<table width=\\"575\\" align=\\"center\\">
				<tr>
					<td>
						<select name=\\"phones\\" size=\\"7\\" style=\\"width: 265px\\" onClick=\\"autoSelect(this);\\" onChange=\\"if (this.selectedIndex == -1) { unloadTypeSelection(this.form.phonetypes); } else { reloadTypeSelection(this.options[this.selectedIndex], this.form.phonetypes); } updateDisabled(this, \'Phone\');\\">
							$phoneoptions
						</select>
					</td>
					<td>
						<select multiple=\\"multiple\\" name=\\"phonetypes\\" id=\\"typesPhone\\" disabled=\\"disabled\\" size=\\"7\\" style=\\"width: 170px\\" onChange=\\"updateTypeSelection(this.form.phones.options[this.form.phones.selectedIndex], this);\\">
							<option value=\\"".(defined("CONTACT_PHONE_HOME") ? constant("CONTACT_PHONE_HOME") : "{<CONTACT_PHONE_HOME>}")."\\">Home phone</option>
							<option value=\\"".(defined("CONTACT_PHONE_VOICE") ? constant("CONTACT_PHONE_VOICE") : "{<CONTACT_PHONE_VOICE>}")."\\">Voice messaging</option>
							<option value=\\"".(defined("CONTACT_PHONE_WORK") ? constant("CONTACT_PHONE_WORK") : "{<CONTACT_PHONE_WORK>}")."\\">Work phone</option>
							<option value=\\"".(defined("CONTACT_PHONE_FAX") ? constant("CONTACT_PHONE_FAX") : "{<CONTACT_PHONE_FAX>}")."\\">Fax number</option>
							<option value=\\"".(defined("CONTACT_PHONE_CELL") ? constant("CONTACT_PHONE_CELL") : "{<CONTACT_PHONE_CELL>}")."\\">Cellular phone</option>
							<option value=\\"".(defined("CONTACT_PHONE_PAGER") ? constant("CONTACT_PHONE_PAGER") : "{<CONTACT_PHONE_PAGER>}")."\\">Pager device</option>
						</select>
					</td>
					<td style=\\"width: 125px\\" valign=\\"top\\">
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"addPhone\\" value=\\"Add Phone\\" onClick=\\"insertItem(this.form.phones, \'phone number\', false); updateDisabled(this.form.phones, \'Phone\');\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"setDefPhone\\" value=\\"Set as Primary\\" onClick=\\"changeDefault(this.form.phones, \'phoneDef\');\\" disabled=\\"disabled\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"editPhone\\" value=\\"Edit Phone\\" onClick=\\"editItem(this.form.phones, \'phone number\', false); updateDisabled(this.form.phones, \'Phone\');\\" disabled=\\"disabled\\" class=\\"bginput\\" /><br />
						<input type=\\"button\\" style=\\"width: 100%\\" name=\\"removePhone\\" value=\\"Remove Phone\\" onClick=\\"removeItem(this.form.phones, \'phone number\', \'phoneDef\'); updateDisabled(this.form.phones, \'Phone\');\\" disabled=\\"disabled\\" class=\\"bginput\\" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<br />
<div align=\\"center\\">
".(($contact[userid] != 0 or $hiveuser[canadmin] ) ? ("<input type=\\"submit\\" class=\\"bginput\\" value=\\"Save Changes\\" />") : ("<input type=\\"submit\\" class=\\"bginput\\" value=\\"(Read Only)\\" disabled=\\"disabled\\" />"))."&nbsp;
<input type=\\"button\\" class=\\"bginput\\" value=\\"Close Window\\" onClick=\\"window.close();\\" />
</div>
</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'addbook_main' => 
  array (
    'templategroupid' => '4',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Address Book</title>
$css
<script type="text/javascript" src="misc/checkall.js"></script>
<script language="JavaScript" type="text/javascript">
<!--

function validateAddForm(theform) {
	var errors = \'\';
	if (theform.name.value.length < 1) {
		errors += \'You must provide a name\\n\';
	}
	if (theform.email.value.length < 1 || !theform.email.value.match(/([-a-zA-Z0-9!\\#$%&*+\\/=?^_`{|}~.]+@[a-zA-Z0-9]{1}[-.a-zA-Z0-9_]*\\.[a-zA-Z]{2,6})/i)) {
		errors += \'You must provide a valid e-mail address\\n\';
	}
	if (errors != \'\') {
		alert(\'Sorry, this address entry cannot be added:\\n\\n\'+errors);
	}
	if (errors == \'\') {
		popEdit(0);
		return true;
	} else {
		return false;
	}
}

function popEdit(contactID) {
	if (contactID == 0) {
		var hWnd = window.open("about:blank", "ContactAdd", "width=650,height=435,resizable=yes,scrollbars=yes");
	} else {
		var hWnd = window.open("addressbook.update.php?cmd=edit&contactid="+contactID, "ContactEdit", "width=650,height=435,resizable=yes,scrollbars=yes");
	}
	if ((document.window != null) && (!hWnd.opener)) {
		hWnd.opener = document.window;
	}
}

// -->
</script>
</head>
<body>
$header

<table cellpadding="0" cellspacing="0" class="normalTable">
<tr><td>

<table cellpadding="4" cellspacing="0" class="normalTable" width="730">
<tr class="headerRow">
	<th class="headerLeftCell" width="3%" nowrap="nowrap"><a href="addressbook.view.php?cmd=$cmd&contactgroupid=$contactgroupid&name=$name&cond=$cond&email=$email&letter=&perpage=$perpage&sortby=$sortby&sortorder=$sortorder"><span class="normalfonttablehead">All</span></a></th>
	$letters
</tr>
</table>

<br />

<form action="addressbook.add.php" method="post" name="addform" target="ContactAdd" onSubmit="return validateAddForm(this);">
<input type="hidden" name="cmd" value="insert" />
<input type="hidden" name="gotoedit" value="1" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="730">
<tr class="headerRow">
	<th class="headerBothCell" colspan="3"><span class="normalfonttablehead"><b>Add New Contact</b></span></th>
</tr>
<tr class="normalRow">
	<td class="highBothCell">
		<table width="100%">
			<tr>
				<td nowrap="nowrap"><span class="normalfont">Contact\'s name:</span></td>
				<td nowrap="nowrap"><span class="normalfont">Contact\'s email:</span></td>
				<td nowrap="nowrap"><span class="normalfont">Place in group:</span></td>
				<td nowrap="nowrap"><span class="normalfont">&nbsp;</span></td>
			</tr>
			<tr>
				<td><input type="text" class="bginput" name="name" value="" size="30" /></td>
				<td><input type="text" class="bginput" name="email" value="" size="30" /></td>
				<td><select name="contactgroupid" style="width: 145px">
					<option value="0">-----------------------</option>
					$groupoptions_selected
				</select></td>
				<td nowrap="nowrap"><input type="submit" class="bginput" name="submit" value="Add Contact" /></td>
			</tr>
		</table>
	</td>
</tr>
</table>
</form>

<form action="addressbook.update.php" method="post" name="form" target="_self">
<input type="hidden" name="cmd" value="update" />
<input type="hidden" name="grouptitle" value="" />

<table cellpadding="0" border="0" cellspacing="1" width="100%" align="center">
	<tr>
		<td valign="top">
		
<table cellpadding="4" cellspacing="0" class="normalTable" width="190">
<tr class="headerRow">
	<th class="headerLeftCell" nowrap="nowrap"><span class="normalfonttablehead"><b>Contact Groups</b></span></th>
	<th class="headerRightCell"><input name="allboxgroup" type="checkbox" value="Check All" title="Select/Deselect All" onClick="checkAll(this.form, \'groupcheck\');" /></th>
</tr>
<tr class="{$allGroupClass}Row">
	<td class="{$allGroupClass}LeftCell" width="100%"><span class="normalfont"><a href="addressbook.view.php?cmd=$cmd&contactgroupid=0&name=$name&cond=$cond&email=$email&letter=$curletter&perpage=$perpage&sortby=$sortby&sortorder=$sortorder">All contacts</a> ($allcontacts)</span></td>
	<td class="{$allGroupClass}RightCell" align="center">&nbsp;</td>
</tr>
$groups
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="190">
<tr>
	<td>
		<select name="dowhat" onChange="if (this.selectedIndex <= 1) { return false; } if (this.options[this.selectedIndex].value == \'delgroup\') { if (!confirm(\'Are you sure you want to remove the selected groups?\\n(Contacts in those groups will not be deleted from your address book)\')) { this.selectedIndex = 0; return false; } else { this.form.cmd.value = \'delgroup\'; } } else { this.form.grouptitle.value = prompt(\'Please enter a name for the new group:\', \'\'); if (this.form.grouptitle.value == \'\' || this.form.grouptitle.value == null) { return false; } else { this.form.cmd.value = \'addgroup\'; } } this.form.submit();">
			<option value="dowhat">Actions to perform...</option>
			<option value="--">---------------------</option>
			<option value="addgroup">Create new group</option>
			<option value="delgroup">Remove selected groups</option>
		</select>
	</td>
</tr>
<tr>
	<td><span class="smallfont">Showing contacts $limitlower to $limitupper of $totalcontacts<br />$pagenav</span></td>
</tr>
</table>

		</td>
		<td style="padding-left: 13px" width="100%" valign="top">

<table cellpadding="4" cellspacing="0" class="normalTable" width="525">
<tr class="headerRow">
	<th class="headerLeftCell" nowrap="nowrap"><span class="headerText"><a href="addressbook.view.php?cmd=$cmd&contactgroupid=$contactgroupid&name=$name&cond=$cond&email=$email&letter=$curletter&perpage=$perpage&sortby=name&sortorder=$newsortorder"><span class="normalfonttablehead"><b>Name</b></span>$sortimages[name]</a></span> <span class="smallfonttablehead">(click to edit)</span></th>
	<th class="headerCell" nowrap="nowrap"><span class="headerText"><a href="addressbook.view.php?cmd=$cmd&contactgroupid=$contactgroupid&name=$name&cond=$cond&email=$email&letter=$curletter&perpage=$perpage&sortby=email&sortorder=$newsortorder"><span class="normalfonttablehead"><b>Email</b></span>$sortimages[email]</a></span> <span class="smallfonttablehead">(click to email)</span></th>
	<th class="headerRightCell"><input name="allbox" type="checkbox" value="Check All" title="Select/Deselect All" onClick="checkAll(this.form, \'contactcheck\');" /></th>
</tr>
<%if empty($contacts) %>
<tr align="center" class="highRow">
	<td align="center" colspan="3" class="normalBothCell"><span class="normalfont"><%if !empty($sqlwhere) %>No contacts match criteria.<%elseif $contactgroupid != 0 %>No contacts in this group.<%else%>No contacts.<%endif%></span></td>
</tr>
<%else%>
$contacts
<%endif%>
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="525">
<tr>
	<td align="left"><span class="smallfont">
		<select name="dowhat" onChange="if (this.selectedIndex <= 1) { return false; } if (this.options[this.selectedIndex].value == \'delete\') { if (!confirm(\'<%if $contactgroupid == 0 %>Are you sure you want to delete the selected contacts?<%else%>Are you sure you want to remove the selected contacts from this group?\\n(They will not be deleted from your address book)<%endif%>\')) { this.selectedIndex = 0; return false; } } this.form.cmd.value = this.options[this.selectedIndex].value; if (this.form.cmd.value == \'export\') { this.form.action = \'addressbook.view.php\'; this.form.target = \'exportaddbook\'; var tarWin = window.open(\'about:blank\', \'exportaddbook\', \'toolbar=no,menubar=no,scrollbars=yes,height=225,width=425,status=no\'); if (document.window != null && !tarWin.opener) { tarWin.opener = document.window; } } else { this.form.action = \'addressbook.update.php\'; this.form.target = \'_self\'; } this.selectedIndex = 0; this.form.submit();">
			<option value="dowhat">Actions to perform...</option>
			<option value="--">---------------------</option>
			<option value="email">Email selected contacts</option>
			<option value="export">Export selected contacts</option>
			<option value="delete">Delete selected contacts</option>
		</select>
		<%if $isthereglobal %><br />Contacts that are marked with * cannot be edited or deleted.<%endif%></span>
	</td>
	<td valign="top" align="right">
		&nbsp;
		<select name="copyto" onChange="if (this.selectedIndex <= 1) { return false; } this.form.cmd.value = \'copy\'; this.form.submit();">
			<option value="dowhat">Copy contacts to...</option>
			<option value="--">---------------------</option>
			$groupoptions
		</select>
	</td>
</tr>
</table>

		</td>
	</tr>
</table>
</form>

<table align="left" width="730">
	<tr>
		<td width="50%" style="padding: 0px; padding-right: 5px;">
			<form action="addressbook.view.php" method="get" name="searchform">
			<input type="hidden" name="cmd" value="search" />
			<input type="hidden" name="perpage" value="$perpage" />

			<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
			<tr class="headerRow">
				<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Search Contacts</b></span></th>
			</tr>
			<tr class="highRow">
				<td class="highBothCell" align="center">
					<table width="100%" align="center">
						<tr>
							<td nowrap="nowrap" align="left" colspan="2"><span class="normalfont">Name contains:</span></td>
							<td><input type="text" class="bginput" name="name" value="$name" size="25" /></td>
						</tr>
						<tr>
							<td nowrap="nowrap" align="left"><select name="cond"><option value="and" $condselect[and]>And</option><option value="or" $condselect[or]>Or</option></select></td>
							<td nowrap="nowrap" align="left"><span class="normalfont">Email contains:</span></td>
							<td><input type="text" class="bginput" name="email" value="$email" size="25" /></td>
						</tr>
						<tr>
							<td nowrap="nowrap" align="left" colspan="2"><span class="normalfont">Contacts from group:</span></td>
							<td><select name="contactgroupid" style="width: 165px">
								<option value="0">-----------------------</option>
								$groupoptions_selected
							</select></td>
						</tr>
					</table>
					<br />
					<br />
					<input type="submit" class="bginput" value="Perform Search" />
				</td>
			</tr>
			</table>
			</form>
		</td>
		<td width="50%" style="padding: 0px; padding-left: 5px;">
			<form enctype="multipart/form-data" action="addressbook.add.php" name="composeform" method="post">
			<input type="hidden" name="cmd" value="upload" />

			<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
			<tr class="headerRow">
				<th class="headerBothCell"><span class="normalfonttablehead"><b>Import Contacts</b></span></th>
			</tr>
			<tr class="highRow">
				<td class="highBothCell"><span class="smallfont">Through here you can upload a CSV file, a vCard file or a ZIP archive with multiple vCards in it.<br /><br />
				<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
				<table cellspacing="0">
					<tr>
						<td><span class="smallfont">File to upload:</span></td>
						<td>&nbsp;&nbsp;<input type="file" class="bginput" name="attachment" /></td>
					</tr>
					<tr>
						<td><span class="smallfont">File format:</span></td>
						<td>&nbsp;&nbsp;<select name="format"><option value="csv">Single CSV file</option><option value="vcard">Single vCard file</option><option value="vzip">Multiple vCards (ZIP)</option></select></td>
					</tr>
				</table>
				<p align="center"><input type="submit" class="bginput" name="submit" value="Import Contacts" /></p></td>
			</tr>
			</table>
			</form>
		</td>
	</tr>
</table>

</td></tr>
</table>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Address Book</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" src=\\"misc/checkall.js\\"></script>
<script language=\\"JavaScript\\" type=\\"text/javascript\\">
<!--

function validateAddForm(theform) {
	var errors = \'\';
	if (theform.name.value.length < 1) {
		errors += \'You must provide a name\\\\n\';
	}
	if (theform.email.value.length < 1 || !theform.email.value.match(/([-a-zA-Z0-9!\\\\#$%&*+\\\\/=?^_`{|}~.]+@[a-zA-Z0-9]{1}[-.a-zA-Z0-9_]*\\\\.[a-zA-Z]{2,6})/i)) {
		errors += \'You must provide a valid e-mail address\\\\n\';
	}
	if (errors != \'\') {
		alert(\'Sorry, this address entry cannot be added:\\\\n\\\\n\'+errors);
	}
	if (errors == \'\') {
		popEdit(0);
		return true;
	} else {
		return false;
	}
}

function popEdit(contactID) {
	if (contactID == 0) {
		var hWnd = window.open(\\"about:blank\\", \\"ContactAdd\\", \\"width=650,height=435,resizable=yes,scrollbars=yes\\");
	} else {
		var hWnd = window.open(\\"addressbook.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=edit&contactid=\\"+contactID, \\"ContactEdit\\", \\"width=650,height=435,resizable=yes,scrollbars=yes\\");
	}
	if ((document.window != null) && (!hWnd.opener)) {
		hWnd.opener = document.window;
	}
}

// -->
</script>
</head>
<body>
$GLOBALS[header]

<table cellpadding=\\"0\\" cellspacing=\\"0\\" class=\\"normalTable\\">
<tr><td>

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"730\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerLeftCell\\" width=\\"3%\\" nowrap=\\"nowrap\\"><a href=\\"addressbook.view.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=$cmd&contactgroupid=$contactgroupid&name=$name&cond=$cond&email=$email&letter=&perpage=$perpage&sortby=$sortby&sortorder=$sortorder\\"><span class=\\"normalfonttablehead\\">All</span></a></th>
	$letters
</tr>
</table>

<br />

<form action=\\"addressbook.add.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"addform\\" target=\\"ContactAdd\\" onSubmit=\\"return validateAddForm(this);\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"insert\\" />
<input type=\\"hidden\\" name=\\"gotoedit\\" value=\\"1\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"730\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"3\\"><span class=\\"normalfonttablehead\\"><b>Add New Contact</b></span></th>
</tr>
<tr class=\\"normalRow\\">
	<td class=\\"highBothCell\\">
		<table width=\\"100%\\">
			<tr>
				<td nowrap=\\"nowrap\\"><span class=\\"normalfont\\">Contact\'s name:</span></td>
				<td nowrap=\\"nowrap\\"><span class=\\"normalfont\\">Contact\'s email:</span></td>
				<td nowrap=\\"nowrap\\"><span class=\\"normalfont\\">Place in group:</span></td>
				<td nowrap=\\"nowrap\\"><span class=\\"normalfont\\">&nbsp;</span></td>
			</tr>
			<tr>
				<td><input type=\\"text\\" class=\\"bginput\\" name=\\"name\\" value=\\"\\" size=\\"30\\" /></td>
				<td><input type=\\"text\\" class=\\"bginput\\" name=\\"email\\" value=\\"\\" size=\\"30\\" /></td>
				<td><select name=\\"contactgroupid\\" style=\\"width: 145px\\">
					<option value=\\"0\\">-----------------------</option>
					$groupoptions_selected
				</select></td>
				<td nowrap=\\"nowrap\\"><input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Add Contact\\" /></td>
			</tr>
		</table>
	</td>
</tr>
</table>
</form>

<form action=\\"addressbook.update.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"form\\" target=\\"_self\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />
<input type=\\"hidden\\" name=\\"grouptitle\\" value=\\"\\" />

<table cellpadding=\\"0\\" border=\\"0\\" cellspacing=\\"1\\" width=\\"100%\\" align=\\"center\\">
	<tr>
		<td valign=\\"top\\">
		
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"190\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerLeftCell\\" nowrap=\\"nowrap\\"><span class=\\"normalfonttablehead\\"><b>Contact Groups</b></span></th>
	<th class=\\"headerRightCell\\"><input name=\\"allboxgroup\\" type=\\"checkbox\\" value=\\"Check All\\" title=\\"Select/Deselect All\\" onClick=\\"checkAll(this.form, \'groupcheck\');\\" /></th>
</tr>
<tr class=\\"{$allGroupClass}Row\\">
	<td class=\\"{$allGroupClass}LeftCell\\" width=\\"100%\\"><span class=\\"normalfont\\"><a href=\\"addressbook.view.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=$cmd&contactgroupid=0&name=$name&cond=$cond&email=$email&letter=$curletter&perpage=$perpage&sortby=$sortby&sortorder=$sortorder\\">All contacts</a> ($allcontacts)</span></td>
	<td class=\\"{$allGroupClass}RightCell\\" align=\\"center\\">&nbsp;</td>
</tr>
$groups
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"190\\">
<tr>
	<td>
		<select name=\\"dowhat\\" onChange=\\"if (this.selectedIndex <= 1) { return false; } if (this.options[this.selectedIndex].value == \'delgroup\') { if (!confirm(\'Are you sure you want to remove the selected groups?\\\\n(Contacts in those groups will not be deleted from your address book)\')) { this.selectedIndex = 0; return false; } else { this.form.cmd.value = \'delgroup\'; } } else { this.form.grouptitle.value = prompt(\'Please enter a name for the new group:\', \'\'); if (this.form.grouptitle.value == \'\' || this.form.grouptitle.value == null) { return false; } else { this.form.cmd.value = \'addgroup\'; } } this.form.submit();\\">
			<option value=\\"dowhat\\">Actions to perform...</option>
			<option value=\\"--\\">---------------------</option>
			<option value=\\"addgroup\\">Create new group</option>
			<option value=\\"delgroup\\">Remove selected groups</option>
		</select>
	</td>
</tr>
<tr>
	<td><span class=\\"smallfont\\">Showing contacts $limitlower to $limitupper of $totalcontacts<br />$pagenav</span></td>
</tr>
</table>

		</td>
		<td style=\\"padding-left: 13px\\" width=\\"100%\\" valign=\\"top\\">

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"525\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerLeftCell\\" nowrap=\\"nowrap\\"><span class=\\"headerText\\"><a href=\\"addressbook.view.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=$cmd&contactgroupid=$contactgroupid&name=$name&cond=$cond&email=$email&letter=$curletter&perpage=$perpage&sortby=name&sortorder=$newsortorder\\"><span class=\\"normalfonttablehead\\"><b>Name</b></span>$sortimages[name]</a></span> <span class=\\"smallfonttablehead\\">(click to edit)</span></th>
	<th class=\\"headerCell\\" nowrap=\\"nowrap\\"><span class=\\"headerText\\"><a href=\\"addressbook.view.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=$cmd&contactgroupid=$contactgroupid&name=$name&cond=$cond&email=$email&letter=$curletter&perpage=$perpage&sortby=email&sortorder=$newsortorder\\"><span class=\\"normalfonttablehead\\"><b>Email</b></span>$sortimages[email]</a></span> <span class=\\"smallfonttablehead\\">(click to email)</span></th>
	<th class=\\"headerRightCell\\"><input name=\\"allbox\\" type=\\"checkbox\\" value=\\"Check All\\" title=\\"Select/Deselect All\\" onClick=\\"checkAll(this.form, \'contactcheck\');\\" /></th>
</tr>
".((empty($contacts) ) ? ("
<tr align=\\"center\\" class=\\"highRow\\">
	<td align=\\"center\\" colspan=\\"3\\" class=\\"normalBothCell\\"><span class=\\"normalfont\\">".((!empty($sqlwhere) ) ? ("No contacts match criteria.") : ((($contactgroupid != 0 ) ? ("No contacts in this group.") : ("No contacts."))))."</span></td>
</tr>
") : ("
$contacts
"))."
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"525\\">
<tr>
	<td align=\\"left\\"><span class=\\"smallfont\\">
		<select name=\\"dowhat\\" onChange=\\"if (this.selectedIndex <= 1) { return false; } if (this.options[this.selectedIndex].value == \'delete\') { if (!confirm(\'".(($contactgroupid == 0 ) ? ("Are you sure you want to delete the selected contacts?") : ("Are you sure you want to remove the selected contacts from this group?\\\\n(They will not be deleted from your address book)"))."\')) { this.selectedIndex = 0; return false; } } this.form.cmd.value = this.options[this.selectedIndex].value; if (this.form.cmd.value == \'export\') { this.form.action = \'addressbook.view.php{$GLOBALS[session_url]}\'; this.form.target = \'exportaddbook\'; var tarWin = window.open(\'about:blank\', \'exportaddbook\', \'toolbar=no,menubar=no,scrollbars=yes,height=225,width=425,status=no\'); if (document.window != null && !tarWin.opener) { tarWin.opener = document.window; } } else { this.form.action = \'addressbook.update.php{$GLOBALS[session_url]}\'; this.form.target = \'_self\'; } this.selectedIndex = 0; this.form.submit();\\">
			<option value=\\"dowhat\\">Actions to perform...</option>
			<option value=\\"--\\">---------------------</option>
			<option value=\\"email\\">Email selected contacts</option>
			<option value=\\"export\\">Export selected contacts</option>
			<option value=\\"delete\\">Delete selected contacts</option>
		</select>
		".(($isthereglobal ) ? ("<br />Contacts that are marked with * cannot be edited or deleted.") : (\'\'))."</span>
	</td>
	<td valign=\\"top\\" align=\\"right\\">
		&nbsp;
		<select name=\\"copyto\\" onChange=\\"if (this.selectedIndex <= 1) { return false; } this.form.cmd.value = \'copy\'; this.form.submit();\\">
			<option value=\\"dowhat\\">Copy contacts to...</option>
			<option value=\\"--\\">---------------------</option>
			$groupoptions
		</select>
	</td>
</tr>
</table>

		</td>
	</tr>
</table>
</form>

<table align=\\"left\\" width=\\"730\\">
	<tr>
		<td width=\\"50%\\" style=\\"padding: 0px; padding-right: 5px;\\">
			<form action=\\"addressbook.view.php{$GLOBALS[session_url]}\\" method=\\"get\\" name=\\"searchform\\">
			<input type=\\"hidden\\" name=\\"cmd\\" value=\\"search\\" />
			<input type=\\"hidden\\" name=\\"perpage\\" value=\\"$perpage\\" />

			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
			<tr class=\\"headerRow\\">
				<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Search Contacts</b></span></th>
			</tr>
			<tr class=\\"highRow\\">
				<td class=\\"highBothCell\\" align=\\"center\\">
					<table width=\\"100%\\" align=\\"center\\">
						<tr>
							<td nowrap=\\"nowrap\\" align=\\"left\\" colspan=\\"2\\"><span class=\\"normalfont\\">Name contains:</span></td>
							<td><input type=\\"text\\" class=\\"bginput\\" name=\\"name\\" value=\\"$name\\" size=\\"25\\" /></td>
						</tr>
						<tr>
							<td nowrap=\\"nowrap\\" align=\\"left\\"><select name=\\"cond\\"><option value=\\"and\\" $condselect[and]>And</option><option value=\\"or\\" $condselect[or]>Or</option></select></td>
							<td nowrap=\\"nowrap\\" align=\\"left\\"><span class=\\"normalfont\\">Email contains:</span></td>
							<td><input type=\\"text\\" class=\\"bginput\\" name=\\"email\\" value=\\"$email\\" size=\\"25\\" /></td>
						</tr>
						<tr>
							<td nowrap=\\"nowrap\\" align=\\"left\\" colspan=\\"2\\"><span class=\\"normalfont\\">Contacts from group:</span></td>
							<td><select name=\\"contactgroupid\\" style=\\"width: 165px\\">
								<option value=\\"0\\">-----------------------</option>
								$groupoptions_selected
							</select></td>
						</tr>
					</table>
					<br />
					<br />
					<input type=\\"submit\\" class=\\"bginput\\" value=\\"Perform Search\\" />
				</td>
			</tr>
			</table>
			</form>
		</td>
		<td width=\\"50%\\" style=\\"padding: 0px; padding-left: 5px;\\">
			<form enctype=\\"multipart/form-data\\" action=\\"addressbook.add.php{$GLOBALS[session_url]}\\" name=\\"composeform\\" method=\\"post\\">
			<input type=\\"hidden\\" name=\\"cmd\\" value=\\"upload\\" />

			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
			<tr class=\\"headerRow\\">
				<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Import Contacts</b></span></th>
			</tr>
			<tr class=\\"highRow\\">
				<td class=\\"highBothCell\\"><span class=\\"smallfont\\">Through here you can upload a CSV file, a vCard file or a ZIP archive with multiple vCards in it.<br /><br />
				<input type=\\"hidden\\" name=\\"MAX_FILE_SIZE\\" value=\\"10485760\\" />
				<table cellspacing=\\"0\\">
					<tr>
						<td><span class=\\"smallfont\\">File to upload:</span></td>
						<td>&nbsp;&nbsp;<input type=\\"file\\" class=\\"bginput\\" name=\\"attachment\\" /></td>
					</tr>
					<tr>
						<td><span class=\\"smallfont\\">File format:</span></td>
						<td>&nbsp;&nbsp;<select name=\\"format\\"><option value=\\"csv\\">Single CSV file</option><option value=\\"vcard\\">Single vCard file</option><option value=\\"vzip\\">Multiple vCards (ZIP)</option></select></td>
					</tr>
				</table>
				<p align=\\"center\\"><input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Import Contacts\\" /></p></td>
			</tr>
			</table>
			</form>
		</td>
	</tr>
</table>

</td></tr>
</table>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'addbook_main_entry' => 
  array (
    'templategroupid' => '4',
    'user_data' => '<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="45%"><span class="normalfont"><a href="addressbook.update.php?contactid=$addbook[contactid]" onClick="popEdit($addbook[contactid]); return false;">$addbook[name]</a></span></td>
	<td class="{classname}Cell" width="45%"><span class="normalfont"><a href="compose.email.php?email=$addbook[link]">$addbook[email]</a></span></td>
	<td class="{classname}RightCell" align="center"><%if $addbook[userid] == 0 %>&nbsp;<%endif%><input type="checkbox" name="contactcheck[$addbook[contactid]]" value="yes" onClick="checkMain(this.form, \'contactcheck\');" /><%if $addbook[userid] == 0 %><span class="smallfont" title="This predefined contact cannot be modified.">*</span><%endif%></td>
</tr>
',
    'parsed_data' => '"<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"45%\\"><span class=\\"normalfont\\"><a href=\\"addressbook.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}contactid=$addbook[contactid]\\" onClick=\\"popEdit($addbook[contactid]); return false;\\">$addbook[name]</a></span></td>
	<td class=\\"{classname}Cell\\" width=\\"45%\\"><span class=\\"normalfont\\"><a href=\\"compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}email=$addbook[link]\\">$addbook[email]</a></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"center\\">".(($addbook[userid] == 0 ) ? ("&nbsp;") : (\'\'))."<input type=\\"checkbox\\" name=\\"contactcheck[$addbook[contactid]]\\" value=\\"yes\\" onClick=\\"checkMain(this.form, \'contactcheck\');\\" />".(($addbook[userid] == 0 ) ? ("<span class=\\"smallfont\\" title=\\"This predefined contact cannot be modified.\\">*</span>") : (\'\'))."</td>
</tr>
"',
    'upgraded' => '0',
  ),
  'addbook_mini' => 
  array (
    'templategroupid' => '4',
    'user_data' => '$skin[doctype]
<html>
<head>
<title>$appname: Address Book</title>
$css
<script language="Javascript">
<!--

self.focus();
var oneListOnly = $onelistonly;
$groupVars

<%if $local %>
var local = 1;
<%else%>
var local = 0;
<%endif%>
<%if $newevent %>
var newevent = 1;
<%else%>
var newevent = 0;
<%endif%>
<%if $cmd2 %>
var cmd = \'$cmd2\';
<%else%>
var cmd = \'\';
<%endif%>

// -->
</script>
<script type="text/javascript" src="misc/addressbook.js"></script>
</head>
<body style="background-color: #C7E1F4;">

$header

<form action="addressbook.view.php" method="post" name="contactsform" onSubmit="return false;">

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell"><span class="normalfonttablehead"><b>Address Book</b></span></th>
</tr>
</table>

<table align="center">
	<tr>
		<td rowspan="<%if !$onelistonly %>3<%else%>1<%endif%>" width="50%">
			<table cellpadding="2" cellspacing="0" border="0" width="100%">
				<tr>
					<td><span class="smallfont"><input type="button" value=" All " onClick="selectAll(this.form.contacts);" class="bginput" name="allbutton" />&nbsp;</span></td>
					<td width="100%">
						<select name="group" style="width: 100%" onChange="updateList(this.options[this.selectedIndex].value, this.form);">
							<option value="0">All contacts</option>
							$groupoptions
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<select name="contacts" style="width: 100%" multiple="multiple" size="<%if !$onelistonly %>19<%else%>10<%endif%>" onChange="updateDisabled(this.form, \'adds\');">
							$contacts
						</select>
					</td>
				</tr>
			</table>
		</td>
		<%if !$onelistonly %>
		<td>
			<input type="button" style="width: 55px;" value="To ->" onClick="addto(this.form, \'to\');" class="bginput" disabled="disabled" name="toto" /><br />
			<input type="button" style="width: 55px;" value="Delete" onClick="deleteAdds(this.form, \'to\');" class="bginput" disabled="disabled" name="deleteto" />
		</td>
		<td width="50%">
			<br /><span class="normalfont">To recipients:</span><br />
			<select name="tolist[]" style="width: 100%" id="to" multiple="multiple" size="5" onChange="updateDisabled(this.form, \'to\');">
			$to
			</select>
		</td>
		<%else%>
		<td>
			<input type="button" style="width: 55px;" value="Add" onClick="addto(this.form, \'to\');" class="bginput" disabled="disabled" name="toto" /><br />
			<input type="button" style="width: 55px;" value="Delete" onClick="deleteAdds(this.form, \'to\');" class="bginput" disabled="disabled" name="deleteto" />
		</td>
		<td width="50%">
			<br /><span class="normalfont">Selected contacts:</span><br />
			<select name="tolist[]" style="width: 100%" id="to" multiple="multiple" size="9" onChange="updateDisabled(this.form, \'to\');">
			$to
			</select>
		</td>
		<%endif%>
	</tr>
	<%if !$onelistonly %>
	<tr>
		<td>
			<input type="button" style="width: 55px;" value="Cc ->" onClick="addto(this.form, \'cc\');" class="bginput" disabled="disabled" name="tocc" /><br />
			<input type="button" style="width: 55px;" value="Delete" onClick="deleteAdds(this.form, \'cc\');" class="bginput" disabled="disabled" name="deletecc" />
		</td>
		<td width="50%">
			<span class="normalfont">CC recipients:</span><br />
			<select name="cclist[]" style="width: 100%" id="cc" multiple="multiple" size="5" onChange="updateDisabled(this.form, \'cc\');">
			$cc
			</select>
		</td>
	</tr>
	<tr>
		<td>
			<input type="button" style="width: 55px;" value="Bcc ->" onClick="addto(this.form, \'bcc\');" class="bginput" disabled="disabled" name="tobcc" /><br />
			<input type="button" style="width: 55px;" value="Delete" onClick="deleteAdds(this.form, \'bcc\');" class="bginput" disabled="disabled" name="deletebcc" />
		</td>
		<td width="50%">
			<span class="normalfont">BCC recipients:</span><br />
			<select name="bcclist[]" style="width: 100%" id="bcc" multiple="multiple" size="5" onChange="updateDisabled(this.form, \'bcc\');">
			$bcc
			</select>
		</td>
	</tr>
	<%endif%>
	<tr>
		<td align="left">
			<table cellpadding="2" cellspacing="0" border="0" width="100%">
				<tr>
					<td width="100%"><input type="text" name="find" value="" onKeyUp="findContact(this, this.form.contacts);" class="bginput" style="padding: 2px; width: 100%" /></td>
					<td><span class="smallfont">&nbsp;<input type="button" value=" Find " onClick="findContact(this.form.find, this.form.contacts);" class="bginput" name="findbutton" /></span></td>
				</tr>
			</table>
		</td>
		<td align="left"><span class="normalfont">&nbsp;</span></td>
		<td align="right" style="padding: 2px"><select name="who" style="width: 100%"></select></td>
	</tr>
</table>

<br />
<div align="center">
<input type="submit" class="bginput" value="OK" onClick="extractList(this.form);" />&nbsp;&nbsp;
<input type="button" class="bginput" value="Cancel" onClick="window.close();" />
</div>
</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head>
<title>$appname: Address Book</title>
$GLOBALS[css]
<script language=\\"Javascript\\">
<!--

self.focus();
var oneListOnly = $onelistonly;
$groupVars

".(($local ) ? ("
var local = 1;
") : ("
var local = 0;
"))."
".(($newevent ) ? ("
var newevent = 1;
") : ("
var newevent = 0;
"))."
".(($cmd2 ) ? ("
var cmd = \'$cmd2\';
") : ("
var cmd = \'\';
"))."

// -->
</script>
<script type=\\"text/javascript\\" src=\\"misc/addressbook.js\\"></script>
</head>
<body style=\\"background-color: #C7E1F4;\\">

$GLOBALS[header]

<form action=\\"addressbook.view.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"contactsform\\" onSubmit=\\"return false;\\">

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Address Book</b></span></th>
</tr>
</table>

<table align=\\"center\\">
	<tr>
		<td rowspan=\\"".((!$onelistonly ) ? ("3") : ("1"))."\\" width=\\"50%\\">
			<table cellpadding=\\"2\\" cellspacing=\\"0\\" border=\\"0\\" width=\\"100%\\">
				<tr>
					<td><span class=\\"smallfont\\"><input type=\\"button\\" value=\\" All \\" onClick=\\"selectAll(this.form.contacts);\\" class=\\"bginput\\" name=\\"allbutton\\" />&nbsp;</span></td>
					<td width=\\"100%\\">
						<select name=\\"group\\" style=\\"width: 100%\\" onChange=\\"updateList(this.options[this.selectedIndex].value, this.form);\\">
							<option value=\\"0\\">All contacts</option>
							$groupoptions
						</select>
					</td>
				</tr>
				<tr>
					<td colspan=\\"2\\">
						<select name=\\"contacts\\" style=\\"width: 100%\\" multiple=\\"multiple\\" size=\\"".((!$onelistonly ) ? ("19") : ("10"))."\\" onChange=\\"updateDisabled(this.form, \'adds\');\\">
							$contacts
						</select>
					</td>
				</tr>
			</table>
		</td>
		".((!$onelistonly ) ? ("
		<td>
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"To ->\\" onClick=\\"addto(this.form, \'to\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"toto\\" /><br />
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Delete\\" onClick=\\"deleteAdds(this.form, \'to\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"deleteto\\" />
		</td>
		<td width=\\"50%\\">
			<br /><span class=\\"normalfont\\">To recipients:</span><br />
			<select name=\\"tolist[]\\" style=\\"width: 100%\\" id=\\"to\\" multiple=\\"multiple\\" size=\\"5\\" onChange=\\"updateDisabled(this.form, \'to\');\\">
			$to
			</select>
		</td>
		") : ("
		<td>
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Add\\" onClick=\\"addto(this.form, \'to\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"toto\\" /><br />
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Delete\\" onClick=\\"deleteAdds(this.form, \'to\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"deleteto\\" />
		</td>
		<td width=\\"50%\\">
			<br /><span class=\\"normalfont\\">Selected contacts:</span><br />
			<select name=\\"tolist[]\\" style=\\"width: 100%\\" id=\\"to\\" multiple=\\"multiple\\" size=\\"9\\" onChange=\\"updateDisabled(this.form, \'to\');\\">
			$to
			</select>
		</td>
		"))."
	</tr>
	".((!$onelistonly ) ? ("
	<tr>
		<td>
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Cc ->\\" onClick=\\"addto(this.form, \'cc\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"tocc\\" /><br />
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Delete\\" onClick=\\"deleteAdds(this.form, \'cc\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"deletecc\\" />
		</td>
		<td width=\\"50%\\">
			<span class=\\"normalfont\\">CC recipients:</span><br />
			<select name=\\"cclist[]\\" style=\\"width: 100%\\" id=\\"cc\\" multiple=\\"multiple\\" size=\\"5\\" onChange=\\"updateDisabled(this.form, \'cc\');\\">
			$cc
			</select>
		</td>
	</tr>
	<tr>
		<td>
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Bcc ->\\" onClick=\\"addto(this.form, \'bcc\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"tobcc\\" /><br />
			<input type=\\"button\\" style=\\"width: 55px;\\" value=\\"Delete\\" onClick=\\"deleteAdds(this.form, \'bcc\');\\" class=\\"bginput\\" disabled=\\"disabled\\" name=\\"deletebcc\\" />
		</td>
		<td width=\\"50%\\">
			<span class=\\"normalfont\\">BCC recipients:</span><br />
			<select name=\\"bcclist[]\\" style=\\"width: 100%\\" id=\\"bcc\\" multiple=\\"multiple\\" size=\\"5\\" onChange=\\"updateDisabled(this.form, \'bcc\');\\">
			$bcc
			</select>
		</td>
	</tr>
	") : (\'\'))."
	<tr>
		<td align=\\"left\\">
			<table cellpadding=\\"2\\" cellspacing=\\"0\\" border=\\"0\\" width=\\"100%\\">
				<tr>
					<td width=\\"100%\\"><input type=\\"text\\" name=\\"find\\" value=\\"\\" onKeyUp=\\"findContact(this, this.form.contacts);\\" class=\\"bginput\\" style=\\"padding: 2px; width: 100%\\" /></td>
					<td><span class=\\"smallfont\\">&nbsp;<input type=\\"button\\" value=\\" Find \\" onClick=\\"findContact(this.form.find, this.form.contacts);\\" class=\\"bginput\\" name=\\"findbutton\\" /></span></td>
				</tr>
			</table>
		</td>
		<td align=\\"left\\"><span class=\\"normalfont\\">&nbsp;</span></td>
		<td align=\\"right\\" style=\\"padding: 2px\\"><select name=\\"who\\" style=\\"width: 100%\\"></select></td>
	</tr>
</table>

<br />
<div align=\\"center\\">
<input type=\\"submit\\" class=\\"bginput\\" value=\\"OK\\" onClick=\\"extractList(this.form);\\" />&nbsp;&nbsp;
<input type=\\"button\\" class=\\"bginput\\" value=\\"Cancel\\" onClick=\\"window.close();\\" />
</div>
</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'calendar_event_write' => 
  array (
    'templategroupid' => '18',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: <%if $newevent %>Add New Event<%elseif $event[eventtype] == -2 %>View Shared Event<%elseif $event[eventtype] == -1 %>View Global Event<%else%>Modify Event<%endif%></title>
$css
<script type="text/javascript" src="misc/common.js"></script>
<script type="text/javascript" src="misc/checkall.js"></script>
<script type="text/javascript" src="misc/cookies.js"></script>
<script type="text/javascript" src="misc/collapse.js"></script>
<script language="JavaScript">
<!--

function popAddBook (local) {
	var url = "addressbook.view.php?cmd=mini";
	if (local == 1) {
		url += "&frompage=event&cmd2=update2&local=1<%if $newevent %>&newevent=1<%endif%><%if $hiveuser[shareonlyglobal] %>&onlyglobal=1<%endif%>&pre[list]=" + escape(document.forms.eventform.eventlistaddresses.value);
	} else {
		url += "&pre[list]=" + escape (document.forms.eventform.addresses.value);
	}
	var hWnd = window.open(url,"AddBook","width=530,height=345,resizable=yes,scrollbars=yes,menubar=yes");
	if ((document.window != null) && (!hWnd.opener)) {
		hWnd.opener = document.window;
	}
}

function getDay(tform, which) {
	var date = new Date(eval(\'tform.\'+which+\'year\').value, eval(\'tform.\'+which+\'month\').value - 1, eval(\'tform.\'+which+\'day\').value);
	eval(\'tform.\'+which+\'dayname\').value = DayNames[date.getDay()];
}

function doVal(tform) {
	if (tform.eventtype.value == -2 && tform.eventlistaddresses.value == \'\') {
		alert(\'You must choose at least one user to share this event with. Otherwise, you must change the Event Type to Normal.\');
		return false;
	}
	return true;
}

// Names of days that will be shown next to the date
var DayNames = new Array(\'($skin[cal_sun_long])\', \'($skin[cal_mon_long])\', \'($skin[cal_tue_long])\', \'($skin[cal_wed_long])\', \'($skin[cal_thu_long])\', \'($skin[cal_fri_long])\', \'($skin[cal_sat_long])\');
var contacts = new Array($contactArray);

// -->
</script>
<script type="text/javascript" src="misc/autocomplete.js"></script>
</head>
<body>
$header

<form action="calendar.event.php" method="post" name="eventform" onsubmit="doVal(this.form)">
<input type="hidden" name="cmd" value="update" />
<%if !$newevent %>
<input type="hidden" name="eventid" value="$event[eventid]" />
<input type="hidden" name="cmd2" value="" />
<%endif%>
<input type="hidden" name="eventlistaddresses" value="$eventlistaddresses" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Event Information</b> <img src="images/arrow_up.gif" name="info" onClick="renderSect(new Array(\'eventinfo\'), \'info\');" border="0" style="cursor: pointer; vertical-align: middle;" /></span></th>
</tr>
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700" id="eventinfo">
<%if $event[eventtype] == -2 %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Event Poster:</b></span></td>
	<td class="{classname}RightCell" width="70%" align="right"><input type="text" name="eventposter" class="{classname}InactiveLink" readonly="readonly" size="76" value="$event[poster]$domain" onMouseOver="this.className=\'{classname}InactiveLinkHover\'; window.status=\'{$appurl}compose.email.php?data[to]=$event[poster]$domain\';" onMouseOut="this.className=\'{classname}InactiveLink\'; window.status=\'\';" onClick="window.location=\'compose.email.php?data[to]=$event[poster]$domain\'" style="cursor:pointer;" /></td>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Event Title:</b></span></td>
	<td class="{classname}RightCell" width="70%" align="right"><input type="text" class="bginput" name="title" value="$event[title]" size="76" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" colspan="2">
		<table cellpadding="0" cellspacing="0" border="0">
			<tr valign="top">
				<td><textarea name="message" style="width: 686px; height: 180px;" wrap="virtual" id="tmessage">$event[message]</textarea></td>
			</tr>
		</table>
	</td>
</tr>
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b><a href="#stayhere" onClick="popAddBook(0); return false;"><img src="$skin[images]/addbook.gif" alt="Address Book" border="0" /></a> Related email addresses:</b></span></td>
	<td class="{classname}RightCell" width="70%" align="right"><input type="text" class="bginput" name="addresses" id="addresses" value="$event[addresses]" autocomplete="off" onKeyUp="autoComplete(this, contacts);" size="73" /></td>
</tr>
</table>

<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Event Date and Time</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Event Date:</b></span></td>
	<td class="{classname}RightCell" width="70%" nowrap="nowrap"><span class="normalfont">
		<select name="frommonth" onChange="getDay(this.form, \'from\');">
			$frommonthsel
		</select>
		<select name="fromday" onChange="getDay(this.form, \'from\');">
			$fromdaysel
		</select>
		<select name="fromyear" onChange="getDay(this.form, \'from\');">
			$fromyearsel
		</select>
		<input type="text" name="fromdayname" class="{classname}Inactive" readonly="readonly" value="$fromdayname" size="12" />
		</span>
	</td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Event Time:</b></span></td>
	<td class="{classname}RightCell" width="70%">
		<table>
			<tr>
				<td nowrap="nowrap">
					<span class="normalfont">Starts at:</span>
				</td>
				<td nowrap="nowrap">
					<select name="fromhour" $timedisabled>
						$fromhoursel
					</select>
					<select name="fromminute" $timedisabled>
						$fromminutesel
					</select>
					<%if !getop(\'cal_use24\') %>
					<select name="fromampm" $timedisabled>
						<option value="am" $fromampmsel[am]>AM</option>
						<option value="pm" $fromampmsel[pm]>PM</option>
					</select>
					<%else%>
					<input type="hidden" name="fromampm" value="" />
					<%endif%>
				</td>
			</tr>
			<tr>
				<td nowrap="nowrap">
					<span class="normalfont">Duration:</span>
				</td>
				<td nowrap="nowrap">
					<span class="normalfont">
					<select name="durhours" $timedisabled>
						$durhourssel
					</select>
					<select name="durminutes" $timedisabled>
						$durminutessel
					</select></span>
				</td>
				<td nowrap="nowrap">
					<span class="normalfont">
					<input type="checkbox" name="allday" $alldaychecked id="allday" value="1" onClick="this.form.fromhour.disabled = this.form.fromminute.disabled = this.form.fromampm.disabled = this.form.durhours.disabled = this.form.durminutes.disabled = this.checked;" /> <label for="allday">All day event</label>
					</span>
				</td>
			</tr>
		</table>
	</td>
</tr>
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Recurrence Options</b> <img src="images/arrow_up.gif" name="recur" onClick="if (document.forms.eventform.recur_yes.checked == true) { renderSect(new Array(\'recurrence\', \'recuropt\'), \'recur\') } else { renderSect(new Array(\'recurrence\'), \'recur\'); }" border="0" style="cursor: pointer; vertical-align: middle;" /></span></th>
</tr>
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700" id="recurrence" $recurinitdisplay>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont">&nbsp;</span></td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurtype" id="recur_none" value="0" onClick="document.forms.eventform.recur_yes.checked = false; render(2, \'recuropt\')" $typecheck[0] /> <label for="recur_none">One Time Event</label><br />
		<input type="radio" name="dorecur" id="recur_yes" value="0" onClick="document.forms.eventform.recur_none.checked = false; render(1, \'recuropt\');" $recurcheck /> <label for="recur_yes">Recurring Event</label>
	</span></td>
</tr>
</table>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700" id="recuropt" $recurdisplay>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Recurrence Pattern:</b></span></td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurtype" id="recur_daily" value="1" $typecheck[1] /> <label for="recur_daily">Recur every &nbsp;</label><input type="text" class="bginput" name="daily_every" value="$daily_every" size="3" maxlength="3" onClick="this.form.recur_daily.checked = true;" /><label for="recur_daily">&nbsp; day(s)</label><br />
		<input type="radio" name="recurtype" id="recur_weekday" value="2" $typecheck[2] /> <label for="recur_weekday">Recur every weekday</label>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top">&nbsp;</td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurtype" id="recur_weekly" value="3" $typecheck[3] /> <label for="recur_weekly">Recur every &nbsp;</label><input type="text" class="bginput" name="weekly_every" value="$weekly_every" size="3" maxlength="3" onClick="this.form.recur_weekly.checked = true;" /><label for="recur_weekly">&nbsp; week(s) on:</label></b></span><br />
			<table width="80%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="1" $weeklycheck[1] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_sun" /> <label for="weekly_sun">$skin[cal_sun_long]</label></span></td>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="2" $weeklycheck[2] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_mon" /> <label for="weekly_mon">$skin[cal_mon_long]</label></span></td>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="3" $weeklycheck[3] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_tue" /> <label for="weekly_tue">$skin[cal_tue_long]</label></span></td>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="4" $weeklycheck[4] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_wed" /> <label for="weekly_wed">$skin[cal_wed_long]</label></span></td>
				</tr>
				<tr>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="5" $weeklycheck[5] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_thu" /> <label for="weekly_thu">$skin[cal_thu_long]</label></span></td>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="6" $weeklycheck[6] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_fri" /> <label for="weekly_fri">$skin[cal_fri_long]</label></span></td>
					<td width="25%"><span class="smallfont"><input type="checkbox" name="weekly_repon[]" value="7" $weeklycheck[7] onClick="checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" id="weekly_sat" /> <label for="weekly_sat">$skin[cal_sat_long]</label></span></td>
					<td width="25%"><span class="smallfont"><input name="allbox" id="allbox" type="checkbox" value="Check All" $weeklycheck[all] title="Select/Deselect All" onClick="checkAll(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;" /> <label for="allbox">All days</label></span></td>
				</tr>
			</table>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top">&nbsp;</td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurtype" id="recur_monthly" value="4" $typecheck[4] /> <label for="recur_monthly">Recur on day</label>
			&nbsp;<select name="monthly_on" onChange="this.form.recur_monthly.checked = true;">
				$monthly_onsel
			</select>&nbsp;
			<label for="recur_monthly">every &nbsp;</label><input type="text" class="bginput" name="monthly_every" value="$monthly_every" size="3" maxlength="3" onClick="this.form.recur_monthly.checked = true;" /><label for="recur_monthly">&nbsp; months(s)
			</label>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top">&nbsp;</td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurtype" id="recur_yearly" value="5" $typecheck[5] /> <label for="recur_yearly">Recur on
			&nbsp;</label><select name="yearly_month" onChange="this.form.recur_yearly.checked = true;">
				$yearly_monthsel
			</select>
			<select name="yearly_day" onChange="this.form.recur_yearly.checked = true;">
				$yearly_daysel
			</select>&nbsp;
			<label for="recur_yearly">every &nbsp;</label><input type="text" class="bginput" name="yearly_every" value="$yearly_every" size="3" maxlength="3" onClick="this.form.recur_yearly.checked = true;" /><label for="recur_yearly">&nbsp; year(s)
			</label>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Recurrence Range:</b></span></td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurend" id="recurend_none" value="0" $ending[0] /> <label for="recurend_none">No end date</label>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top">&nbsp;</td>
	<td class="{classname}RightCell" width="70%"><span class="normalfont">
		<input type="radio" name="recurend" id="recur_count" value="1" $ending[1] /> <label for="recur_count">End after &nbsp;</label><input type="text" class="bginput" name="end_after" value="$end_after" size="3" maxlength="3" onClick="this.form.recur_count.checked = true;" /><label for="recur_count">&nbsp; occurrences</label>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top">&nbsp;</td>
	<td class="{classname}RightCell" width="70%" nowrap="nowrap"><span class="normalfont">
		<input type="radio" name="recurend" id="recurend_date" value="2" $ending[2] /> <label for="recurend_date">End by:</label>
		&nbsp;<select name="tomonth" onChange="this.form.recurend_date.checked = true; getDay(this.form, \'to\');" onChange="">
			$tomonthsel
		</select>
		<select name="today" onChange="this.form.recurend_date.checked = true; getDay(this.form, \'to\');">
			$todaysel
		</select>
		<select name="toyear" onChange="this.form.recurend_date.checked = true; getDay(this.form, \'to\');">
			$toyearsel
		</select>
		<input type="text" name="todayname" class="{classname}Inactive" readonly="readonly" value="" size="12" />
	</span></td>
</tr>
</table>

<%if ($newevent and ($hiveuser[canadmin] or $hiveuser[cansharedevents])) or
$hiveuser[canadmin] or
($hiveuser[cansharedevents] and $event[eventtype] == -2 and ($hiveuser[userid] == $event[userid] or
$event[shareoptions] & CAL_SHARE_CANEDIT)) %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Event Options</b> <img src="images/arrow_up.gif" name="opt" onClick="<%if $hiveuser[userid] == $event[userid] || $newevent %>if (document.forms.eventform.regevent.checked == true || document.forms.eventform.globalevent.checked == true) { renderSect(new Array(\'eventopt\'), \'opt\'); } else if (document.forms.eventform.shareevent.checked == true) { renderSect(new Array(\'eventopt\', \'eventshareopt\'), \'opt\'); }<%else%>renderSect(new Array(\'eventshareopt\'), \'opt\');<%endif%>" border="0" style="cursor: pointer; vertical-align: middle;" /></span></th>
</tr>
</table>
<%if $hiveuser[userid] == $event[userid] || $newevent %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700" id="eventopt">
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Event Type:</b></span></td>
	<td class="{classname}RightCell" width="70%" nowrap="nowrap"><span class="normalfont">
	<label for="regevent"><input type="radio" name="eventtype" id="regevent" onClick="render(2, \'eventshareopt\')" value="0" $eventtypecheck0 /> Normal Event</label><br />
	<%if $hiveuser[cansharedevents] %><label for="shareevent"><input type="radio" name="eventtype" id="shareevent" onClick="render(1, \'eventshareopt\')" value="-2" $eventtypecheck2 /> Shared Event</label> <%help {Selecting this option allows you to share this event with other $slashedappname users. After selecting this option, you will be able to select the users below.} %><br /><%endif%>
	<%if $hiveuser[canadmin] %><label for="globalevent"><input type="radio" name="eventtype" id="globalevent" onClick="render(2, \'eventshareopt\')" value="-1" $eventtypecheck1 /> Global Event</label> <%help {Global events are created by administrators and shown on the calendars of users whose usergroup has permission to view them.} %><%endif%>
	</span></td>
</tr>
</table>
<%endif%>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700" id="eventshareopt" $shareinitdisplay>
<%if $hiveuser[userid] == $event[userid] || $newevent %>
<tr id="shareoptions" class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Share Options:</b></span></td>
	<td class="{classname}RightCell" width="70%" nowrap="nowrap"><label for="shareedit"><span class="normalfont"><input type="checkbox" name="shareedit" id="shareedit" value="1" $shareeditcheck /> Shared group members can modify this event</label></span><br />
	<span class="normalfont"><label for="shareforward"><input type="checkbox" name="shareforward" id="shareforward" value="1" $sharefwdcheck /> Shared group members can share this event with others</label></span><br />
	<span class="normalfont"><label for="sharelist"><input type="checkbox" name="sharelist" id="sharelist" value="1" $sharelistcheck /> Shared group members can see whole list of shared group members</label></span>
	</span></td>
</tr>
<%endif%>
<%if ($event[eventtype] == -2 and $event[shareoptions] & CAL_EVENT_CANLIST) or $event[userid] == $hiveuser[userid] or $newevent %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><%if $event[shareoptions] & CAL_SHARE_CANEDIT or $event[userid] == $hiveuser[userid] or $newevent %><a href="#stayhere" onClick="popAddBook(1); return false;"><img src="$skin[images]/addbook.gif" alt="Address Book" border="0" /></a> <%endif%><b>Shared Event Userlist:</b> <%if $event[shareoptions] & CAL_SHARE_CANEDIT or $event[userid] == $hiveuser[userid] or $newevent %><%help {To add users here, they must exist in your address book. Click the Address Book icon to the left to add or modify users on this list.} %><%endif%></span></td>
	<td class="{classname}RightCell" width="70%" valign="top" align="right">
	$event[groupuserlist]
	<%if $addl > 0 %>
	<input type="text" size="76" readonly="readonly" class="{classname}Inactive" value="Plus $addl other users who chose to not be listed." />
	<%endif%>
	</td>
</tr>
<%endif%>
<%if $event[userid] == $hiveuser[userid] and $event[eventtype] == -2 and !$newevent %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="30%" valign="top"><span class="normalfont"><b>Event Notes:</b></span><br /><span class="smallfont">(only visible to you)</span></td>
	<td class="{classname}RightCell" width="70%" valign="top" align="right"><textarea name="eventnotes" cols="73" rows="5">$event[notes]</textarea></td>
</tr>
<%endif%>
</table>
<%endif%>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr>
    <td align="center">
        <input type="submit" class="bginput" name="updateevent" value="<%if $newevent %>Create<%else%>Update <%endif%> Event" />
        <input type="reset" class="bginput" name="reset" value="Reset Fields" />
<%if !$newevent and $event[userid] == $hiveuser[userid] %>
        <input type="submit" class="bginput" name="deleteevent" value="Delete Event" onClick="document.eventform.cmd.value=\'delete\'; return true;" />
<%endif%>
    </td>
</tr>
</table>

<%if $event[eventtype] == -2 and (($event[canforward] or $event[shareoptions] & CAL_SHARE_CANLIST) or $event[userid] == $hiveuser[userid]) %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="700">
<tr>
	<td align="center">
		<%if $event[shareoptions] & CAL_SHARE_CANFWD or $event[userid] == $hiveuser[userid] %>
		<input type="submit" class="bginput" name="forwardevent" value="Forward Event" onClick="document.eventform.cmd.value=\'forward\'; return true;" />
		<%endif%>
		<%if $event[shareoptions] & CAL_SHARE_CANLIST or $event[userid] == $hiveuser[userid] %>
		<input type="submit" class="bginput" name="emaillist" value="Email Event Userlist" onClick="document.eventform.cmd.value=\'emailgroup\'; return true;" />
		<%endif%>
	</td>
</tr>
</table>
<%endif%>
</form>

<script language="JavaScript">
<!--
getDay(document.forms.eventform, \'from\');
getDay(document.forms.eventform, \'to\');

if (getCookie(\'recurrence\') == \'closed\') {
	if (document.forms.eventform.recur_yes.checked == true) {
		renderSect(new Array(\'recurrence\', \'recuropt\'), \'recur\');
	} else {
		renderSect(new Array(\'recurrence\'), \'recur\');
	}
} else {
	document.images[\'recur\'].title = \'Collapse This Section\';
}
<%if $hiveuser[userid] == $event[userid] or $event[shareoptions] & CAL_SHARE_CANEDIT or $hiveuser[canadmin] or ($newevent and $hiveuser[cansharedevents]) %>
if (getCookie(\'eventopt\') == \'closed\') {
	if (document.forms.eventform.regevent.checked == true || document.forms.eventform.globalevent.checked == true) {
		renderSect(new Array(\'eventopt\'), \'opt\');
	} else {
		renderSect(new Array(\'eventopt\', \'eventshareopt\'), \'opt\');
	}
} else {
	document.images[\'opt\'].title = \'Collapse This Section\';
}
<%endif%>
if (getCookie(\'eventinfo\') == \'closed\') {
	renderSect(new Array(\'eventinfo\'), \'info\');
} else {
	document.images[\'info\'].title = \'Collapse This Section\';
}
// -->
</script>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: ".(($newevent ) ? ("Add New Event") : ((($event[eventtype] == -2 ) ? ("View Shared Event") : (($event[eventtype] == -1 ) ? ("View Global Event") : ("Modify Event")))))."</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" src=\\"misc/common.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/checkall.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/cookies.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/collapse.js\\"></script>
<script language=\\"JavaScript\\">
<!--

function popAddBook (local) {
	var url = \\"addressbook.view.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=mini\\";
	if (local == 1) {
		url += \\"&frompage=event&cmd2=update2&local=1".(($newevent ) ? ("&newevent=1") : (\'\')).(($hiveuser[shareonlyglobal] ) ? ("&onlyglobal=1") : (\'\'))."&pre[list]=\\" + escape(document.forms.eventform.eventlistaddresses.value);
	} else {
		url += \\"&pre[list]=\\" + escape (document.forms.eventform.addresses.value);
	}
	var hWnd = window.open(url,\\"AddBook\\",\\"width=530,height=345,resizable=yes,scrollbars=yes,menubar=yes\\");
	if ((document.window != null) && (!hWnd.opener)) {
		hWnd.opener = document.window;
	}
}

function getDay(tform, which) {
	var date = new Date(eval(\'tform.\'+which+\'year\').value, eval(\'tform.\'+which+\'month\').value - 1, eval(\'tform.\'+which+\'day\').value);
	eval(\'tform.\'+which+\'dayname\').value = DayNames[date.getDay()];
}

function doVal(tform) {
	if (tform.eventtype.value == -2 && tform.eventlistaddresses.value == \'\') {
		alert(\'You must choose at least one user to share this event with. Otherwise, you must change the Event Type to Normal.\');
		return false;
	}
	return true;
}

// Names of days that will be shown next to the date
var DayNames = new Array(\'({$GLOBALS[skin][cal_sun_long]})\', \'({$GLOBALS[skin][cal_mon_long]})\', \'({$GLOBALS[skin][cal_tue_long]})\', \'({$GLOBALS[skin][cal_wed_long]})\', \'({$GLOBALS[skin][cal_thu_long]})\', \'({$GLOBALS[skin][cal_fri_long]})\', \'({$GLOBALS[skin][cal_sat_long]})\');
var contacts = new Array($contactArray);

// -->
</script>
<script type=\\"text/javascript\\" src=\\"misc/autocomplete.js\\"></script>
</head>
<body>
$GLOBALS[header]

<form action=\\"calendar.event.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"eventform\\" onsubmit=\\"doVal(this.form)\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />
".((!$newevent ) ? ("
<input type=\\"hidden\\" name=\\"eventid\\" value=\\"$event[eventid]\\" />
<input type=\\"hidden\\" name=\\"cmd2\\" value=\\"\\" />
") : (\'\'))."
<input type=\\"hidden\\" name=\\"eventlistaddresses\\" value=\\"$eventlistaddresses\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Event Information</b> <img src=\\"images/arrow_up.gif\\" name=\\"info\\" onClick=\\"renderSect(new Array(\'eventinfo\'), \'info\');\\" border=\\"0\\" style=\\"cursor: pointer; vertical-align: middle;\\" /></span></th>
</tr>
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\" id=\\"eventinfo\\">
".(($event[eventtype] == -2 ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Event Poster:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" align=\\"right\\"><input type=\\"text\\" name=\\"eventposter\\" class=\\"{classname}InactiveLink\\" readonly=\\"readonly\\" size=\\"76\\" value=\\"$event[poster]$domain\\" onMouseOver=\\"this.className=\'{classname}InactiveLinkHover\'; window.status=\'{$appurl}compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}data[to]=$event[poster]$domain\';\\" onMouseOut=\\"this.className=\'{classname}InactiveLink\'; window.status=\'\';\\" onClick=\\"window.location=\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}data[to]=$event[poster]$domain\'\\" style=\\"cursor:pointer;\\" /></td>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Event Title:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" align=\\"right\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"title\\" value=\\"$event[title]\\" size=\\"76\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" colspan=\\"2\\">
		<table cellpadding=\\"0\\" cellspacing=\\"0\\" border=\\"0\\">
			<tr valign=\\"top\\">
				<td><textarea name=\\"message\\" style=\\"width: 686px; height: 180px;\\" wrap=\\"virtual\\" id=\\"tmessage\\">$event[message]</textarea></td>
			</tr>
		</table>
	</td>
</tr>
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b><a href=\\"#stayhere\\" onClick=\\"popAddBook(0); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/addbook.gif\\" alt=\\"Address Book\\" border=\\"0\\" /></a> Related email addresses:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" align=\\"right\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"addresses\\" id=\\"addresses\\" value=\\"$event[addresses]\\" autocomplete=\\"off\\" onKeyUp=\\"autoComplete(this, contacts);\\" size=\\"73\\" /></td>
</tr>
</table>

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Event Date and Time</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Event Date:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" nowrap=\\"nowrap\\"><span class=\\"normalfont\\">
		<select name=\\"frommonth\\" onChange=\\"getDay(this.form, \'from\');\\">
			$frommonthsel
		</select>
		<select name=\\"fromday\\" onChange=\\"getDay(this.form, \'from\');\\">
			$fromdaysel
		</select>
		<select name=\\"fromyear\\" onChange=\\"getDay(this.form, \'from\');\\">
			$fromyearsel
		</select>
		<input type=\\"text\\" name=\\"fromdayname\\" class=\\"{classname}Inactive\\" readonly=\\"readonly\\" value=\\"$fromdayname\\" size=\\"12\\" />
		</span>
	</td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Event Time:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\">
		<table>
			<tr>
				<td nowrap=\\"nowrap\\">
					<span class=\\"normalfont\\">Starts at:</span>
				</td>
				<td nowrap=\\"nowrap\\">
					<select name=\\"fromhour\\" $timedisabled>
						$fromhoursel
					</select>
					<select name=\\"fromminute\\" $timedisabled>
						$fromminutesel
					</select>
					".((!getop(\'cal_use24\') ) ? ("
					<select name=\\"fromampm\\" $timedisabled>
						<option value=\\"am\\" $fromampmsel[am]>AM</option>
						<option value=\\"pm\\" $fromampmsel[pm]>PM</option>
					</select>
					") : ("
					<input type=\\"hidden\\" name=\\"fromampm\\" value=\\"\\" />
					"))."
				</td>
			</tr>
			<tr>
				<td nowrap=\\"nowrap\\">
					<span class=\\"normalfont\\">Duration:</span>
				</td>
				<td nowrap=\\"nowrap\\">
					<span class=\\"normalfont\\">
					<select name=\\"durhours\\" $timedisabled>
						$durhourssel
					</select>
					<select name=\\"durminutes\\" $timedisabled>
						$durminutessel
					</select></span>
				</td>
				<td nowrap=\\"nowrap\\">
					<span class=\\"normalfont\\">
					<input type=\\"checkbox\\" name=\\"allday\\" $alldaychecked id=\\"allday\\" value=\\"1\\" onClick=\\"this.form.fromhour.disabled = this.form.fromminute.disabled = this.form.fromampm.disabled = this.form.durhours.disabled = this.form.durminutes.disabled = this.checked;\\" /> <label for=\\"allday\\">All day event</label>
					</span>
				</td>
			</tr>
		</table>
	</td>
</tr>
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Recurrence Options</b> <img src=\\"images/arrow_up.gif\\" name=\\"recur\\" onClick=\\"if (document.forms.eventform.recur_yes.checked == true) { renderSect(new Array(\'recurrence\', \'recuropt\'), \'recur\') } else { renderSect(new Array(\'recurrence\'), \'recur\'); }\\" border=\\"0\\" style=\\"cursor: pointer; vertical-align: middle;\\" /></span></th>
</tr>
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\" id=\\"recurrence\\" $recurinitdisplay>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\">&nbsp;</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurtype\\" id=\\"recur_none\\" value=\\"0\\" onClick=\\"document.forms.eventform.recur_yes.checked = false; render(2, \'recuropt\')\\" $typecheck[0] /> <label for=\\"recur_none\\">One Time Event</label><br />
		<input type=\\"radio\\" name=\\"dorecur\\" id=\\"recur_yes\\" value=\\"0\\" onClick=\\"document.forms.eventform.recur_none.checked = false; render(1, \'recuropt\');\\" $recurcheck /> <label for=\\"recur_yes\\">Recurring Event</label>
	</span></td>
</tr>
</table>
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\" id=\\"recuropt\\" $recurdisplay>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Recurrence Pattern:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurtype\\" id=\\"recur_daily\\" value=\\"1\\" $typecheck[1] /> <label for=\\"recur_daily\\">Recur every &nbsp;</label><input type=\\"text\\" class=\\"bginput\\" name=\\"daily_every\\" value=\\"$daily_every\\" size=\\"3\\" maxlength=\\"3\\" onClick=\\"this.form.recur_daily.checked = true;\\" /><label for=\\"recur_daily\\">&nbsp; day(s)</label><br />
		<input type=\\"radio\\" name=\\"recurtype\\" id=\\"recur_weekday\\" value=\\"2\\" $typecheck[2] /> <label for=\\"recur_weekday\\">Recur every weekday</label>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\">&nbsp;</td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurtype\\" id=\\"recur_weekly\\" value=\\"3\\" $typecheck[3] /> <label for=\\"recur_weekly\\">Recur every &nbsp;</label><input type=\\"text\\" class=\\"bginput\\" name=\\"weekly_every\\" value=\\"$weekly_every\\" size=\\"3\\" maxlength=\\"3\\" onClick=\\"this.form.recur_weekly.checked = true;\\" /><label for=\\"recur_weekly\\">&nbsp; week(s) on:</label></b></span><br />
			<table width=\\"80%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\">
				<tr>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"1\\" $weeklycheck[1] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_sun\\" /> <label for=\\"weekly_sun\\">{$GLOBALS[skin][cal_sun_long]}</label></span></td>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"2\\" $weeklycheck[2] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_mon\\" /> <label for=\\"weekly_mon\\">{$GLOBALS[skin][cal_mon_long]}</label></span></td>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"3\\" $weeklycheck[3] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_tue\\" /> <label for=\\"weekly_tue\\">{$GLOBALS[skin][cal_tue_long]}</label></span></td>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"4\\" $weeklycheck[4] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_wed\\" /> <label for=\\"weekly_wed\\">{$GLOBALS[skin][cal_wed_long]}</label></span></td>
				</tr>
				<tr>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"5\\" $weeklycheck[5] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_thu\\" /> <label for=\\"weekly_thu\\">{$GLOBALS[skin][cal_thu_long]}</label></span></td>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"6\\" $weeklycheck[6] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_fri\\" /> <label for=\\"weekly_fri\\">{$GLOBALS[skin][cal_fri_long]}</label></span></td>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input type=\\"checkbox\\" name=\\"weekly_repon[]\\" value=\\"7\\" $weeklycheck[7] onClick=\\"checkMain(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" id=\\"weekly_sat\\" /> <label for=\\"weekly_sat\\">{$GLOBALS[skin][cal_sat_long]}</label></span></td>
					<td width=\\"25%\\"><span class=\\"smallfont\\"><input name=\\"allbox\\" id=\\"allbox\\" type=\\"checkbox\\" value=\\"Check All\\" $weeklycheck[all] title=\\"Select/Deselect All\\" onClick=\\"checkAll(this.form, \'weekly_repon\'); this.form.recur_weekly.checked = true;\\" /> <label for=\\"allbox\\">All days</label></span></td>
				</tr>
			</table>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\">&nbsp;</td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurtype\\" id=\\"recur_monthly\\" value=\\"4\\" $typecheck[4] /> <label for=\\"recur_monthly\\">Recur on day</label>
			&nbsp;<select name=\\"monthly_on\\" onChange=\\"this.form.recur_monthly.checked = true;\\">
				$monthly_onsel
			</select>&nbsp;
			<label for=\\"recur_monthly\\">every &nbsp;</label><input type=\\"text\\" class=\\"bginput\\" name=\\"monthly_every\\" value=\\"$monthly_every\\" size=\\"3\\" maxlength=\\"3\\" onClick=\\"this.form.recur_monthly.checked = true;\\" /><label for=\\"recur_monthly\\">&nbsp; months(s)
			</label>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\">&nbsp;</td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurtype\\" id=\\"recur_yearly\\" value=\\"5\\" $typecheck[5] /> <label for=\\"recur_yearly\\">Recur on
			&nbsp;</label><select name=\\"yearly_month\\" onChange=\\"this.form.recur_yearly.checked = true;\\">
				$yearly_monthsel
			</select>
			<select name=\\"yearly_day\\" onChange=\\"this.form.recur_yearly.checked = true;\\">
				$yearly_daysel
			</select>&nbsp;
			<label for=\\"recur_yearly\\">every &nbsp;</label><input type=\\"text\\" class=\\"bginput\\" name=\\"yearly_every\\" value=\\"$yearly_every\\" size=\\"3\\" maxlength=\\"3\\" onClick=\\"this.form.recur_yearly.checked = true;\\" /><label for=\\"recur_yearly\\">&nbsp; year(s)
			</label>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Recurrence Range:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurend\\" id=\\"recurend_none\\" value=\\"0\\" $ending[0] /> <label for=\\"recurend_none\\">No end date</label>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\">&nbsp;</td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurend\\" id=\\"recur_count\\" value=\\"1\\" $ending[1] /> <label for=\\"recur_count\\">End after &nbsp;</label><input type=\\"text\\" class=\\"bginput\\" name=\\"end_after\\" value=\\"$end_after\\" size=\\"3\\" maxlength=\\"3\\" onClick=\\"this.form.recur_count.checked = true;\\" /><label for=\\"recur_count\\">&nbsp; occurrences</label>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\">&nbsp;</td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" nowrap=\\"nowrap\\"><span class=\\"normalfont\\">
		<input type=\\"radio\\" name=\\"recurend\\" id=\\"recurend_date\\" value=\\"2\\" $ending[2] /> <label for=\\"recurend_date\\">End by:</label>
		&nbsp;<select name=\\"tomonth\\" onChange=\\"this.form.recurend_date.checked = true; getDay(this.form, \'to\');\\" onChange=\\"\\">
			$tomonthsel
		</select>
		<select name=\\"today\\" onChange=\\"this.form.recurend_date.checked = true; getDay(this.form, \'to\');\\">
			$todaysel
		</select>
		<select name=\\"toyear\\" onChange=\\"this.form.recurend_date.checked = true; getDay(this.form, \'to\');\\">
			$toyearsel
		</select>
		<input type=\\"text\\" name=\\"todayname\\" class=\\"{classname}Inactive\\" readonly=\\"readonly\\" value=\\"\\" size=\\"12\\" />
	</span></td>
</tr>
</table>

".((($newevent and ($hiveuser[canadmin] or $hiveuser[cansharedevents])) or
$hiveuser[canadmin] or
($hiveuser[cansharedevents] and $event[eventtype] == -2 and ($hiveuser[userid] == $event[userid] or
$event[shareoptions] & CAL_SHARE_CANEDIT)) ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Event Options</b> <img src=\\"images/arrow_up.gif\\" name=\\"opt\\" onClick=\\"".(($hiveuser[userid] == $event[userid] || $newevent ) ? ("if (document.forms.eventform.regevent.checked == true || document.forms.eventform.globalevent.checked == true) { renderSect(new Array(\'eventopt\'), \'opt\'); } else if (document.forms.eventform.shareevent.checked == true) { renderSect(new Array(\'eventopt\', \'eventshareopt\'), \'opt\'); }") : ("renderSect(new Array(\'eventshareopt\'), \'opt\');"))."\\" border=\\"0\\" style=\\"cursor: pointer; vertical-align: middle;\\" /></span></th>
</tr>
</table>
".(($hiveuser[userid] == $event[userid] || $newevent ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\" id=\\"eventopt\\">
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Event Type:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" nowrap=\\"nowrap\\"><span class=\\"normalfont\\">
	<label for=\\"regevent\\"><input type=\\"radio\\" name=\\"eventtype\\" id=\\"regevent\\" onClick=\\"render(2, \'eventshareopt\')\\" value=\\"0\\" $eventtypecheck0 /> Normal Event</label><br />
	".(($hiveuser[cansharedevents] ) ? ("<label for=\\"shareevent\\"><input type=\\"radio\\" name=\\"eventtype\\" id=\\"shareevent\\" onClick=\\"render(1, \'eventshareopt\')\\" value=\\"-2\\" $eventtypecheck2 /> Shared Event</label> <a href=\\"#\\" onClick=\\"alert(\'Selecting this option allows you to share this event with other $slashedappname users. After selecting this option, you will be able to select the users below.\'); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/help.gif\\" border=\\"0\\" /></a><br />") : (\'\'))."
	".(($hiveuser[canadmin] ) ? ("<label for=\\"globalevent\\"><input type=\\"radio\\" name=\\"eventtype\\" id=\\"globalevent\\" onClick=\\"render(2, \'eventshareopt\')\\" value=\\"-1\\" $eventtypecheck1 /> Global Event</label> <a href=\\"#\\" onClick=\\"alert(\'Global events are created by administrators and shown on the calendars of users whose usergroup has permission to view them.\'); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/help.gif\\" border=\\"0\\" /></a>") : (\'\'))."
	</span></td>
</tr>
</table>
") : (\'\'))."
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\" id=\\"eventshareopt\\" $shareinitdisplay>
".(($hiveuser[userid] == $event[userid] || $newevent ) ? ("
<tr id=\\"shareoptions\\" class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Share Options:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" nowrap=\\"nowrap\\"><label for=\\"shareedit\\"><span class=\\"normalfont\\"><input type=\\"checkbox\\" name=\\"shareedit\\" id=\\"shareedit\\" value=\\"1\\" $shareeditcheck /> Shared group members can modify this event</label></span><br />
	<span class=\\"normalfont\\"><label for=\\"shareforward\\"><input type=\\"checkbox\\" name=\\"shareforward\\" id=\\"shareforward\\" value=\\"1\\" $sharefwdcheck /> Shared group members can share this event with others</label></span><br />
	<span class=\\"normalfont\\"><label for=\\"sharelist\\"><input type=\\"checkbox\\" name=\\"sharelist\\" id=\\"sharelist\\" value=\\"1\\" $sharelistcheck /> Shared group members can see whole list of shared group members</label></span>
	</span></td>
</tr>
") : (\'\'))."
".((($event[eventtype] == -2 and $event[shareoptions] & CAL_EVENT_CANLIST) or $event[userid] == $hiveuser[userid] or $newevent ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\">".(($event[shareoptions] & CAL_SHARE_CANEDIT or $event[userid] == $hiveuser[userid] or $newevent ) ? ("<a href=\\"#stayhere\\" onClick=\\"popAddBook(1); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/addbook.gif\\" alt=\\"Address Book\\" border=\\"0\\" /></a> ") : (\'\'))."<b>Shared Event Userlist:</b> ".(($event[shareoptions] & CAL_SHARE_CANEDIT or $event[userid] == $hiveuser[userid] or $newevent ) ? ("<a href=\\"#\\" onClick=\\"alert(\'To add users here, they must exist in your address book. Click the Address Book icon to the left to add or modify users on this list.\'); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/help.gif\\" border=\\"0\\" /></a>") : (\'\'))."</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" valign=\\"top\\" align=\\"right\\">
	$event[groupuserlist]
	".(($addl > 0 ) ? ("
	<input type=\\"text\\" size=\\"76\\" readonly=\\"readonly\\" class=\\"{classname}Inactive\\" value=\\"Plus $addl other users who chose to not be listed.\\" />
	") : (\'\'))."
	</td>
</tr>
") : (\'\'))."
".(($event[userid] == $hiveuser[userid] and $event[eventtype] == -2 and !$newevent ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"30%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Event Notes:</b></span><br /><span class=\\"smallfont\\">(only visible to you)</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"70%\\" valign=\\"top\\" align=\\"right\\"><textarea name=\\"eventnotes\\" cols=\\"73\\" rows=\\"5\\">$event[notes]</textarea></td>
</tr>
") : (\'\'))."
</table>
") : (\'\'))."

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr>
    <td align=\\"center\\">
        <input type=\\"submit\\" class=\\"bginput\\" name=\\"updateevent\\" value=\\"".(($newevent ) ? ("Create") : ("Update "))." Event\\" />
        <input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
".((!$newevent and $event[userid] == $hiveuser[userid] ) ? ("
        <input type=\\"submit\\" class=\\"bginput\\" name=\\"deleteevent\\" value=\\"Delete Event\\" onClick=\\"document.eventform.cmd.value=\'delete\'; return true;\\" />
") : (\'\'))."
    </td>
</tr>
</table>

".(($event[eventtype] == -2 and (($event[canforward] or $event[shareoptions] & CAL_SHARE_CANLIST) or $event[userid] == $hiveuser[userid]) ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"700\\">
<tr>
	<td align=\\"center\\">
		".(($event[shareoptions] & CAL_SHARE_CANFWD or $event[userid] == $hiveuser[userid] ) ? ("
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"forwardevent\\" value=\\"Forward Event\\" onClick=\\"document.eventform.cmd.value=\'forward\'; return true;\\" />
		") : (\'\'))."
		".(($event[shareoptions] & CAL_SHARE_CANLIST or $event[userid] == $hiveuser[userid] ) ? ("
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"emaillist\\" value=\\"Email Event Userlist\\" onClick=\\"document.eventform.cmd.value=\'emailgroup\'; return true;\\" />
		") : (\'\'))."
	</td>
</tr>
</table>
") : (\'\'))."
</form>

<script language=\\"JavaScript\\">
<!--
getDay(document.forms.eventform, \'from\');
getDay(document.forms.eventform, \'to\');

if (getCookie(\'recurrence\') == \'closed\') {
	if (document.forms.eventform.recur_yes.checked == true) {
		renderSect(new Array(\'recurrence\', \'recuropt\'), \'recur\');
	} else {
		renderSect(new Array(\'recurrence\'), \'recur\');
	}
} else {
	document.images[\'recur\'].title = \'Collapse This Section\';
}
".(($hiveuser[userid] == $event[userid] or $event[shareoptions] & CAL_SHARE_CANEDIT or $hiveuser[canadmin] or ($newevent and $hiveuser[cansharedevents]) ) ? ("
if (getCookie(\'eventopt\') == \'closed\') {
	if (document.forms.eventform.regevent.checked == true || document.forms.eventform.globalevent.checked == true) {
		renderSect(new Array(\'eventopt\'), \'opt\');
	} else {
		renderSect(new Array(\'eventopt\', \'eventshareopt\'), \'opt\');
	}
} else {
	document.images[\'opt\'].title = \'Collapse This Section\';
}
") : (\'\'))."
if (getCookie(\'eventinfo\') == \'closed\') {
	renderSect(new Array(\'eventinfo\'), \'info\');
} else {
	document.images[\'info\'].title = \'Collapse This Section\';
}
// -->
</script>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'compose' => 
  array (
    'templategroupid' => '3',
    'user_data' => '$skin[doctype]
<html<%if $data[html] %> XMLNS:ACE<%endif%>>
<head><title>$appname: Send New Mail</title>
<%if $data[html] %><?import namespace="ACE" implementation="misc/ace.htc" /><%endif%>
<!-- ?> -->
$css
<script language="JavaScript">
<!--

/*
function browserCompatible() {
	var ua = navigator.userAgent.toLowerCase(); 

	var isGecko = (ua.indexOf(\'gecko\') != -1);
	var isMozilla = isGecko;
	var isNS = (isGecko ? (ua.indexOf(\'netscape\') != -1) : (ua.indexOf(\'mozilla\') != -1 && (ua.indexOf(\'spoofer\') + ua.indexOf(\'compatible\') + ua.indexOf(\'opera\') + ua.indexOf(\'webtv\') + ua.indexOf(\'hotjava\')) == -5));
	var isIE = (ua.indexOf("msie") != -1 && ua.indexOf("opera") == -1 && ua.indexOf("webtv") == -1); 

	var versionMinor = parseFloat(navigator.appVersion); 
	if (isNS && isGecko) {
		versionMinor = parseFloat(ua.substring(ua.lastIndexOf(\'/\') + 1));
	} else if (isIE && versionMinor >= 4) {
		versionMinor = parseFloat(ua.substring(ua.indexOf(\'msie \') + 5));
	} else if (isMozilla) {
		versionMinor = parseFloat(ua.substring(ua.indexOf(\'rv:\') + 3));
	}
	var versionMajor = parseInt(versionMinor); 

	if (isMozilla || (isNS && versionMajor >= 6) || (isIE && versionMajor >= 5)) {
		return true;
	} else {
		return false;
	}
}
*/

function doneSend(errorMsg, addedalladdresses) {
	if (errorMsg == \'\') {
		window.location = \'compose.send.php?cmd=redirect&addedalladdresses=\'+addedalladdresses;
	} else {
		showNotice(\'<b>An error occured</b>: \'+errorMsg);
	}
}

// Updates message with the spell checked text
function updateSpellChecked(str) {
	<%if $data[html] and $hiveuser[wysiwyg] %>
		document.all.idContent.content = str;
	<%else%>
		document.forms.composeform.tmessage.value = str;
	<%endif%>
}

// Opens spell checking window
function popIt() {
	var n = window.open(\'about:blank\', \'formwin\', \'toolbar=no,menubar=no,scrollbars=yes,height=335,width=500,status=no\');
	return true;
}

// Submits forms in the new window
function spellCheck(frm, doSend) {
	var origMeth;
	var origAction;
	var origTarget;
	var origCmd;
	var rFrm;
	var rSend = (doSend ? \'1\' : \'0\');
	<%if $data[html] and $hiveuser[wysiwyg] %>
		document.composeform.message.value = document.all.idContent.content;
	<%endif%>
	popIt();
	rFrm = eval(\'document.\'+frm);
	origMeth = rFrm.method;
	origAction = rFrm.action;
	origTarget = rFrm.target;
	origCmd = rFrm.cmd.value;
	rFrm.method = \'POST\';
	rFrm.action = \'compose.spell.php?cmd=procframeset&sendafter=\'+rSend;
	rFrm.target = \'formwin\';
	rFrm.cmd.value = \'procframeset\';
	rFrm.submit();
	rFrm.method = origMeth;
	rFrm.action = origAction;
	rFrm.target = origTarget;
	rFrm.cmd.value = origCmd;
}

function sendMail(tform, skipSpell) {
	if (skipSpell != true && <%if $hiveuser[autospell] and $hiveuser[canspell] %>true<%else%>false<%endif%>) {
		var spellOk = spellCheck(\'composeform\', true);
	} else {
		tform.action = \'compose.send.php\';
		sumbitForm();
		tform.submit();
	}
}

function popAddBook () {
	var url = "addressbook.view.php?cmd=mini";
	url += "&pre[to]=" + escape (document.forms.composeform.to.value);
	url += "&pre[cc]=" + escape (document.forms.composeform.cc.value);
	url += "&pre[bcc]=" + escape (document.forms.composeform.bcc.value);
	var hWnd = window.open(url,"AddBook","width=530,height=465,resizable=yes,scrollbars=yes");
	if ((document.window != null) && (!hWnd.opener)) {
		hWnd.opener = document.window;
	}
}

function editorInit() {
	<%if $data[html] %>
		idContent.editorWidth = "578";
		idContent.editorHeight = "340";
		idContent.useSave = false;
		//idContent.useBtnInsertText = true;
		idContent.useBtnStyle = true;
		idContent.useBtnParagraph = true;
		idContent.useBtnFontName = true;
		idContent.useBtnFontSize = true;
		idContent.useBtnCut = true;
		idContent.useBtnCopy = true;
		idContent.useBtnPaste = true;
		idContent.useBtnRemoveFormat  = true;
		idContent.useBtnUndo = true;
		idContent.useBtnRedo = true;
		idContent.useBtnWord = true;
		<%if $hiveuser[canspell] %>
			idContent.useBtnSpellCheck = true;
		<%endif%>
		idContent.putBtnBreak(); //line break
		idContent.useBtnBold = true;
		idContent.useBtnItalic = true;
		idContent.useBtnUnderline = true;
		idContent.useBtnStrikethrough = true;
		idContent.useBtnSuperscript = true;
		idContent.useBtnSubscript = true;
		idContent.useBtnJustifyLeft = true;
		idContent.useBtnJustifyCenter = true;
		idContent.useBtnJustifyRight = true;
		idContent.useBtnJustifyFull = true;
		idContent.useBtnInsertOrderedList = true;
		idContent.useBtnInsertUnorderedList = true;
		idContent.useBtnIndent = true;
		idContent.useBtnOutdent = true;
		idContent.useBtnHorizontalLine = true;
		idContent.useBtnTable = true;
		idContent.useBtnExternalLink = true;
		idContent.useBtnInternalLink = false;
		idContent.useBtnUnlink = true;
		idContent.useBtnInternalImage  = false;
		idContent.useBtnForeground  = true;
		idContent.useBtnBackground  = true;
		idContent.useBtnDocumentBackground  = true;
		//idContent.useBtnAbsolute  = true;
		idContent.useBtnInsertSymbol  = true;
		idContent.applyButtons();
		idContent.content = "$data[message]";
		idContent.style.background = \'$data[bgcolor]\';
		if (\'$data[bgcolor]\' != \'$skin[formbackground]\') {
			idContent.docBgColor = \'$data[bgcolor]\';
		}
	<%endif%>
}

function sumbitForm(useText, fromAttach) {
	<%if $data[html] %>
		document.composeform.bgcolor.value = document.all.idContent.docBgColor;
		document.composeform.message.value = (useText ? idContent.getText() : document.all.idContent.content);
		if (!useText) {
			document.composeform.plainmessage.value = idContent.getText();
		}
		if (document.composeform.action == \'compose.email.php\' && fromAttach != 1) {
			document.composeform.usehtml.value = 0;
		}
	<%else%>
		if (document.composeform.action == \'compose.email.php\' && fromAttach != 1) {
			document.composeform.usehtml.value = 1;
		}
	<%endif%>
	if (document.composeform.target == \'submitwindow$draftid\') {
		showNotice(\'Your email is being sent...\');
	}
}

function insertSig(whichsig) {
	<%if $data[html] %>
		idContent.InsertCustomHTML(eval(\'composeform.\'+whichsig).value);
	<%else%>
		composeform.tmessage.value += eval(\'composeform.\'+whichsig).value;
	<%endif%>
	composeform.addsig.value = 1;
}

var contacts = new Array($contactArray);

// -->
</script>
<script type="text/javascript" src="misc/autocomplete.js"></script>
</head>
<body onLoad="editorInit(); $focusfield">
$header

<br />

<form enctype="multipart/form-data" action="compose.email.php" name="composeform" method="post" onSubmit="sumbitForm();" target="submitwindow$draftid">
<input type="hidden" name="cmd" value="compose" />
<input type="hidden" name="save" value="1" />
<input type="hidden" name="draftid" value="$draftid" />
<input type="hidden" name="data[special]" value="$data[special]" />
<input type="hidden" name="message" value="" />
<input type="hidden" name="data[plainmessage]" value="" id="plainmessage" />
<input type="hidden" name="data[html]" value="$data[html]" id="usehtml" />
<input type="hidden" name="data[bgcolor]" value="" id="bgcolor" />
<input type="hidden" name="data[addedsig]" value="$data[addedsig]" id="addsig" />
<%if !$hiveuser[composereplyto] %>
<input type="hidden" name="data[replyto]" value="$data[replyto]" />
<%endif%>

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th colspan="2" class="headerBothCell"><span class="normalfonttablehead"><b>Send New Mail</b></span></th>
</tr>
<%if !$hiveuser[cansend] %>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" style="padding-right: 40px; text-align: center;" colspan="2"><span class="important">You do not have permission to send messages, this compose page is provided for demonstration purposes only.</span>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b>From:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;">
		<select name="data[sendby]" style="width: 445px;">
			<option value="$hiveuser[username]" $defselected>$hiveuser[realname] &lt;$hiveuser[username]$hiveuser[domain]&gt;</option>
			<%if !empty($aliasoptions) %>
			<optgroup label="Aliases">
				$aliasoptions
			</optgroup>
			<%endif%>
			<%if !empty($popoptions) %>
			<optgroup label="POP3 Accounts">
				$popoptions
			</optgroup>
			<%endif%>
		</select>
	</td>
</tr>
<%if $hiveuser[composereplyto] %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b>Reply-To:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;"><input type="text" class="bginput" value="$data[replyto]" size="72" name="data[replyto]" /></span></td>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b><a href="#" onClick="popAddBook(); return false;"><img src="$skin[images]/addbook.gif" alt="Address Book" border="0" /></a> To:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;"><input type="text" class="bginput" name="data[to]" value="$data[to]" size="72" autocomplete="off" onKeyUp="autoComplete(this, contacts);" id="to" tabindex="1" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b><a href="#" onClick="popAddBook(); return false;"><img src="$skin[images]/addbook.gif" alt="Address Book" border="0" /></a> Cc:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;"><input type="text" class="bginput" name="data[cc]" value="$data[cc]" size="72" autocomplete="off" onKeyUp="autoComplete(this, contacts);" id="cc" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b><a href="#" onClick="popAddBook(); return false;"><img src="$skin[images]/addbook.gif" alt="Address Book" border="0" /></a> Bcc:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;"><input type="text" class="bginput" name="data[bcc]" value="$data[bcc]" size="72" autocomplete="off" onKeyUp="autoComplete(this, contacts);" id="bcc" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b>Subject:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;"><input type="text" class="bginput" value="$data[subject]" name="data[subject]" id="subject" size="72" tabindex="2" <%if $data[html] and 0 %>onBlur="idContent.InsertCustomHTML(\'\');"<%endif%> /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" colspan="2">
		<table cellpadding="0" cellspacing="0" border="0">
			<tr valign="top">
				<td><%if $data[html] %><ACE:AdvContentEditor id="idContent" tabindex="3" /><%else%><textarea name="data[message]" style="width: 573px; height: 380px;" wrap="virtual" id="tmessage" tabindex="3">$data[message]</textarea><%endif%></td>
			</tr>
		</table>
	</td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;" valign="top"><span class="normalfont"><b>Signatures:</b></span>
	<%if $hiveuser[cansendhtml] %><br /><br /><span class="smallfont"><a href="#" onClick="composeform.target = \'_self\'; sumbitForm(1); composeform.submit();">(Switch to $switchmode)</a></span><%endif%></td>
	<td class="{classname}RightCell" style="width: 100%;" valign="top"><span class="smallfont">Click the signature name below to insert it at the bottom of your message.<br />
	<%if empty($sigs) %>
	No signatures found. <a href="options.signature.php" target="_blank">Click here</a> to create a new signature.
	<%else%>
	$sigs
	<%endif%>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;" valign="top"><span class="normalfont"><b>Options:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;" valign="top">
		<table cellspacing="0">
			<tr>
				<td><input type="checkbox" name="data[savecopy]" value="1" id="savecopy" $savecopychecked /></td>
				<td><span class="smallfont"><label for="savecopy"><b>Save a copy:</b> Also save a copy in the Sent Items folder.</label></span></td>
			</tr>
			<tr>
				<td><input type="checkbox" name="data[requestread]" value="1" id="requestread" $requestreadchecked /></td>
				<td><span class="smallfont"><label for="requestread"><b>Request read receipt:</b> Be notified when the receiver reads the message.</label></span></td>
			</tr>
			<%if !empty($data[\'special\']) %>
			<tr>
				<td><input type="checkbox" name="data[deleteorig]" value="1" id="deleteorig" $deleteorigchecked /></td>
				<td><span class="smallfont"><label for="deleteorig"><b>Delete original message:</b> After this message is sent the original email will be deleted.</label></span></td>
			</tr>
			<%else%>
				<input type="hidden" name="data[deleteorig]" value="0" />
			<%endif%>
			<%if !$toomanycontacts%>
			<tr>
				<td><input type="checkbox" name="data[addtobook]" value="1" id="addtobook" $addtobookchecked /></td>
				<td><span class="smallfont"><label for="addtobook"><b>Add recipients to address book:</b> Automatically add all recipients of<br />this email to your address book after you send this message.</label></span></td>
			</tr>
			<%else%>
				<input type="hidden" name="data[addtobook]" value="0" />
			<%endif%>
		</table>
	</td>
</tr>
<%if $hiveuser[canattach] %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;" valign="top"><span class="normalfont"><b>Attachments:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;" valign="top"><span class="normalfont">
	<%if !empty($attachlist) %>
	$attachlist
	<%else%>
	No attachments.<br />
	<%endif%>
	<br /><input type="button" class="bginput" name="manageattach" value="Manage Attachments" onClick="var attWnd = window.open(\'compose.attachments.php?draftid=$draftid\',\'manageattach\',\'statusbar=no,menubar=no,toolbar=no,scrollbars=yes,width=480,height=425\'); return false;" />
	</span></td>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" style="padding-right: 40px;"><span class="normalfont"><b>Priority:</b></span></td>
	<td class="{classname}RightCell" style="width: 100%;">
		<select name="data[priority]" onChange="getElement(\'prio_img\').src = this.options[this.selectedIndex].name;">
			<option value="1" name="$skin[images]/prio_high.gif" $prio[1]>High</option>
			<option value="3" name="$skin[images]/spacer.gif" $prio[3]>Normal</option>
			<option value="5" name="$skin[images]/prio_low.gif" $prio[5]>Low</option>
		</select> <img src="$skin[images]/spacer.gif" alt="" id="prio_img" />
	</td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td align="center">
	<input type="submit" class="bginput" name="send" value="Send Email" onClick="sendMail(this.form); return false;" accesskey="s" tabindex="4" />
	<%if $hiveuser[canspell] %>
	<input type="submit" class="bginput" name="spellcheck" value="Spell Check" onClick="spellCheck(\'composeform\'); return false;" />
	<%endif%>
	<input type="submit" class="bginput" name="cancel" value="Cancel" onClick="window.location = \'{<INDEX_FILE>}\'; return false;" /> 
	<%if isset($draft) and $draft[\'dateline\'] == 0 %>
	<input type="submit" class="bginput" name="updatedraft" value="Update Draft" onClick="this.form.action=\'compose.draft.php\'; this.form.target = \'_self\'; return true;" />
	<%endif%>
	<input type="submit" class="bginput" name="draft" value="<%if isset($draft) and $draft[\'dateline\'] == 0 %>Remove Draft<%else%>Save as Draft<%endif%>" onClick="this.form.action=\'compose.draft.php\'; this.form.target = \'_self\'; return true;" />
	</td>
</tr>
</form>
</table>

<iframe src="" style="width: 0px; height: 0px;" id="submitwindow$draftid" name="submitwindow$draftid" frameborder="no">Your browser does not support inline frames.</iframe>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html".(($data[html] ) ? (" XMLNS:ACE") : (\'\')).">
<head><title>$appname: Send New Mail</title>
".(($data[html] ) ? ("<?import namespace=\\"ACE\\" implementation=\\"misc/ace.htc\\" />") : (\'\'))."
<!-- ?> -->
$GLOBALS[css]
<script language=\\"JavaScript\\">
<!--

/*
function browserCompatible() {
	var ua = navigator.userAgent.toLowerCase(); 

	var isGecko = (ua.indexOf(\'gecko\') != -1);
	var isMozilla = isGecko;
	var isNS = (isGecko ? (ua.indexOf(\'netscape\') != -1) : (ua.indexOf(\'mozilla\') != -1 && (ua.indexOf(\'spoofer\') + ua.indexOf(\'compatible\') + ua.indexOf(\'opera\') + ua.indexOf(\'webtv\') + ua.indexOf(\'hotjava\')) == -5));
	var isIE = (ua.indexOf(\\"msie\\") != -1 && ua.indexOf(\\"opera\\") == -1 && ua.indexOf(\\"webtv\\") == -1); 

	var versionMinor = parseFloat(navigator.appVersion); 
	if (isNS && isGecko) {
		versionMinor = parseFloat(ua.substring(ua.lastIndexOf(\'/\') + 1));
	} else if (isIE && versionMinor >= 4) {
		versionMinor = parseFloat(ua.substring(ua.indexOf(\'msie \') + 5));
	} else if (isMozilla) {
		versionMinor = parseFloat(ua.substring(ua.indexOf(\'rv:\') + 3));
	}
	var versionMajor = parseInt(versionMinor); 

	if (isMozilla || (isNS && versionMajor >= 6) || (isIE && versionMajor >= 5)) {
		return true;
	} else {
		return false;
	}
}
*/

function doneSend(errorMsg, addedalladdresses) {
	if (errorMsg == \'\') {
		window.location = \'compose.send.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=redirect&addedalladdresses=\'+addedalladdresses;
	} else {
		showNotice(\'<b>An error occured</b>: \'+errorMsg);
	}
}

// Updates message with the spell checked text
function updateSpellChecked(str) {
	".(($data[html] and $hiveuser[wysiwyg] ) ? ("
		document.all.idContent.content = str;
	") : ("
		document.forms.composeform.tmessage.value = str;
	"))."
}

// Opens spell checking window
function popIt() {
	var n = window.open(\'about:blank\', \'formwin\', \'toolbar=no,menubar=no,scrollbars=yes,height=335,width=500,status=no\');
	return true;
}

// Submits forms in the new window
function spellCheck(frm, doSend) {
	var origMeth;
	var origAction;
	var origTarget;
	var origCmd;
	var rFrm;
	var rSend = (doSend ? \'1\' : \'0\');
	".(($data[html] and $hiveuser[wysiwyg] ) ? ("
		document.composeform.message.value = document.all.idContent.content;
	") : (\'\'))."
	popIt();
	rFrm = eval(\'document.\'+frm);
	origMeth = rFrm.method;
	origAction = rFrm.action;
	origTarget = rFrm.target;
	origCmd = rFrm.cmd.value;
	rFrm.method = \'POST\';
	rFrm.action = \'compose.spell.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=procframeset&sendafter=\'+rSend;
	rFrm.target = \'formwin\';
	rFrm.cmd.value = \'procframeset\';
	rFrm.submit();
	rFrm.method = origMeth;
	rFrm.action = origAction;
	rFrm.target = origTarget;
	rFrm.cmd.value = origCmd;
}

function sendMail(tform, skipSpell) {
	if (skipSpell != true && ".(($hiveuser[autospell] and $hiveuser[canspell] ) ? ("true") : ("false")).") {
		var spellOk = spellCheck(\'composeform\', true);
	} else {
		tform.action = \'compose.send.php{$GLOBALS[session_url]}\';
		sumbitForm();
		tform.submit();
	}
}

function popAddBook () {
	var url = \\"addressbook.view.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=mini\\";
	url += \\"&pre[to]=\\" + escape (document.forms.composeform.to.value);
	url += \\"&pre[cc]=\\" + escape (document.forms.composeform.cc.value);
	url += \\"&pre[bcc]=\\" + escape (document.forms.composeform.bcc.value);
	var hWnd = window.open(url,\\"AddBook\\",\\"width=530,height=465,resizable=yes,scrollbars=yes\\");
	if ((document.window != null) && (!hWnd.opener)) {
		hWnd.opener = document.window;
	}
}

function editorInit() {
	".(($data[html] ) ? ("
		idContent.editorWidth = \\"578\\";
		idContent.editorHeight = \\"340\\";
		idContent.useSave = false;
		//idContent.useBtnInsertText = true;
		idContent.useBtnStyle = true;
		idContent.useBtnParagraph = true;
		idContent.useBtnFontName = true;
		idContent.useBtnFontSize = true;
		idContent.useBtnCut = true;
		idContent.useBtnCopy = true;
		idContent.useBtnPaste = true;
		idContent.useBtnRemoveFormat  = true;
		idContent.useBtnUndo = true;
		idContent.useBtnRedo = true;
		idContent.useBtnWord = true;
		".(($hiveuser[canspell] ) ? ("
			idContent.useBtnSpellCheck = true;
		") : (\'\'))."
		idContent.putBtnBreak(); //line break
		idContent.useBtnBold = true;
		idContent.useBtnItalic = true;
		idContent.useBtnUnderline = true;
		idContent.useBtnStrikethrough = true;
		idContent.useBtnSuperscript = true;
		idContent.useBtnSubscript = true;
		idContent.useBtnJustifyLeft = true;
		idContent.useBtnJustifyCenter = true;
		idContent.useBtnJustifyRight = true;
		idContent.useBtnJustifyFull = true;
		idContent.useBtnInsertOrderedList = true;
		idContent.useBtnInsertUnorderedList = true;
		idContent.useBtnIndent = true;
		idContent.useBtnOutdent = true;
		idContent.useBtnHorizontalLine = true;
		idContent.useBtnTable = true;
		idContent.useBtnExternalLink = true;
		idContent.useBtnInternalLink = false;
		idContent.useBtnUnlink = true;
		idContent.useBtnInternalImage  = false;
		idContent.useBtnForeground  = true;
		idContent.useBtnBackground  = true;
		idContent.useBtnDocumentBackground  = true;
		//idContent.useBtnAbsolute  = true;
		idContent.useBtnInsertSymbol  = true;
		idContent.applyButtons();
		idContent.content = \\"$data[message]\\";
		idContent.style.background = \'$data[bgcolor]\';
		if (\'$data[bgcolor]\' != \'{$GLOBALS[skin][formbackground]}\') {
			idContent.docBgColor = \'$data[bgcolor]\';
		}
	") : (\'\'))."
}

function sumbitForm(useText, fromAttach) {
	".(($data[html] ) ? ("
		document.composeform.bgcolor.value = document.all.idContent.docBgColor;
		document.composeform.message.value = (useText ? idContent.getText() : document.all.idContent.content);
		if (!useText) {
			document.composeform.plainmessage.value = idContent.getText();
		}
		if (document.composeform.action == \'compose.email.php{$GLOBALS[session_url]}\' && fromAttach != 1) {
			document.composeform.usehtml.value = 0;
		}
	") : ("
		if (document.composeform.action == \'compose.email.php{$GLOBALS[session_url]}\' && fromAttach != 1) {
			document.composeform.usehtml.value = 1;
		}
	"))."
	if (document.composeform.target == \'submitwindow$draftid\') {
		showNotice(\'Your email is being sent...\');
	}
}

function insertSig(whichsig) {
	".(($data[html] ) ? ("
		idContent.InsertCustomHTML(eval(\'composeform.\'+whichsig).value);
	") : ("
		composeform.tmessage.value += eval(\'composeform.\'+whichsig).value;
	"))."
	composeform.addsig.value = 1;
}

var contacts = new Array($contactArray);

// -->
</script>
<script type=\\"text/javascript\\" src=\\"misc/autocomplete.js\\"></script>
</head>
<body onLoad=\\"editorInit(); $focusfield\\">
$GLOBALS[header]

<br />

<form enctype=\\"multipart/form-data\\" action=\\"compose.email.php{$GLOBALS[session_url]}\\" name=\\"composeform\\" method=\\"post\\" onSubmit=\\"sumbitForm();\\" target=\\"submitwindow$draftid\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"compose\\" />
<input type=\\"hidden\\" name=\\"save\\" value=\\"1\\" />
<input type=\\"hidden\\" name=\\"draftid\\" value=\\"$draftid\\" />
<input type=\\"hidden\\" name=\\"data[special]\\" value=\\"$data[special]\\" />
<input type=\\"hidden\\" name=\\"message\\" value=\\"\\" />
<input type=\\"hidden\\" name=\\"data[plainmessage]\\" value=\\"\\" id=\\"plainmessage\\" />
<input type=\\"hidden\\" name=\\"data[html]\\" value=\\"$data[html]\\" id=\\"usehtml\\" />
<input type=\\"hidden\\" name=\\"data[bgcolor]\\" value=\\"\\" id=\\"bgcolor\\" />
<input type=\\"hidden\\" name=\\"data[addedsig]\\" value=\\"$data[addedsig]\\" id=\\"addsig\\" />
".((!$hiveuser[composereplyto] ) ? ("
<input type=\\"hidden\\" name=\\"data[replyto]\\" value=\\"$data[replyto]\\" />
") : (\'\'))."

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th colspan=\\"2\\" class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Send New Mail</b></span></th>
</tr>
".((!$hiveuser[cansend] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" style=\\"padding-right: 40px; text-align: center;\\" colspan=\\"2\\"><span class=\\"important\\">You do not have permission to send messages, this compose page is provided for demonstration purposes only.</span>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b>From:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\">
		<select name=\\"data[sendby]\\" style=\\"width: 445px;\\">
			<option value=\\"$hiveuser[username]\\" $defselected>$hiveuser[realname] &lt;$hiveuser[username]$hiveuser[domain]&gt;</option>
			".((!empty($aliasoptions) ) ? ("
			<optgroup label=\\"Aliases\\">
				$aliasoptions
			</optgroup>
			") : (\'\'))."
			".((!empty($popoptions) ) ? ("
			<optgroup label=\\"POP3 Accounts\\">
				$popoptions
			</optgroup>
			") : (\'\'))."
		</select>
	</td>
</tr>
".(($hiveuser[composereplyto] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b>Reply-To:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\"><input type=\\"text\\" class=\\"bginput\\" value=\\"$data[replyto]\\" size=\\"72\\" name=\\"data[replyto]\\" /></span></td>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b><a href=\\"#\\" onClick=\\"popAddBook(); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/addbook.gif\\" alt=\\"Address Book\\" border=\\"0\\" /></a> To:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"data[to]\\" value=\\"$data[to]\\" size=\\"72\\" autocomplete=\\"off\\" onKeyUp=\\"autoComplete(this, contacts);\\" id=\\"to\\" tabindex=\\"1\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b><a href=\\"#\\" onClick=\\"popAddBook(); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/addbook.gif\\" alt=\\"Address Book\\" border=\\"0\\" /></a> Cc:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"data[cc]\\" value=\\"$data[cc]\\" size=\\"72\\" autocomplete=\\"off\\" onKeyUp=\\"autoComplete(this, contacts);\\" id=\\"cc\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b><a href=\\"#\\" onClick=\\"popAddBook(); return false;\\"><img src=\\"{$GLOBALS[skin][images]}/addbook.gif\\" alt=\\"Address Book\\" border=\\"0\\" /></a> Bcc:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"data[bcc]\\" value=\\"$data[bcc]\\" size=\\"72\\" autocomplete=\\"off\\" onKeyUp=\\"autoComplete(this, contacts);\\" id=\\"bcc\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b>Subject:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\"><input type=\\"text\\" class=\\"bginput\\" value=\\"$data[subject]\\" name=\\"data[subject]\\" id=\\"subject\\" size=\\"72\\" tabindex=\\"2\\" ".(($data[html] and 0 ) ? ("onBlur=\\"idContent.InsertCustomHTML(\'\');\\"") : (\'\'))." /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" colspan=\\"2\\">
		<table cellpadding=\\"0\\" cellspacing=\\"0\\" border=\\"0\\">
			<tr valign=\\"top\\">
				<td>".(($data[html] ) ? ("<ACE:AdvContentEditor id=\\"idContent\\" tabindex=\\"3\\" />") : ("<textarea name=\\"data[message]\\" style=\\"width: 573px; height: 380px;\\" wrap=\\"virtual\\" id=\\"tmessage\\" tabindex=\\"3\\">$data[message]</textarea>"))."</td>
			</tr>
		</table>
	</td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Signatures:</b></span>
	".(($hiveuser[cansendhtml] ) ? ("<br /><br /><span class=\\"smallfont\\"><a href=\\"#\\" onClick=\\"composeform.target = \'_self\'; sumbitForm(1); composeform.submit();\\">(Switch to $switchmode)</a></span>") : (\'\'))."</td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\" valign=\\"top\\"><span class=\\"smallfont\\">Click the signature name below to insert it at the bottom of your message.<br />
	".((empty($sigs) ) ? ("
	No signatures found. <a href=\\"options.signature.php{$GLOBALS[session_url]}\\" target=\\"_blank\\">Click here</a> to create a new signature.
	") : ("
	$sigs
	"))."
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Options:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\" valign=\\"top\\">
		<table cellspacing=\\"0\\">
			<tr>
				<td><input type=\\"checkbox\\" name=\\"data[savecopy]\\" value=\\"1\\" id=\\"savecopy\\" $savecopychecked /></td>
				<td><span class=\\"smallfont\\"><label for=\\"savecopy\\"><b>Save a copy:</b> Also save a copy in the Sent Items folder.</label></span></td>
			</tr>
			<tr>
				<td><input type=\\"checkbox\\" name=\\"data[requestread]\\" value=\\"1\\" id=\\"requestread\\" $requestreadchecked /></td>
				<td><span class=\\"smallfont\\"><label for=\\"requestread\\"><b>Request read receipt:</b> Be notified when the receiver reads the message.</label></span></td>
			</tr>
			".((!empty($data[\'special\']) ) ? ("
			<tr>
				<td><input type=\\"checkbox\\" name=\\"data[deleteorig]\\" value=\\"1\\" id=\\"deleteorig\\" $deleteorigchecked /></td>
				<td><span class=\\"smallfont\\"><label for=\\"deleteorig\\"><b>Delete original message:</b> After this message is sent the original email will be deleted.</label></span></td>
			</tr>
			") : ("
				<input type=\\"hidden\\" name=\\"data[deleteorig]\\" value=\\"0\\" />
			"))."
			".((!$toomanycontacts) ? ("
			<tr>
				<td><input type=\\"checkbox\\" name=\\"data[addtobook]\\" value=\\"1\\" id=\\"addtobook\\" $addtobookchecked /></td>
				<td><span class=\\"smallfont\\"><label for=\\"addtobook\\"><b>Add recipients to address book:</b> Automatically add all recipients of<br />this email to your address book after you send this message.</label></span></td>
			</tr>
			") : ("
				<input type=\\"hidden\\" name=\\"data[addtobook]\\" value=\\"0\\" />
			"))."
		</table>
	</td>
</tr>
".(($hiveuser[canattach] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Attachments:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\" valign=\\"top\\"><span class=\\"normalfont\\">
	".((!empty($attachlist) ) ? ("
	$attachlist
	") : ("
	No attachments.<br />
	"))."
	<br /><input type=\\"button\\" class=\\"bginput\\" name=\\"manageattach\\" value=\\"Manage Attachments\\" onClick=\\"var attWnd = window.open(\'compose.attachments.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}draftid=$draftid\',\'manageattach\',\'statusbar=no,menubar=no,toolbar=no,scrollbars=yes,width=480,height=425\'); return false;\\" />
	</span></td>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" style=\\"padding-right: 40px;\\"><span class=\\"normalfont\\"><b>Priority:</b></span></td>
	<td class=\\"{classname}RightCell\\" style=\\"width: 100%;\\">
		<select name=\\"data[priority]\\" onChange=\\"getElement(\'prio_img\').src = this.options[this.selectedIndex].name;\\">
			<option value=\\"1\\" name=\\"{$GLOBALS[skin][images]}/prio_high.gif\\" $prio[1]>High</option>
			<option value=\\"3\\" name=\\"{$GLOBALS[skin][images]}/spacer.gif\\" $prio[3]>Normal</option>
			<option value=\\"5\\" name=\\"{$GLOBALS[skin][images]}/prio_low.gif\\" $prio[5]>Low</option>
		</select> <img src=\\"{$GLOBALS[skin][images]}/spacer.gif\\" alt=\\"\\" id=\\"prio_img\\" />
	</td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td align=\\"center\\">
	<input type=\\"submit\\" class=\\"bginput\\" name=\\"send\\" value=\\"Send Email\\" onClick=\\"sendMail(this.form); return false;\\" accesskey=\\"s\\" tabindex=\\"4\\" />
	".(($hiveuser[canspell] ) ? ("
	<input type=\\"submit\\" class=\\"bginput\\" name=\\"spellcheck\\" value=\\"Spell Check\\" onClick=\\"spellCheck(\'composeform\'); return false;\\" />
	") : (\'\'))."
	<input type=\\"submit\\" class=\\"bginput\\" name=\\"cancel\\" value=\\"Cancel\\" onClick=\\"window.location = \'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\'; return false;\\" /> 
	".((isset($draft) and $draft[\'dateline\'] == 0 ) ? ("
	<input type=\\"submit\\" class=\\"bginput\\" name=\\"updatedraft\\" value=\\"Update Draft\\" onClick=\\"this.form.action=\'compose.draft.php{$GLOBALS[session_url]}\'; this.form.target = \'_self\'; return true;\\" />
	") : (\'\'))."
	<input type=\\"submit\\" class=\\"bginput\\" name=\\"draft\\" value=\\"".((isset($draft) and $draft[\'dateline\'] == 0 ) ? ("Remove Draft") : ("Save as Draft"))."\\" onClick=\\"this.form.action=\'compose.draft.php{$GLOBALS[session_url]}\'; this.form.target = \'_self\'; return true;\\" />
	</td>
</tr>
</form>
</table>

<iframe src=\\"\\" style=\\"width: 0px; height: 0px;\\" id=\\"submitwindow$draftid\\" name=\\"submitwindow$draftid\\" frameborder=\\"no\\">Your browser does not support inline frames.</iframe>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'compose_sending' => 
  array (
    'templategroupid' => '3',
    'user_data' => '<span id="dotproc" class="normalfont">Your email is being sent...</span>
<script language="Javascript">
<!--
function js_dots() {
	getElement(\'dotproc\').innerText += \'.\';
	jstimer = setTimeout(\'js_dots();\', 100);
}
js_dots();
// -->
</script>',
    'parsed_data' => '"<span id=\\"dotproc\\" class=\\"normalfont\\">Your email is being sent...</span>
<script language=\\"Javascript\\">
<!--
function js_dots() {
	getElement(\'dotproc\').innerText += \'.\';
	jstimer = setTimeout(\'js_dots();\', 100);
}
js_dots();
// -->
</script>"',
    'upgraded' => '0',
  ),
  'compose_spell_suggestions' => 
  array (
    'templategroupid' => '3',
    'user_data' => '$skin[doctype]
<html>
<head>
<title>$appname: Spell Checker</title>
$css
<script language="Javascript">
<!--

var currNum=0;
var intTop;
var proDoc = window.top.process;
var userDictAvail = true;
var userDict = new Array();
var ignoreAllWords = new Array();
var changeAllWordsOriginal = new Array();
var changeAllWordsReplace = new Array();
var comMistakesOriginal = new Array();
var comMistakesReplace = new Array();
var lastAction = \'ignore\';

function removeWord(word) {
	for (var i = 0; i < userDict.length; i++) {
		if (userDict[i] == word) {
			userDict[i] = \'\';
		}
	}
	return;
}

function writeMe(strRepVal, wordNum) {       
	var wDoc = self.document;
	var eDiv = document.all ? wDoc.all[\'context\'] : wDoc.getElementById(\'context\');
	eDiv.innerHTML = strRepVal;
	var fDiv = document.all ? wDoc.all[\'wordnum\'] : wDoc.getElementById(\'wordnum\');
	fDiv.innerHTML = \'Word <b>\'+wordNum+\'</b> out of <b>\'+proDoc.getMisspelledCount()+\'</b>:\';
	return;
}

function startSpell() {
	var strFirstWord = getCurrentWord();
	intTop = proDoc.getMisspelledCount();
	setContext();
	setSelectList();
	return true;
}

function setContext() {
	writeMe(proDoc.getContext(currNum), currNum + 1);
}

function getCurrentWord() {
	return proDoc.getWord(currNum);
}

function isWordCapitalized() {
	var word = proDoc.getWord(currNum);
	var c = word.charAt(0);
	if (c.toUpperCase() == c) {
		return true;
	} else {
		return false;
	}
}

function capitalizeSuggs(sAr) {
	var c = sAr.length;
	for (x = 0; x < c; x++) {
		sStr = sAr[x];
		sC = sStr.charAt(0);
		sC = sC.toUpperCase();
		var newstr = sC + sStr.substr(1, sStr.length - 1);
		sAr[x] = newstr;
	}
	return sAr;
}

function setSelectList() {
	var sel = self.document.sugform.suggest_list;
	var sugAr = new Array();
	sel.length = 0;
	sugAr = proDoc.getSuggList(currNum);
	if (sugAr.length > 0) {
		if (isWordCapitalized()) {
			sugAr = capitalizeSuggs(sugAr);
		}
		for (x = 0; x < sugAr.length; x++) {
			var newOpt = new Option(sugAr[x], x);
			sel.options.length++;
			sel.options[sel.length - 1].text  = newOpt.text;
			sel.options[sel.length - 1].value = newOpt.value;
		}
		//sel.options[0].selected = true;
		document.sugform.new_word.value = sel.options[0].text;
		sel.disabled = false;
	} else {
		sel.options[sel.options.length] = new Option(\'(no suggestions)\', \'(no suggestions)\');
		sel.disabled = true;
		document.sugform.new_word.value = getCurrentWord();
	}
	document.sugform.new_word.focus();
	setSelectionRange(document.sugform.new_word, 0, document.sugform.new_word.value.length);
}

function suggest_list_change(sel) {
	self.document.sugform.new_word.value = sel.options[sel.options.selectedIndex].text;
}

function undoLast() {
	currNum--;
	if (lastAction == \'change\') {
		var oi = proDoc.getOi(currNum);
		var retVal = proDoc.setOrigWord(currNum, proDoc.getLastOrigWord());
		var where = in_array(changeAllWordsOriginal, proDoc.getLastOrigWord().toLowerCase());
		if (where) {
			changeAllWordsOriginal[where - 1] = \'\';
			changeAllWordsReplace[where - 1] = \'\';
		}
		var where = in_array(comMistakesOriginal, proDoc.getLastOrigWord().toLowerCase());
		if (where) {
			comMistakesOriginal[where - 1] = \'\';
			comMistakesReplace[where - 1] = \'\';
		}
	} else if (lastAction == \'ignore\' || lastAction == \'add\') {
		if (lastAction == \'add\') {
			removeWord(getCurrentWord());
		}
		var where = in_array(ignoreAllWords, getCurrentWord().toLowerCase());
		if (where) {
			ignoreAllWords[where - 1] = \'\';
		}
	}
	currNum--;
	nextWord();
	disableUndo(true);
}

function changeWord() {
	lastAction = \'change\';
	var oi = proDoc.getOi(currNum);
	var nw = self.document.sugform.new_word.value;
	var retVal = proDoc.setNewWord(currNum, nw);
	comMistakesOriginal[comMistakesOriginal.length] = getCurrentWord().toLowerCase();
	comMistakesReplace[comMistakesReplace.length] = self.document.sugform.new_word.value;
	nextWord();
}

function changeAllWord() {
	changeAllWordsOriginal[changeAllWordsOriginal.length] = getCurrentWord().toLowerCase();
	changeAllWordsReplace[changeAllWordsReplace.length] = self.document.sugform.new_word.value;
	changeWord();
}

function ignoreAllWord() {
	lastAction = \'ignore\';
	ignoreAllWords[ignoreAllWords.length] = getCurrentWord();
	nextWord();
}

function nextWord() {
	if (!proDoc.isEnd(currNum)) {
		currNum++;
		setContext();
		setSelectList();

		// Automatically ignore or change certain words
		if (in_array(ignoreAllWords, getCurrentWord().toLowerCase())) {
			nextWord();
		} else {
			var where = in_array(changeAllWordsOriginal, getCurrentWord().toLowerCase());
			if (where) {
				var retVal = proDoc.setNewWord(currNum, changeAllWordsReplace[where - 1]);
				changeWord();
			}
		}
		disableUndo(false);
	} else {
		finishChecking();
	}
}

// Like the PHP function, except that the key is incremented by 1!!!
function in_array(thearray, match) {
	for (var i = 0; i < thearray.length; i++) {
		if (thearray[i] == match) {
			return i + 1;
		}
	}
	return false;
}

function finishChecking() {
	// Still go through all words, if the user pressed Change All
	if (changeAllWordsOriginal.length > 0) {
		while (!proDoc.isEnd(currNum)) {
			nextWord();
		}
	}
	disableUndo(true);

	var strConcat = "";
	var oAr = new Array();
	oAr = proDoc.getOrigAr();
	var oArLen = oAr.length;
	for (x = 0; x < oArLen; x++) {
		if (typeof(oAr[x]) == \'undefined\') {
			continue;
		}
		strConcat += oAr[x];
	}
	if (window.top.opener && !window.top.opener.closed) {
		window.top.opener.updateSpellChecked(strConcat);
		<%if $sendafter %>
			window.top.opener.sendMail(window.top.opener.document.composeform, true);
		<%endif%>
	} else {
		//alert(\'The window containing your original data has been closed.\');
	}
	if (userDict.length > 0 || comMistakesOriginal.length > 0) {
		submitDict();
	} else {
		closeMe();
	}
}

function submitDict() {
	//alert(\'New words in dictionary: \' + userDict.join(\'\\n\') + \'\\nWords that were changed: \' + comMistakesOriginal.join(\'\\n\') + \'\\nWords that came instead: \' + comMistakesReplace.join(\'\\n\'));
	document.sugform.newWords.value = userDict.join(\'\\n\');
	document.sugform.changedFrom.value = comMistakesOriginal.join(\'\\n\');
	document.sugform.changedTo.value = comMistakesReplace.join(\'\\n\');
	document.sugform.submit();             
	return;
}

function closeMe() {
	window.top.window.close();
}

function cancelChecking() {
	<%if $sendafter %>
		if (confirm(\'The spell check on the message was halted. Do you want to send anyway?\')) {
			window.top.opener.sendMail(window.top.opener.document.composeform, true);
		}
	<%endif%>
	closeMe();
}

function disableUndo(state) {
	self.document.sugform.undolast.disabled = state;
}

function addWord() {
	userDict[userDict.length] = getCurrentWord();
	ignoreAllWord();
	lastAction = \'add\';
	disableUndo(true);
}

function setSelectionRange(input, selectionStart, selectionEnd) {
	if (input.setSelectionRange) {
		input.focus();
		input.setSelectionRange(selectionStart, selectionEnd);
	} else if (input.createTextRange) {
		var range = input.createTextRange();
		range.collapse(true);
		range.moveEnd(\'character\', selectionEnd);
		range.moveStart(\'character\', selectionStart);
		range.select();
	}
}

//-->
</script>
</head>
<body style="background-color: #C7E1F4;" onload="startSpell();">

$header

<form action="compose.spell.php" name="sugform" method="post">
<input type="hidden" name="cmd" value="updatedata">
<input type="hidden" name="newWords" value="">
<input type="hidden" name="changedFrom" value="">
<input type="hidden" name="changedTo" value="">

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell"><span class="normalfonttablehead"><b>Spell Checker</b></span></th>
</tr>
</table>

<table align="center" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td style="padding: 2px; padding-top: 10px" width="75%" colspan="2"><div id="wordnum" class="normalfont" style="height: 14px; width: 98%"></div></td>
	</tr>
	<tr>
		<td style="padding: 2px; padding-top: 4px" width="75%"><div id="context" class="bginput" style="height: 70px; width: 98%; border: 1px inset; padding: 2px"></div></td>
		<td style="padding-top: 4px">
			<table width="100%" border="0" cellspacing="0" cellpadding="4">
				<tr>
					<td align="center"><input type="button" value="Ignore" onClick="nextWord();" class="bginput" name="ignore" style="width: 98%" /></td>
				</tr>
				<tr>
					<td align="center"><input type="button" value="Ignore All" onClick="ignoreAllWord();" class="bginput" name="ignoreall" style="width: 98%" /></td>
				</tr>
				<tr>
					<td align="center"><input type="button" value="Add Word" onClick="addWord();" class="bginput" name="addword" style="width: 98%" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td style="padding: 2px; padding-top: 4px"  width="75%">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td nowrap="nowrap"><span class="normalfont">Change to:</span></td>
					<td style="padding-left: 10px" width="100%"><input type="text" name="new_word" size="12" value="" class="bginput" style="width: 98%" /></td>
				</tr>
			</table>
		</td>
		<td rowspan="2">
			<table width="100%" border="0" cellspacing="0" cellpadding="4">
				<tr>
					<td align="center"><input type="button" value="Change" onClick="changeWord();" class="bginput" name="change" style="width: 98%" /></td>
				</tr>
				<tr>
					<td align="center" style="padding-top: 2px"><input type="button" value="Change All" onClick="changeAllWord();" class="bginput" name="changeall" style="width: 98%" /></td>
				</tr>
				<tr>
					<td align="center"><input type="button" value="Undo Last" onClick="undoLast();" class="bginput" name="undolast" style="width: 98%" disabled="disabled" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td style="padding: 2px; padding-top: 4px"  width="75%"><select name="suggest_list" style="width: 99%" onChange="suggest_list_change(this);" multiple="multiple" size="4"></select></td>
	</tr>
	<tr>
		<td align="center" style="padding: 2px; padding-top: 4px" colspan="2"><input type="button" value="   Finish   " onClick="finishChecking();" class="bginput" name="finish" />&nbsp;&nbsp;&nbsp;<input type="button" value="   Cancel   " onClick="cancelChecking();" class="bginput" name="cancel" /></td>
	</tr>
</table>

</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head>
<title>$appname: Spell Checker</title>
$GLOBALS[css]
<script language=\\"Javascript\\">
<!--

var currNum=0;
var intTop;
var proDoc = window.top.process;
var userDictAvail = true;
var userDict = new Array();
var ignoreAllWords = new Array();
var changeAllWordsOriginal = new Array();
var changeAllWordsReplace = new Array();
var comMistakesOriginal = new Array();
var comMistakesReplace = new Array();
var lastAction = \'ignore\';

function removeWord(word) {
	for (var i = 0; i < userDict.length; i++) {
		if (userDict[i] == word) {
			userDict[i] = \'\';
		}
	}
	return;
}

function writeMe(strRepVal, wordNum) {       
	var wDoc = self.document;
	var eDiv = document.all ? wDoc.all[\'context\'] : wDoc.getElementById(\'context\');
	eDiv.innerHTML = strRepVal;
	var fDiv = document.all ? wDoc.all[\'wordnum\'] : wDoc.getElementById(\'wordnum\');
	fDiv.innerHTML = \'Word <b>\'+wordNum+\'</b> out of <b>\'+proDoc.getMisspelledCount()+\'</b>:\';
	return;
}

function startSpell() {
	var strFirstWord = getCurrentWord();
	intTop = proDoc.getMisspelledCount();
	setContext();
	setSelectList();
	return true;
}

function setContext() {
	writeMe(proDoc.getContext(currNum), currNum + 1);
}

function getCurrentWord() {
	return proDoc.getWord(currNum);
}

function isWordCapitalized() {
	var word = proDoc.getWord(currNum);
	var c = word.charAt(0);
	if (c.toUpperCase() == c) {
		return true;
	} else {
		return false;
	}
}

function capitalizeSuggs(sAr) {
	var c = sAr.length;
	for (x = 0; x < c; x++) {
		sStr = sAr[x];
		sC = sStr.charAt(0);
		sC = sC.toUpperCase();
		var newstr = sC + sStr.substr(1, sStr.length - 1);
		sAr[x] = newstr;
	}
	return sAr;
}

function setSelectList() {
	var sel = self.document.sugform.suggest_list;
	var sugAr = new Array();
	sel.length = 0;
	sugAr = proDoc.getSuggList(currNum);
	if (sugAr.length > 0) {
		if (isWordCapitalized()) {
			sugAr = capitalizeSuggs(sugAr);
		}
		for (x = 0; x < sugAr.length; x++) {
			var newOpt = new Option(sugAr[x], x);
			sel.options.length++;
			sel.options[sel.length - 1].text  = newOpt.text;
			sel.options[sel.length - 1].value = newOpt.value;
		}
		//sel.options[0].selected = true;
		document.sugform.new_word.value = sel.options[0].text;
		sel.disabled = false;
	} else {
		sel.options[sel.options.length] = new Option(\'(no suggestions)\', \'(no suggestions)\');
		sel.disabled = true;
		document.sugform.new_word.value = getCurrentWord();
	}
	document.sugform.new_word.focus();
	setSelectionRange(document.sugform.new_word, 0, document.sugform.new_word.value.length);
}

function suggest_list_change(sel) {
	self.document.sugform.new_word.value = sel.options[sel.options.selectedIndex].text;
}

function undoLast() {
	currNum--;
	if (lastAction == \'change\') {
		var oi = proDoc.getOi(currNum);
		var retVal = proDoc.setOrigWord(currNum, proDoc.getLastOrigWord());
		var where = in_array(changeAllWordsOriginal, proDoc.getLastOrigWord().toLowerCase());
		if (where) {
			changeAllWordsOriginal[where - 1] = \'\';
			changeAllWordsReplace[where - 1] = \'\';
		}
		var where = in_array(comMistakesOriginal, proDoc.getLastOrigWord().toLowerCase());
		if (where) {
			comMistakesOriginal[where - 1] = \'\';
			comMistakesReplace[where - 1] = \'\';
		}
	} else if (lastAction == \'ignore\' || lastAction == \'add\') {
		if (lastAction == \'add\') {
			removeWord(getCurrentWord());
		}
		var where = in_array(ignoreAllWords, getCurrentWord().toLowerCase());
		if (where) {
			ignoreAllWords[where - 1] = \'\';
		}
	}
	currNum--;
	nextWord();
	disableUndo(true);
}

function changeWord() {
	lastAction = \'change\';
	var oi = proDoc.getOi(currNum);
	var nw = self.document.sugform.new_word.value;
	var retVal = proDoc.setNewWord(currNum, nw);
	comMistakesOriginal[comMistakesOriginal.length] = getCurrentWord().toLowerCase();
	comMistakesReplace[comMistakesReplace.length] = self.document.sugform.new_word.value;
	nextWord();
}

function changeAllWord() {
	changeAllWordsOriginal[changeAllWordsOriginal.length] = getCurrentWord().toLowerCase();
	changeAllWordsReplace[changeAllWordsReplace.length] = self.document.sugform.new_word.value;
	changeWord();
}

function ignoreAllWord() {
	lastAction = \'ignore\';
	ignoreAllWords[ignoreAllWords.length] = getCurrentWord();
	nextWord();
}

function nextWord() {
	if (!proDoc.isEnd(currNum)) {
		currNum++;
		setContext();
		setSelectList();

		// Automatically ignore or change certain words
		if (in_array(ignoreAllWords, getCurrentWord().toLowerCase())) {
			nextWord();
		} else {
			var where = in_array(changeAllWordsOriginal, getCurrentWord().toLowerCase());
			if (where) {
				var retVal = proDoc.setNewWord(currNum, changeAllWordsReplace[where - 1]);
				changeWord();
			}
		}
		disableUndo(false);
	} else {
		finishChecking();
	}
}

// Like the PHP function, except that the key is incremented by 1!!!
function in_array(thearray, match) {
	for (var i = 0; i < thearray.length; i++) {
		if (thearray[i] == match) {
			return i + 1;
		}
	}
	return false;
}

function finishChecking() {
	// Still go through all words, if the user pressed Change All
	if (changeAllWordsOriginal.length > 0) {
		while (!proDoc.isEnd(currNum)) {
			nextWord();
		}
	}
	disableUndo(true);

	var strConcat = \\"\\";
	var oAr = new Array();
	oAr = proDoc.getOrigAr();
	var oArLen = oAr.length;
	for (x = 0; x < oArLen; x++) {
		if (typeof(oAr[x]) == \'undefined\') {
			continue;
		}
		strConcat += oAr[x];
	}
	if (window.top.opener && !window.top.opener.closed) {
		window.top.opener.updateSpellChecked(strConcat);
		".(($sendafter ) ? ("
			window.top.opener.sendMail(window.top.opener.document.composeform, true);
		") : (\'\'))."
	} else {
		//alert(\'The window containing your original data has been closed.\');
	}
	if (userDict.length > 0 || comMistakesOriginal.length > 0) {
		submitDict();
	} else {
		closeMe();
	}
}

function submitDict() {
	//alert(\'New words in dictionary: \' + userDict.join(\'\\\\n\') + \'\\\\nWords that were changed: \' + comMistakesOriginal.join(\'\\\\n\') + \'\\\\nWords that came instead: \' + comMistakesReplace.join(\'\\\\n\'));
	document.sugform.newWords.value = userDict.join(\'\\\\n\');
	document.sugform.changedFrom.value = comMistakesOriginal.join(\'\\\\n\');
	document.sugform.changedTo.value = comMistakesReplace.join(\'\\\\n\');
	document.sugform.submit();             
	return;
}

function closeMe() {
	window.top.window.close();
}

function cancelChecking() {
	".(($sendafter ) ? ("
		if (confirm(\'The spell check on the message was halted. Do you want to send anyway?\')) {
			window.top.opener.sendMail(window.top.opener.document.composeform, true);
		}
	") : (\'\'))."
	closeMe();
}

function disableUndo(state) {
	self.document.sugform.undolast.disabled = state;
}

function addWord() {
	userDict[userDict.length] = getCurrentWord();
	ignoreAllWord();
	lastAction = \'add\';
	disableUndo(true);
}

function setSelectionRange(input, selectionStart, selectionEnd) {
	if (input.setSelectionRange) {
		input.focus();
		input.setSelectionRange(selectionStart, selectionEnd);
	} else if (input.createTextRange) {
		var range = input.createTextRange();
		range.collapse(true);
		range.moveEnd(\'character\', selectionEnd);
		range.moveStart(\'character\', selectionStart);
		range.select();
	}
}

//-->
</script>
</head>
<body style=\\"background-color: #C7E1F4;\\" onload=\\"startSpell();\\">

$GLOBALS[header]

<form action=\\"compose.spell.php{$GLOBALS[session_url]}\\" name=\\"sugform\\" method=\\"post\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"updatedata\\">
<input type=\\"hidden\\" name=\\"newWords\\" value=\\"\\">
<input type=\\"hidden\\" name=\\"changedFrom\\" value=\\"\\">
<input type=\\"hidden\\" name=\\"changedTo\\" value=\\"\\">

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Spell Checker</b></span></th>
</tr>
</table>

<table align=\\"center\\" width=\\"100%\\" cellspacing=\\"0\\" cellpadding=\\"0\\">
	<tr>
		<td style=\\"padding: 2px; padding-top: 10px\\" width=\\"75%\\" colspan=\\"2\\"><div id=\\"wordnum\\" class=\\"normalfont\\" style=\\"height: 14px; width: 98%\\"></div></td>
	</tr>
	<tr>
		<td style=\\"padding: 2px; padding-top: 4px\\" width=\\"75%\\"><div id=\\"context\\" class=\\"bginput\\" style=\\"height: 70px; width: 98%; border: 1px inset; padding: 2px\\"></div></td>
		<td style=\\"padding-top: 4px\\">
			<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"4\\">
				<tr>
					<td align=\\"center\\"><input type=\\"button\\" value=\\"Ignore\\" onClick=\\"nextWord();\\" class=\\"bginput\\" name=\\"ignore\\" style=\\"width: 98%\\" /></td>
				</tr>
				<tr>
					<td align=\\"center\\"><input type=\\"button\\" value=\\"Ignore All\\" onClick=\\"ignoreAllWord();\\" class=\\"bginput\\" name=\\"ignoreall\\" style=\\"width: 98%\\" /></td>
				</tr>
				<tr>
					<td align=\\"center\\"><input type=\\"button\\" value=\\"Add Word\\" onClick=\\"addWord();\\" class=\\"bginput\\" name=\\"addword\\" style=\\"width: 98%\\" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td style=\\"padding: 2px; padding-top: 4px\\"  width=\\"75%\\">
			<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"0\\">
				<tr>
					<td nowrap=\\"nowrap\\"><span class=\\"normalfont\\">Change to:</span></td>
					<td style=\\"padding-left: 10px\\" width=\\"100%\\"><input type=\\"text\\" name=\\"new_word\\" size=\\"12\\" value=\\"\\" class=\\"bginput\\" style=\\"width: 98%\\" /></td>
				</tr>
			</table>
		</td>
		<td rowspan=\\"2\\">
			<table width=\\"100%\\" border=\\"0\\" cellspacing=\\"0\\" cellpadding=\\"4\\">
				<tr>
					<td align=\\"center\\"><input type=\\"button\\" value=\\"Change\\" onClick=\\"changeWord();\\" class=\\"bginput\\" name=\\"change\\" style=\\"width: 98%\\" /></td>
				</tr>
				<tr>
					<td align=\\"center\\" style=\\"padding-top: 2px\\"><input type=\\"button\\" value=\\"Change All\\" onClick=\\"changeAllWord();\\" class=\\"bginput\\" name=\\"changeall\\" style=\\"width: 98%\\" /></td>
				</tr>
				<tr>
					<td align=\\"center\\"><input type=\\"button\\" value=\\"Undo Last\\" onClick=\\"undoLast();\\" class=\\"bginput\\" name=\\"undolast\\" style=\\"width: 98%\\" disabled=\\"disabled\\" /></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td style=\\"padding: 2px; padding-top: 4px\\"  width=\\"75%\\"><select name=\\"suggest_list\\" style=\\"width: 99%\\" onChange=\\"suggest_list_change(this);\\" multiple=\\"multiple\\" size=\\"4\\"></select></td>
	</tr>
	<tr>
		<td align=\\"center\\" style=\\"padding: 2px; padding-top: 4px\\" colspan=\\"2\\"><input type=\\"button\\" value=\\"   Finish   \\" onClick=\\"finishChecking();\\" class=\\"bginput\\" name=\\"finish\\" />&nbsp;&nbsp;&nbsp;<input type=\\"button\\" value=\\"   Cancel   \\" onClick=\\"cancelChecking();\\" class=\\"bginput\\" name=\\"cancel\\" /></td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'error' => 
  array (
    'templategroupid' => '1',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname <%if $iserror %>Error<%else%>Message<%endif%></title>
$css
</head>
<body <%if defined(\'LOAD_MINI_TEMPLATES\') %>style="background-color: #C7E1F4;"<%endif%>>
$header

<table cellpadding="4" cellspacing="0" class="normalTable" width="<%if defined(\'LOAD_MINI_TEMPLATES\') %>100%<%else%>650<%endif%>" align="center" style="height: 100px;">
<tr class="headerRow">
	<th class="headerBothCell"><span class="normalfonttablehead"><b>$appname <%if $iserror %>Error<%else%>Message<%endif%></b></span></th>
</tr>
<tr class="highRow" style="height: 100%;">
	<td class="highBothCell" valign="top" style="padding: 15px;"><span class="normalfont">$message</span></td>
</tr>
<%if $goback %>
<tr class="headerRow">
	<th class="headerBothCell"><a href="#" onClick="history.back(1);"><span class="normalfonttablehead">[Go Back]</span></a></th>
</tr>
<%endif%>
</table>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname ".(($iserror ) ? ("Error") : ("Message"))."</title>
$GLOBALS[css]
</head>
<body ".((defined(\'LOAD_MINI_TEMPLATES\') ) ? ("style=\\"background-color: #C7E1F4;\\"") : (\'\')).">
$GLOBALS[header]

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"".((defined(\'LOAD_MINI_TEMPLATES\') ) ? ("100%") : ("650"))."\\" align=\\"center\\" style=\\"height: 100px;\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>$appname ".(($iserror ) ? ("Error") : ("Message"))."</b></span></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 100%;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\" style=\\"padding: 15px;\\"><span class=\\"normalfont\\">$message</span></td>
</tr>
".(($goback ) ? ("
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"#\\" onClick=\\"history.back(1);\\"><span class=\\"normalfonttablehead\\">[Go Back]</span></a></th>
</tr>
") : (\'\'))."
</table>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'error_couldntsend' => 
  array (
    'templategroupid' => '7',
    'user_data' => 'The server encountered a problem while trying to send your message and could not complete the process.',
    'parsed_data' => '"The server encountered a problem while trying to send your message and could not complete the process."',
    'upgraded' => '0',
  ),
  'error_nosecretanswer' => 
  array (
    'templategroupid' => '7',
    'user_data' => 'We are sorry, but this account does not have a secret question and answer attached to it. Therefore you will not be able to retrieve its password. For further assistance please contact the operators of this service.',
    'parsed_data' => '"We are sorry, but this account does not have a secret question and answer attached to it. Therefore you will not be able to retrieve its password. For further assistance please contact the operators of this service."',
    'upgraded' => '0',
  ),
  'footer' => 
  array (
    'templategroupid' => '1',
    'user_data' => '					</td>
				</tr>
				<tr>
					<td valign="top" style="background: $skin[pagebgcolor] url(\'$skin[images]/content_bottomleft.gif\'); width: 16px; height: 20px;">
						<img src="$skin[images]/spacer.gif" width="16" height="1" alt="" />
					</td>
					<td style="background-color: $skin[pagebgcolor]; border: 0px solid #9BC1E6; border-bottom-width: 1px; width: 100%;">
						<img src="$skin[images]/spacer.gif" width="1" height="1" alt="" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr style="height: 8px;">
		<td valign="top" style="width: 14px; height: 8px;">
		</td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td align="left" nowrap="nowrap" valign="top" style="padding-left: 3px; padding-top: 3px; background: url(\'$skin[images]/footer_mainbg.gif\'); border: 0px solid #254BAA; border-top-width: 1px;">
<%if $hiveuser[userid] <> 0%>
			<span class="smallfont" style="vertical-align: top;">
				<a href="#" onClick="showHideFolders(); return false;" class="footerLink">Toggle folder tab</a>
			</span>
<%else%>
			&nbsp;
<%endif%>
		</td>
		<td align="center" valign="top" style="padding-left: 0px; padding-top: 3px; width: 100%; background: url(\'$skin[images]/footer_mainbg.gif\'); border: 0px solid #254BAA; border-top-width: 1px;">
<%if $hiveuser[userid] <> 0%>
			<span class="smallfont" style="vertical-align: top;">
				<a href="{<INDEX_FILE>}" class="footerLink">Inbox</a> | 
				<a href="compose.email.php" class="footerLink">Compose</a> | 
				<a href="addressbook.view.php" class="footerLink">Address Book</a> |
				<%if $hiveuser[\'cancalendar\'] %><a href="calendar.display.php" class="footerLink">Calendar</a> | <%endif%>
				<a href="options.menu.php" class="footerLink">Preferences</a> | 
				<%if $hiveuser[\'cansearch\'] %><a href="search.intro.php" class="footerLink">Search</a> | <%endif%>
				<%if !empty($supportemail) %><a href="compose.email.php?data[to]=$supportemail" class="footerLink">Support</a> | <%endif%>
				<a href="user.logout.php" class="footerLink">Logout</a>
			</span>
<%else%>
			&nbsp;
<%endif%>
		</td>
		<td style="border: 0px solid #254BAA; border-top-width: 1px;">
			<img src="$skin[images]/footer_right.gif" align="middle" border="0" alt="" />
		</td>
	</tr>
</table>
<%if $runpop or !empty($runuserpop) %>
<script type="text/javascript" src="pop.gateway.php?<%if !empty($runuserpop) %>foruser=1&pops=$runuserpop&random={<TIMENOW>}<%endif%>"></script>
<script type="text/javascript" language="JavaScript">
<!--

if (gotNewMsgs > 0) {
	<%if $hiveuser[\'popupnotices\'] %>
		if (confirm(\'You have just received \'+gotNewMsgs+\' new message(s) to your account. Would you like to go to your {$_folders[\'-1\'][\'title\']} now?\')) {
			if (confirm(\'Open {$_folders[\'-1\'][\'title\']} in a new window?\\n\\n(Press cancel to use current window.)\')) {
				window.open(\'{<INDEX_FILE>}\', \'inbox\'); 
			} else {
				window.location = \'{<INDEX_FILE>}\';
			}
		}
	<%else%>
		showNotice(\'You have just received \'+gotNewMsgs+\' new message(s) to your account. Click <a href="{<INDEX_FILE>}">here</a> to go to your {$_folders[\'-1\'][\'title\']} now.\');
	<%endif%>
}

// -->
</script>
<%endif%>
$youvegotmail',
    'parsed_data' => '"					</td>
				</tr>
				<tr>
					<td valign=\\"top\\" style=\\"background: {$GLOBALS[skin][pagebgcolor]} url(\'{$GLOBALS[skin][images]}/content_bottomleft.gif\'); width: 16px; height: 20px;\\">
						<img src=\\"{$GLOBALS[skin][images]}/spacer.gif\\" width=\\"16\\" height=\\"1\\" alt=\\"\\" />
					</td>
					<td style=\\"background-color: {$GLOBALS[skin][pagebgcolor]}; border: 0px solid #9BC1E6; border-bottom-width: 1px; width: 100%;\\">
						<img src=\\"{$GLOBALS[skin][images]}/spacer.gif\\" width=\\"1\\" height=\\"1\\" alt=\\"\\" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr style=\\"height: 8px;\\">
		<td valign=\\"top\\" style=\\"width: 14px; height: 8px;\\">
		</td>
	</tr>
</table>
<table cellpadding=\\"0\\" cellspacing=\\"0\\" width=\\"100%\\">
	<tr>
		<td align=\\"left\\" nowrap=\\"nowrap\\" valign=\\"top\\" style=\\"padding-left: 3px; padding-top: 3px; background: url(\'{$GLOBALS[skin][images]}/footer_mainbg.gif\'); border: 0px solid #254BAA; border-top-width: 1px;\\">
".(($hiveuser[userid] <> 0) ? ("
			<span class=\\"smallfont\\" style=\\"vertical-align: top;\\">
				<a href=\\"#\\" onClick=\\"showHideFolders(); return false;\\" class=\\"footerLink\\">Toggle folder tab</a>
			</span>
") : ("
			&nbsp;
"))."
		</td>
		<td align=\\"center\\" valign=\\"top\\" style=\\"padding-left: 0px; padding-top: 3px; width: 100%; background: url(\'{$GLOBALS[skin][images]}/footer_mainbg.gif\'); border: 0px solid #254BAA; border-top-width: 1px;\\">
".(($hiveuser[userid] <> 0) ? ("
			<span class=\\"smallfont\\" style=\\"vertical-align: top;\\">
				<a href=\\"".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Inbox</a> | 
				<a href=\\"compose.email.php{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Compose</a> | 
				<a href=\\"addressbook.view.php{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Address Book</a> |
				".(($hiveuser[\'cancalendar\'] ) ? ("<a href=\\"calendar.display.php{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Calendar</a> | ") : (\'\'))."
				<a href=\\"options.menu.php{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Preferences</a> | 
				".(($hiveuser[\'cansearch\'] ) ? ("<a href=\\"search.intro.php{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Search</a> | ") : (\'\'))."
				".((!empty($supportemail) ) ? ("<a href=\\"compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}data[to]=$supportemail\\" class=\\"footerLink\\">Support</a> | ") : (\'\'))."
				<a href=\\"user.logout.php{$GLOBALS[session_url]}\\" class=\\"footerLink\\">Logout</a>
			</span>
") : ("
			&nbsp;
"))."
		</td>
		<td style=\\"border: 0px solid #254BAA; border-top-width: 1px;\\">
			<img src=\\"{$GLOBALS[skin][images]}/footer_right.gif\\" align=\\"middle\\" border=\\"0\\" alt=\\"\\" />
		</td>
	</tr>
</table>
".(($runpop or !empty($runuserpop) ) ? ("
<script type=\\"text/javascript\\" src=\\"pop.gateway.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}".((!empty($runuserpop) ) ? ("foruser=1&pops=$runuserpop&random=".(defined("TIMENOW") ? constant("TIMENOW") : "{<TIMENOW>}")."") : (\'\'))."\\"></script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--

if (gotNewMsgs > 0) {
	".(($hiveuser[\'popupnotices\'] ) ? ("
		if (confirm(\'You have just received \'+gotNewMsgs+\' new message(s) to your account. Would you like to go to your {$_folders[\'-1\'][\'title\']} now?\')) {
			if (confirm(\'Open {$_folders[\'-1\'][\'title\']} in a new window?\\\\n\\\\n(Press cancel to use current window.)\')) {
				window.open(\'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\', \'inbox\'); 
			} else {
				window.location = \'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\';
			}
		}
	") : ("
		showNotice(\'You have just received \'+gotNewMsgs+\' new message(s) to your account. Click <a href=\\"".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\\">here</a> to go to your {$_folders[\'-1\'][\'title\']} now.\');
	"))."
}

// -->
</script>
") : (\'\'))."
$youvegotmail"',
    'upgraded' => '0',
  ),
  'header_minifolderbit_current' => 
  array (
    'templategroupid' => '1',
    'user_data' => '<tr onContextMenu="contextForFolder(event, $thisfolder[folderid], \'$thisfolder[esctitle]\');">
	<td align="center"><a href="{<INDEX_FILE>}?folderid=$thisfolder[folderid]"><img src="$skin[images]/folders/$thisfolder[image].gif" alt="" border="0" /></a></td>
	<td nowrap="nowrap" style="background-color: #A4C7E8; padding-left: 4px;"><span class="folderLink"><a href="{<INDEX_FILE>}?folderid=$thisfolder[folderid]" class="folderLink"><span class="folderLink"><b>$thisfolder[title]</b></a><%if $unreads[$thisfolder[folderid]] != 0%>  <span style="color: #0000FF;">({$unreads[$thisfolder[folderid]]})</span><%endif%></span></td>
</tr>
',
    'parsed_data' => '"<tr onContextMenu=\\"contextForFolder(event, $thisfolder[folderid], \'$thisfolder[esctitle]\');\\">
	<td align=\\"center\\"><a href=\\"".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=$thisfolder[folderid]\\"><img src=\\"{$GLOBALS[skin][images]}/folders/$thisfolder[image].gif\\" alt=\\"\\" border=\\"0\\" /></a></td>
	<td nowrap=\\"nowrap\\" style=\\"background-color: #A4C7E8; padding-left: 4px;\\"><span class=\\"folderLink\\"><a href=\\"".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=$thisfolder[folderid]\\" class=\\"folderLink\\"><span class=\\"folderLink\\"><b>$thisfolder[title]</b></a>".(($unreads[$thisfolder[folderid]] != 0) ? ("  <span style=\\"color: #0000FF;\\">({$unreads[$thisfolder[folderid]]})</span>") : (\'\'))."</span></td>
</tr>
"',
    'upgraded' => '0',
  ),
  'index' => 
  array (
    'templategroupid' => '2',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname for $hiveuser[username]$domainname</title>
$css
$metarefresh
<script type="text/javascript" src="misc/checkall.js"></script>
<script type="text/javascript" src="misc/folderview.js"></script>
<script type="text/javascript" language="JavaScript">
<!--

var rows = new Array();
$rowjsbits

var useBG = $hiveuser[usebghigh];
var previewBoth = (\'$hiveuser[preview]\' == \'both\' ? true : false);

function makeRows(which) {
	if (useBG) {
		$markallbg(which == \'first\' ? \'highRow\' : \'normalRow\');
	}
}

function contextForMail(e, msgID, isNew, isFlagged) {
	var popupoptions = [
		new ContextItem(\'Open\', function(){ openMail((totalChecked == 1 ? msgID : -1)); }, false, true),
		new ContextItem(\'Open in New Window\', function(){ openMail((totalChecked == 1 ? msgID : -1), true); }, false),
		new ContextItem(\'Print\', function(){ window.location = \'read.printable.php?messageid=\'+msgID; }, totalChecked != 1),
		new ContextSeperator(),
<%if $folderid == -2 %>
		new ContextItem(\'Reply to Addressee\', function(){ replyForward(form, \'replyaddressee\'); }, totalChecked != 1),
<%endif%>
		new ContextItem(\'Reply to Sender\', function(){ replyForward(form, \'reply\'); }, totalChecked != 1),
		new ContextItem(\'Reply to All\', function(){ replyForward(form, \'replyall\'); }, totalChecked != 1),
		new ContextItem(\'Forward\', function(){ replyForward(form, \'forward\'); }, totalChecked != 1),
		new ContextItem(\'Forward as Attachment\', function(){ replyForward(form, \'forwardattach\'); }),
		new ContextSeperator(),
		new ContextItem(\'Mark as Read\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 2; form.submit(); }, isNew.indexOf(\'new\') == -1 && totalChecked == 1),
		new ContextItem(\'Mark as Unread\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 3; form.submit(); }, isNew.indexOf(\'new\') != -1 && totalChecked == 1),
		new ContextItem(\'Flag\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 4; form.submit(); }, isFlagged == 1 && totalChecked == 1),
		new ContextItem(\'Unflag\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 5; form.submit(); }, isFlagged == 0 && totalChecked == 1),
		new ContextSeperator(),
		new ContextItem(\'Move...\', function(){ window.open(\'{<INDEX_FILE>}?cmd=selfolder\',\'selectfolders\',\'resizable=no,width=270,height=150\'); }),
		new ContextItem(\'Delete\', function(){ if (confirm(\'Are you sure you want to delete the selected messages?\')) { form.cmd.value = \'delete\'; form.submit(); } }),
		new ContextItem(\'Rename Subject...\', function(){ window.open(\'read.rename.php?messageid=\'+msgID,\'renameSubject\',\'resizable=no,width=360,height=175\'); }),
		new ContextSeperator(),
		new ContextItem(\'Add Sender(s) to Address Book\', function(){ actionStuff(form, \'addbook\'); })
<%if $hiveuser[canrule] %>,
		new ContextItem(\'Block Sender(s)...\', function(){ actionStuff(form, \'blocksender\'); }),
		new ContextItem(\'Block Subject(s)...\', function(){ actionStuff(form, \'blocksubject\'); })
<%endif%>
	]
	ContextMenu.display(popupoptions, e);
	ContextMenu.msgID = msgID;
}

function confirmEmpty() {
	if (confirm("Are you sure you wish to empty this folder? This action is non-reversible!")) {
		window.location=\'folders.update.php?empty=Empty&return=-3&folder[-3]=yes\';
	}
}

-->
</script>
</head>
<body onkeydown="return moveArrow();">

$header

<%if $showexpiringsub %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
	<tr>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell"><span class="headerText"><span class="normalfonttablehead"><b>Your Subscription</b></span></th>
</tr>
<tr style="highRow">
	<td class="highBothCell"><span class="normalfont">Your subscription to the <b>$cursub[name]</b> plan will expire on <b>$cursub[expires]</b>. Click <a href="options.subscription.php">here</a> to renew.</span></td>
</tr>
</table>
		</td>
	</tr>
</table>
<%endif%>

<form action="{<INDEX_FILE>}" method="post" name="form">
<input type="hidden" name="cmd" id="cmd" value="dostuff" />
<input type="hidden" name="folderid" value="$folderid" />
<input type="hidden" name="movetofolderid" value="$folderid" />
<input type="hidden" name="remove" value="0" />

<table cellpadding="0" border="0" cellspacing="1" width="100%" align="center">
<tr>
	<td width="100%" valign="top">
$topbox

<%if !empty($draftbits) %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
	<tr>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell"><span class="headerText"><span class="normalfonttablehead"><b>You still have unsent drafts!</b></span></span></th>
</tr>
$draftbits
</table>
	</td>
</tr>
</table>

<br />
<%endif%>

<%if $hiveuser[preview] == \'top\' or $hiveuser[preview] == \'both\' %>
$previewtop<br />
<%endif%>

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
	<tr>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerLeftCell">&nbsp;</th>
	<th class="headerCell" width="15" nowrap="nowrap"><span class="headerText"><a href="{<INDEX_FILE>}?folderid=$folderid&daysprune=$daysprune&perpage=$perpage&sortorder=$newsortorder&sortby=flagged"><img src="$skin[images]/flag.gif" alt="Flagged?" border="0" /></a></span></th>
$colheaders
	<th class="headerRightCell"><input name="allbox" type="checkbox" value="Check All" title="Select/Deselect All" onClick="checkAll(this.form); changeButtonsStatus(!this.checked); if (this.checked) makeRows(\'first\'); else makeRows(\'second\');" /></th>
</tr>
<%if empty($mailbits) %>
	<tr style="normalRow">
		<td class="normalBothCell" align="center" colspan="10"><span class="normalfont">No messages in this folder!</span></td>
	</tr>
<%else%>
	$mailbits
<%endif%>
<tr>
	<td colspan="10">
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left"><span class="smallfonttablehead"><b>
		<select name="actions" onChange="if (this.options[this.selectedIndex].value != \'nothing\') { if (actionStuff(this.form, this.options[this.selectedIndex].value) == false) this.selectedIndex = 0; } else { this.selectedIndex = 0; }">
			<option value="nothing" selected="selected">Actions to perform...</option>
			<option value="nothing">--------------------------</option>
			<option value="move">Move messages</option>
			<!--<option value="copy">Copy messages</option>-->
			<option value="delete">Delete messages</option>
			<option value="nothing">--------------------------</option>
			<option value="addbook">Add senders to address book</option>
			<option value="blocksender">Block senders</option>
			<option value="blocksubject">Block subjects</option>
		</select>
		&nbsp;
		<select name="replystuff" onChange="changeFolderID(); if (this.options[this.selectedIndex].value != \'nothing\') { if(replyForward(this.form, this.options[this.selectedIndex].value) == false) this.selectedIndex = 0; } else { this.selectedIndex = 0; }">
			<option value="nothing" selected="selected">Reply or forward...</option>
			<option value="nothing">--------------------------</option>
<%if $folderid == -2 %>
			<option value="replyaddressee">Reply to addressee</option>
<%endif%>
			<option value="reply">Reply to sender</option>
			<option value="replyall">Reply to all</option>
			<option value="forward">Forward message</option>
			<option value="forwardattach">Forward as attachment</option>
		</select>
		</b></span></td>
        <td align="right"><span class="smallfonttablehead"><b>
		<select name="markas" onChange="if (this.options[this.selectedIndex].value != \'nothing\') { this.form.cmd.value = \'mark\'; this.form.submit(); } else { this.selectedIndex = 0; }">
			<option value="nothing" selected="selected">Mark selected messages...</option>
			<option value="nothing">--------------------------</option>
			<option value="read">Mark as read</option>
			<option value="not read">Mark as not read</option>
			<option value="flagged">Mark as flagged</option>
			<option value="not flagged">Mark as not flagged</option>
			<option value="replied">Mark as replied</option>
			<option value="not replied">Mark as not replied</option>
			<option value="forwarded">Mark as forwarded</option>
			<option value="not forwarded">Mark as not forwarded</option>
		</select></b></span></td>
      </tr>
    </table></td>
</tr>
</table>

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td><span class="smallfont">Showing messages $limitlower to $limitupper of $totalmails<br />$pagenav</span></td>
	<td align="right"><span class="smallfont"><%if $folderid != -3 %><b>Note:</b> deleted messages will be moved to the Trash Can.<br />Hold down Shift key when clicking to completely delete the messages.<%else%><input type="button" class="bginput" name="empty" value="Empty Trash" onClick="confirmEmpty()"><%endif%></span></td>
</tr>
</table>
		</td>
		<%if $hiveuser[cancalendar] and $folderid == -1 and $hiveuser[caloninbox] and (empty($topbox) or $wrap != 0) %>
		<td valign="top">
			<table cellpadding="4" cellspacing="0" class="normalTable" width="150">
				$calendar
			</table>
		</td>
		<%endif%>
	</tr>
</table>

<%if $hiveuser[preview] == \'bottom\' or $hiveuser[preview] == \'both\' %>
<br />$previewbottom
<%endif%>

	</td>
</tr>
</table>
</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname for $hiveuser[username]$domainname</title>
$GLOBALS[css]
$metarefresh
<script type=\\"text/javascript\\" src=\\"misc/checkall.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/folderview.js\\"></script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--

var rows = new Array();
$rowjsbits

var useBG = $hiveuser[usebghigh];
var previewBoth = (\'$hiveuser[preview]\' == \'both\' ? true : false);

function makeRows(which) {
	if (useBG) {
		$markallbg(which == \'first\' ? \'highRow\' : \'normalRow\');
	}
}

function contextForMail(e, msgID, isNew, isFlagged) {
	var popupoptions = [
		new ContextItem(\'Open\', function(){ openMail((totalChecked == 1 ? msgID : -1)); }, false, true),
		new ContextItem(\'Open in New Window\', function(){ openMail((totalChecked == 1 ? msgID : -1), true); }, false),
		new ContextItem(\'Print\', function(){ window.location = \'read.printable.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=\'+msgID; }, totalChecked != 1),
		new ContextSeperator(),
".(($folderid == -2 ) ? ("
		new ContextItem(\'Reply to Addressee\', function(){ replyForward(form, \'replyaddressee\'); }, totalChecked != 1),
") : (\'\'))."
		new ContextItem(\'Reply to Sender\', function(){ replyForward(form, \'reply\'); }, totalChecked != 1),
		new ContextItem(\'Reply to All\', function(){ replyForward(form, \'replyall\'); }, totalChecked != 1),
		new ContextItem(\'Forward\', function(){ replyForward(form, \'forward\'); }, totalChecked != 1),
		new ContextItem(\'Forward as Attachment\', function(){ replyForward(form, \'forwardattach\'); }),
		new ContextSeperator(),
		new ContextItem(\'Mark as Read\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 2; form.submit(); }, isNew.indexOf(\'new\') == -1 && totalChecked == 1),
		new ContextItem(\'Mark as Unread\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 3; form.submit(); }, isNew.indexOf(\'new\') != -1 && totalChecked == 1),
		new ContextItem(\'Flag\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 4; form.submit(); }, isFlagged == 1 && totalChecked == 1),
		new ContextItem(\'Unflag\', function(){ form.cmd.value = \'mark\'; form.markas.selectedIndex = 5; form.submit(); }, isFlagged == 0 && totalChecked == 1),
		new ContextSeperator(),
		new ContextItem(\'Move...\', function(){ window.open(\'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=selfolder\',\'selectfolders\',\'resizable=no,width=270,height=150\'); }),
		new ContextItem(\'Delete\', function(){ if (confirm(\'Are you sure you want to delete the selected messages?\')) { form.cmd.value = \'delete\'; form.submit(); } }),
		new ContextItem(\'Rename Subject...\', function(){ window.open(\'read.rename.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=\'+msgID,\'renameSubject\',\'resizable=no,width=360,height=175\'); }),
		new ContextSeperator(),
		new ContextItem(\'Add Sender(s) to Address Book\', function(){ actionStuff(form, \'addbook\'); })
".(($hiveuser[canrule] ) ? (",
		new ContextItem(\'Block Sender(s)...\', function(){ actionStuff(form, \'blocksender\'); }),
		new ContextItem(\'Block Subject(s)...\', function(){ actionStuff(form, \'blocksubject\'); })
") : (\'\'))."
	]
	ContextMenu.display(popupoptions, e);
	ContextMenu.msgID = msgID;
}

function confirmEmpty() {
	if (confirm(\\"Are you sure you wish to empty this folder? This action is non-reversible!\\")) {
		window.location=\'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}empty=Empty&return=-3&folder[-3]=yes\';
	}
}

-->
</script>
</head>
<body onkeydown=\\"return moveArrow();\\">

$GLOBALS[header]

".(($showexpiringsub ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
	<tr>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"headerText\\"><span class=\\"normalfonttablehead\\"><b>Your Subscription</b></span></th>
</tr>
<tr style=\\"highRow\\">
	<td class=\\"highBothCell\\"><span class=\\"normalfont\\">Your subscription to the <b>$cursub[name]</b> plan will expire on <b>$cursub[expires]</b>. Click <a href=\\"options.subscription.php{$GLOBALS[session_url]}\\">here</a> to renew.</span></td>
</tr>
</table>
		</td>
	</tr>
</table>
") : (\'\'))."

<form action=\\"".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"form\\">
<input type=\\"hidden\\" name=\\"cmd\\" id=\\"cmd\\" value=\\"dostuff\\" />
<input type=\\"hidden\\" name=\\"folderid\\" value=\\"$folderid\\" />
<input type=\\"hidden\\" name=\\"movetofolderid\\" value=\\"$folderid\\" />
<input type=\\"hidden\\" name=\\"remove\\" value=\\"0\\" />

<table cellpadding=\\"0\\" border=\\"0\\" cellspacing=\\"1\\" width=\\"100%\\" align=\\"center\\">
<tr>
	<td width=\\"100%\\" valign=\\"top\\">
$topbox

".((!empty($draftbits) ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
	<tr>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"headerText\\"><span class=\\"normalfonttablehead\\"><b>You still have unsent drafts!</b></span></span></th>
</tr>
$draftbits
</table>
	</td>
</tr>
</table>

<br />
") : (\'\'))."

".(($hiveuser[preview] == \'top\' or $hiveuser[preview] == \'both\' ) ? ("
$previewtop<br />
") : (\'\'))."

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
	<tr>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerLeftCell\\">&nbsp;</th>
	<th class=\\"headerCell\\" width=\\"15\\" nowrap=\\"nowrap\\"><span class=\\"headerText\\"><a href=\\"".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=$folderid&daysprune=$daysprune&perpage=$perpage&sortorder=$newsortorder&sortby=flagged\\"><img src=\\"{$GLOBALS[skin][images]}/flag.gif\\" alt=\\"Flagged?\\" border=\\"0\\" /></a></span></th>
$colheaders
	<th class=\\"headerRightCell\\"><input name=\\"allbox\\" type=\\"checkbox\\" value=\\"Check All\\" title=\\"Select/Deselect All\\" onClick=\\"checkAll(this.form); changeButtonsStatus(!this.checked); if (this.checked) makeRows(\'first\'); else makeRows(\'second\');\\" /></th>
</tr>
".((empty($mailbits) ) ? ("
	<tr style=\\"normalRow\\">
		<td class=\\"normalBothCell\\" align=\\"center\\" colspan=\\"10\\"><span class=\\"normalfont\\">No messages in this folder!</span></td>
	</tr>
") : ("
	$mailbits
"))."
<tr>
	<td colspan=\\"10\\">
    <table border=\\"0\\" width=\\"100%\\" cellpadding=\\"0\\" cellspacing=\\"0\\">
      <tr>
        <td align=\\"left\\"><span class=\\"smallfonttablehead\\"><b>
		<select name=\\"actions\\" onChange=\\"if (this.options[this.selectedIndex].value != \'nothing\') { if (actionStuff(this.form, this.options[this.selectedIndex].value) == false) this.selectedIndex = 0; } else { this.selectedIndex = 0; }\\">
			<option value=\\"nothing\\" selected=\\"selected\\">Actions to perform...</option>
			<option value=\\"nothing\\">--------------------------</option>
			<option value=\\"move\\">Move messages</option>
			<!--<option value=\\"copy\\">Copy messages</option>-->
			<option value=\\"delete\\">Delete messages</option>
			<option value=\\"nothing\\">--------------------------</option>
			<option value=\\"addbook\\">Add senders to address book</option>
			<option value=\\"blocksender\\">Block senders</option>
			<option value=\\"blocksubject\\">Block subjects</option>
		</select>
		&nbsp;
		<select name=\\"replystuff\\" onChange=\\"changeFolderID(); if (this.options[this.selectedIndex].value != \'nothing\') { if(replyForward(this.form, this.options[this.selectedIndex].value) == false) this.selectedIndex = 0; } else { this.selectedIndex = 0; }\\">
			<option value=\\"nothing\\" selected=\\"selected\\">Reply or forward...</option>
			<option value=\\"nothing\\">--------------------------</option>
".(($folderid == -2 ) ? ("
			<option value=\\"replyaddressee\\">Reply to addressee</option>
") : (\'\'))."
			<option value=\\"reply\\">Reply to sender</option>
			<option value=\\"replyall\\">Reply to all</option>
			<option value=\\"forward\\">Forward message</option>
			<option value=\\"forwardattach\\">Forward as attachment</option>
		</select>
		</b></span></td>
        <td align=\\"right\\"><span class=\\"smallfonttablehead\\"><b>
		<select name=\\"markas\\" onChange=\\"if (this.options[this.selectedIndex].value != \'nothing\') { this.form.cmd.value = \'mark\'; this.form.submit(); } else { this.selectedIndex = 0; }\\">
			<option value=\\"nothing\\" selected=\\"selected\\">Mark selected messages...</option>
			<option value=\\"nothing\\">--------------------------</option>
			<option value=\\"read\\">Mark as read</option>
			<option value=\\"not read\\">Mark as not read</option>
			<option value=\\"flagged\\">Mark as flagged</option>
			<option value=\\"not flagged\\">Mark as not flagged</option>
			<option value=\\"replied\\">Mark as replied</option>
			<option value=\\"not replied\\">Mark as not replied</option>
			<option value=\\"forwarded\\">Mark as forwarded</option>
			<option value=\\"not forwarded\\">Mark as not forwarded</option>
		</select></b></span></td>
      </tr>
    </table></td>
</tr>
</table>

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td><span class=\\"smallfont\\">Showing messages $limitlower to $limitupper of $totalmails<br />$pagenav</span></td>
	<td align=\\"right\\"><span class=\\"smallfont\\">".(($folderid != -3 ) ? ("<b>Note:</b> deleted messages will be moved to the Trash Can.<br />Hold down Shift key when clicking to completely delete the messages.") : ("<input type=\\"button\\" class=\\"bginput\\" name=\\"empty\\" value=\\"Empty Trash\\" onClick=\\"confirmEmpty()\\">"))."</span></td>
</tr>
</table>
		</td>
		".(($hiveuser[cancalendar] and $folderid == -1 and $hiveuser[caloninbox] and (empty($topbox) or $wrap != 0) ) ? ("
		<td valign=\\"top\\">
			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"150\\">
				$calendar
			</table>
		</td>
		") : (\'\'))."
	</tr>
</table>

".(($hiveuser[preview] == \'bottom\' or $hiveuser[preview] == \'both\' ) ? ("
<br />$previewbottom
") : (\'\'))."

	</td>
</tr>
</table>
</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_compose' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Compose Options</title>
$css
<script type="text/javascript" language="JavaScript">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$header

<form action="options.compose.php" method="post">
<input type="hidden" name="cmd" value="update" />

<table cellpadding="4" cellspacing="0" width="100%">
	<tr>
		<td valign="top">
			<table cellpadding="4" cellspacing="0" class="normalTable" width="150">
				<tr class="headerRow">
					<th class="headerBothCell"><span class="normalfonttablehead"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Reply Settings</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Include original message:</b></span>
	<br />
	<span class="smallfont">Enable this to include the original message when forwarding or replying to an email.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="includeorig" value="1" id="includeorigon" $includeorigon /> <label for="includeorigon">Yes</label><br /><input type="radio" name="includeorig" value="0" id="includeorigoff" $includeorigoff /> <label for="includeorigoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Original message prefix:</b></span>
	<br />
	<span class="smallfont">When replying to a message, if you have the option above enabled,<br />each line of the original message will be prefixed with this string:</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="replychar" value="$hiveuser[replychar]" size="15" maxlength="15" /></td>
</tr>
<!-- +++++++++++++++++++++++++++++++++++++ -->
<%if $hiveuser[\'cansendhtml\'] %>
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>WYSIWYG Editor Settings</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Enable advanced WYSIWYG editor:</b></span>
	<br />
	<span class="smallfont">Turn this on to use the \'What You See Is What You Get\' editor by default.<br />This editor only works under Windows with Internet Explorer 5.0+.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="wysiwyg" value="1" id="wysiwygon" $wysiwygon /> <label for="wysiwygon">Yes</label><br /><input type="radio" name="wysiwyg" value="0" id="wysiwygoff" $wysiwygoff /> <label for="wysiwygoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Default font:</b></span>
	<br />
	<span class="smallfont">This is the font outgoing messages will be sent with, unless you change it.</span></td>
	<td class="{classname}RightCell" width="40%">
		<table>
			<tr>
				<td>Font:</td>
				<td>Size:</td>
				<td>Style:</td>
				<td>Color:</td>
			</tr>
			<tr>
				<td>
					<select name="fontname">
						<option value="Arial" $fontnamesel[arial]>Arial</option>
						<option value="Arial Black" $fontnamesel[arialblack]>Arial Black</option>
						<option value="Arial Narrow" $fontnamesel[arialnarrow]>Arial Narrow</option>
						<option value="Comic Sans MS" $fontnamesel[comicsansms]>Comic Sans MS</option>
						<option value="Courier New" $fontnamesel[couriernew]>Courier New</option>
						<option value="System" $fontnamesel[system]>System</option>
						<option value="Tahoma" $fontnamesel[tahoma]>Tahoma</option>
						<option value="Times New Roman" $fontnamesel[timesnewroman]>Times New Roman</option>
						<option value="Verdana" $fontnamesel[verdana]>Verdana</option>
						<option value="Wingdings" $fontnamesel[wingdings]>Wingdings</option>
					</select>
				</td>
				<td>
					<select name="fontsize">
						<option value="8" $fontsizesel[8]>8</option>
						<option value="9" $fontsizesel[9]>9</option>
						<option value="10" $fontsizesel[10]>10</option>
						<option value="11" $fontsizesel[11]>11</option>
						<option value="12" $fontsizesel[12]>12</option>
						<option value="14" $fontsizesel[14]>14</option>
						<option value="16" $fontsizesel[16]>16</option>
						<option value="18" $fontsizesel[18]>18</option>
						<option value="20" $fontsizesel[20]>20</option>
						<option value="22" $fontsizesel[22]>22</option>
						<option value="24" $fontsizesel[24]>24</option>
						<option value="26" $fontsizesel[26]>26</option>
						<option value="28" $fontsizesel[28]>28</option>
						<option value="36" $fontsizesel[36]>36</option>
					</select>
				</td>
				<td>
					<select name="fontstyle">
						<option value="Regular" $fontstylesel[regular]>Regular</option>
						<option value="Italic" $fontstylesel[italic]>Italic</option>
						<option value="Bold" $fontstylesel[bold]>Bold</option>
						<option value="Bold Italic" $fontstylesel[bolditalic]>Bold Italic</option>
					</select>
				</td>
				<td>
					<select name="fontcolor">
						<option value="Black" style="color: Black;" $fontcolorsel[black]>Black</option>
						<option value="Maroon" style="color: Maroon;" $fontcolorsel[maroon]>Maroon</option>
						<option value="Green" style="color: Green;" $fontcolorsel[green]>Green</option>
						<option value="Olive" style="color: Olive;" $fontcolorsel[olive]>Olive</option>
						<option value="Navy" style="color: Navy;" $fontcolorsel[navy]>Navy</option>
						<option value="Purple" style="color: Purple;" $fontcolorsel[purple]>Purple</option>
						<option value="Teal" style="color: Teal;" $fontcolorsel[teal]>Teal</option>
						<option value="Gray" style="color: Gray;" $fontcolorsel[gray]>Gray</option>
						<option value="Silver" style="color: Silver;" $fontcolorsel[silver]>Silver</option>
						<option value="Red" style="color: Red;" $fontcolorsel[red]>Red</option>
						<option value="Lime" style="color: Lime;" $fontcolorsel[lime]>Lime</option>
						<option value="Yellow" style="color: Yellow;" $fontcolorsel[yellow]>Yellow</option>
						<option value="Blue" style="color: Blue;" $fontcolorsel[blue]>Blue</option>
						<option value="Fuchsia" style="color: Fuchsia;" $fontcolorsel[fuchsia]>Fuchsia</option>
						<option value="Aqua" style="color: Aqua;" $fontcolorsel[aqua]>Aqua</option>
						<option value="White" style="color: Black;" $fontcolorsel[white]>White</option>
					</select>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Default background color:</b></span>
	<br />
	<span class="smallfont">This is the background color outgoing messages will have, unless you change it.</span></td>
	<td class="{classname}RightCell" width="40%">
		<select name="bgcolor">
			<option value="None" style="color: Black;" $bgcolorsel[none]>None</option>
			<option value="White" style="color: Black;" $bgcolorsel[white]>White</option>
			<option value="Aqua" style="color: Aqua;" $bgcolorsel[aqua]>Aqua</option>
			<option value="Fuchsia" style="color: Fuchsia;" $bgcolorsel[fuchsia]>Fuchsia</option>
			<option value="Blue" style="color: Blue;" $bgcolorsel[blue]>Blue</option>
			<option value="Yellow" style="color: Yellow;" $bgcolorsel[yellow]>Yellow</option>
			<option value="Lime" style="color: Lime;" $bgcolorsel[lime]>Lime</option>
			<option value="Red" style="color: Red;" $bgcolorsel[red]>Red</option>
			<option value="Silver" style="color: Silver;" $bgcolorsel[silver]>Silver</option>
			<option value="Gray" style="color: Gray;" $bgcolorsel[gray]>Gray</option>
			<option value="Teal" style="color: Teal;" $bgcolorsel[teal]>Teal</option>
			<option value="Purple" style="color: Purple;" $bgcolorsel[purple]>Purple</option>
			<option value="Navy" style="color: Navy;" $bgcolorsel[navy]>Navy</option>
			<option value="Olive" style="color: Olive;" $bgcolorsel[olive]>Olive</option>
			<option value="Green" style="color: Green;" $bgcolorsel[green]>Green</option>
			<option value="Maroon" style="color: Maroon;" $bgcolorsel[maroon]>Maroon</option>
			<option value="Black" style="color: Black;" $bgcolorsel[black]>Black</option>
		</select>
	</td>
</tr>
<!-- +++++++++++++++++++++++++++++++++++++ --><%endif%>
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Miscellaneous Settings</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Default account to use:</b></span>
	<br />
	<span class="smallfont">Choose the default account (or alias) to use when writing new messages.</span></td>
	<td class="{classname}RightCell" width="40%">
		<select name="defcompose">
			<option value="username" $defselected>$hiveuser[realname] &lt;$hiveuser[username]$hiveuser[domain]&gt;</option>
			<%if !empty($aliasoptions) %>
			<optgroup label="Aliases">
				$aliasoptions
			</optgroup>
			<%endif%>
			<%if !empty($popoptions) %>
			<optgroup label="POP3 Accounts">
				$popoptions
			</optgroup>
			<%endif%>
		</select>
	</td>
</tr>
<%if $hiveuser[canspell] %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Automatically spell check messages:</b></span>
	<br />
	<span class="smallfont">If enabled, all messages will be checked for spelling mistakes before they are sent.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="autospell" value="1" id="autospellon" $autospellon /> <label for="autospellon">Yes</label><br /><input type="radio" name="autospell" value="0" id="autospelloff" $autospelloff /><label for="autospelloff">No</label></span></td>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Default Reply-To address:</b></span>
	<br />
	<span class="smallfont">The default address the Reply-To field contains.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="replyto" value="$hiveuser[replyto]" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Display Reply-To field when composing:</b></span>
	<br />
	<span class="smallfont">If you\'d like to change the Reply-To address for individual messages, turn this on.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="composereplyto" value="1" id="composereplytoon" $composereplytoon /> <label for="composereplytoon">Yes</label><br /><input type="radio" name="composereplyto" value="0" id="composereplytooff" $composereplytooff /> <label for="composereplytooff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Alias overrides Reply-To:</b></span>
	<br />
	<span class="smallfont">When composing an email, if you select an alternate alias to send email from, turning this option on will override the "Default Reply-To address" specified above, and instead use the selected account as the Reply-To address.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="overridereplyto" value="1" id="overridereplytoon" $overridereplytoon /> <label for="overridereplytoon">Yes</label><br /><input type="radio" name="overridereplyto" value="0" id="overridereplytooff" $overridereplytooff /> <label for="overridereplytooff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Request read receipt:</b></span>
	<br />
	<span class="smallfont">Always request a read receipt for all outgoing messages.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="requestread" value="1" id="requestreadon" $requestreadon /> <label for="requestreadon">Yes</label><br /><input type="radio" name="requestread" value="0" id="requestreadoff" $requestreadoff /> <label for="requestreadoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Save copy of sent messages:</b></span>
	<br />
	<span class="smallfont">Keep a copy of messages you send in the Sent Items folder.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="savecopy" value="1" id="savecopyon" $savecopyon /> <label for="savecopyon">Yes</label><br /><input type="radio" name="savecopy" value="0" id="savecopyoff" $savecopyoff /> <label for="savecopyoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Folder to return to:</b></span>
	<br />
	<span class="smallfont">Choose if you\'d like to be taken to your Inbox or Sent Items folders after sending a message.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="returnsent" value="0" id="returnsentoff" $returnsentoff /> <label for="returnsentoff">Inbox</label><br /><input type="radio" name="returnsent" value="1" id="returnsenton" $returnsenton /> <label for="returnsenton">Sent Items</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Add recipients to address book:</b></span>
	<br />
	<span class="smallfont">Automatically add recipients of outgoing messages to your address book.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="addrecips" value="1" id="addrecipson" $addrecipson /> <label for="addrecipson">Yes</label><br /><input type="radio" name="addrecips" value="0" id="addrecipsoff" $addrecipsoff /><label for="addrecipsoff">No</label></span></td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="submit" value="Save Settings" />
		<input type="reset" class="bginput" name="reset" value="Reset Fields" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Compose Options</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$GLOBALS[header]

<form action=\\"options.compose.php{$GLOBALS[session_url]}\\" method=\\"post\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" width=\\"100%\\">
	<tr>
		<td valign=\\"top\\">
			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"150\\">
				<tr class=\\"headerRow\\">
					<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Reply Settings</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Include original message:</b></span>
	<br />
	<span class=\\"smallfont\\">Enable this to include the original message when forwarding or replying to an email.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"includeorig\\" value=\\"1\\" id=\\"includeorigon\\" $includeorigon /> <label for=\\"includeorigon\\">Yes</label><br /><input type=\\"radio\\" name=\\"includeorig\\" value=\\"0\\" id=\\"includeorigoff\\" $includeorigoff /> <label for=\\"includeorigoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Original message prefix:</b></span>
	<br />
	<span class=\\"smallfont\\">When replying to a message, if you have the option above enabled,<br />each line of the original message will be prefixed with this string:</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"replychar\\" value=\\"$hiveuser[replychar]\\" size=\\"15\\" maxlength=\\"15\\" /></td>
</tr>
<!-- +++++++++++++++++++++++++++++++++++++ -->
".(($hiveuser[\'cansendhtml\'] ) ? ("
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>WYSIWYG Editor Settings</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Enable advanced WYSIWYG editor:</b></span>
	<br />
	<span class=\\"smallfont\\">Turn this on to use the \'What You See Is What You Get\' editor by default.<br />This editor only works under Windows with Internet Explorer 5.0+.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"wysiwyg\\" value=\\"1\\" id=\\"wysiwygon\\" $wysiwygon /> <label for=\\"wysiwygon\\">Yes</label><br /><input type=\\"radio\\" name=\\"wysiwyg\\" value=\\"0\\" id=\\"wysiwygoff\\" $wysiwygoff /> <label for=\\"wysiwygoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Default font:</b></span>
	<br />
	<span class=\\"smallfont\\">This is the font outgoing messages will be sent with, unless you change it.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<table>
			<tr>
				<td>Font:</td>
				<td>Size:</td>
				<td>Style:</td>
				<td>Color:</td>
			</tr>
			<tr>
				<td>
					<select name=\\"fontname\\">
						<option value=\\"Arial\\" $fontnamesel[arial]>Arial</option>
						<option value=\\"Arial Black\\" $fontnamesel[arialblack]>Arial Black</option>
						<option value=\\"Arial Narrow\\" $fontnamesel[arialnarrow]>Arial Narrow</option>
						<option value=\\"Comic Sans MS\\" $fontnamesel[comicsansms]>Comic Sans MS</option>
						<option value=\\"Courier New\\" $fontnamesel[couriernew]>Courier New</option>
						<option value=\\"System\\" $fontnamesel[system]>System</option>
						<option value=\\"Tahoma\\" $fontnamesel[tahoma]>Tahoma</option>
						<option value=\\"Times New Roman\\" $fontnamesel[timesnewroman]>Times New Roman</option>
						<option value=\\"Verdana\\" $fontnamesel[verdana]>Verdana</option>
						<option value=\\"Wingdings\\" $fontnamesel[wingdings]>Wingdings</option>
					</select>
				</td>
				<td>
					<select name=\\"fontsize\\">
						<option value=\\"8\\" $fontsizesel[8]>8</option>
						<option value=\\"9\\" $fontsizesel[9]>9</option>
						<option value=\\"10\\" $fontsizesel[10]>10</option>
						<option value=\\"11\\" $fontsizesel[11]>11</option>
						<option value=\\"12\\" $fontsizesel[12]>12</option>
						<option value=\\"14\\" $fontsizesel[14]>14</option>
						<option value=\\"16\\" $fontsizesel[16]>16</option>
						<option value=\\"18\\" $fontsizesel[18]>18</option>
						<option value=\\"20\\" $fontsizesel[20]>20</option>
						<option value=\\"22\\" $fontsizesel[22]>22</option>
						<option value=\\"24\\" $fontsizesel[24]>24</option>
						<option value=\\"26\\" $fontsizesel[26]>26</option>
						<option value=\\"28\\" $fontsizesel[28]>28</option>
						<option value=\\"36\\" $fontsizesel[36]>36</option>
					</select>
				</td>
				<td>
					<select name=\\"fontstyle\\">
						<option value=\\"Regular\\" $fontstylesel[regular]>Regular</option>
						<option value=\\"Italic\\" $fontstylesel[italic]>Italic</option>
						<option value=\\"Bold\\" $fontstylesel[bold]>Bold</option>
						<option value=\\"Bold Italic\\" $fontstylesel[bolditalic]>Bold Italic</option>
					</select>
				</td>
				<td>
					<select name=\\"fontcolor\\">
						<option value=\\"Black\\" style=\\"color: Black;\\" $fontcolorsel[black]>Black</option>
						<option value=\\"Maroon\\" style=\\"color: Maroon;\\" $fontcolorsel[maroon]>Maroon</option>
						<option value=\\"Green\\" style=\\"color: Green;\\" $fontcolorsel[green]>Green</option>
						<option value=\\"Olive\\" style=\\"color: Olive;\\" $fontcolorsel[olive]>Olive</option>
						<option value=\\"Navy\\" style=\\"color: Navy;\\" $fontcolorsel[navy]>Navy</option>
						<option value=\\"Purple\\" style=\\"color: Purple;\\" $fontcolorsel[purple]>Purple</option>
						<option value=\\"Teal\\" style=\\"color: Teal;\\" $fontcolorsel[teal]>Teal</option>
						<option value=\\"Gray\\" style=\\"color: Gray;\\" $fontcolorsel[gray]>Gray</option>
						<option value=\\"Silver\\" style=\\"color: Silver;\\" $fontcolorsel[silver]>Silver</option>
						<option value=\\"Red\\" style=\\"color: Red;\\" $fontcolorsel[red]>Red</option>
						<option value=\\"Lime\\" style=\\"color: Lime;\\" $fontcolorsel[lime]>Lime</option>
						<option value=\\"Yellow\\" style=\\"color: Yellow;\\" $fontcolorsel[yellow]>Yellow</option>
						<option value=\\"Blue\\" style=\\"color: Blue;\\" $fontcolorsel[blue]>Blue</option>
						<option value=\\"Fuchsia\\" style=\\"color: Fuchsia;\\" $fontcolorsel[fuchsia]>Fuchsia</option>
						<option value=\\"Aqua\\" style=\\"color: Aqua;\\" $fontcolorsel[aqua]>Aqua</option>
						<option value=\\"White\\" style=\\"color: Black;\\" $fontcolorsel[white]>White</option>
					</select>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Default background color:</b></span>
	<br />
	<span class=\\"smallfont\\">This is the background color outgoing messages will have, unless you change it.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<select name=\\"bgcolor\\">
			<option value=\\"None\\" style=\\"color: Black;\\" $bgcolorsel[none]>None</option>
			<option value=\\"White\\" style=\\"color: Black;\\" $bgcolorsel[white]>White</option>
			<option value=\\"Aqua\\" style=\\"color: Aqua;\\" $bgcolorsel[aqua]>Aqua</option>
			<option value=\\"Fuchsia\\" style=\\"color: Fuchsia;\\" $bgcolorsel[fuchsia]>Fuchsia</option>
			<option value=\\"Blue\\" style=\\"color: Blue;\\" $bgcolorsel[blue]>Blue</option>
			<option value=\\"Yellow\\" style=\\"color: Yellow;\\" $bgcolorsel[yellow]>Yellow</option>
			<option value=\\"Lime\\" style=\\"color: Lime;\\" $bgcolorsel[lime]>Lime</option>
			<option value=\\"Red\\" style=\\"color: Red;\\" $bgcolorsel[red]>Red</option>
			<option value=\\"Silver\\" style=\\"color: Silver;\\" $bgcolorsel[silver]>Silver</option>
			<option value=\\"Gray\\" style=\\"color: Gray;\\" $bgcolorsel[gray]>Gray</option>
			<option value=\\"Teal\\" style=\\"color: Teal;\\" $bgcolorsel[teal]>Teal</option>
			<option value=\\"Purple\\" style=\\"color: Purple;\\" $bgcolorsel[purple]>Purple</option>
			<option value=\\"Navy\\" style=\\"color: Navy;\\" $bgcolorsel[navy]>Navy</option>
			<option value=\\"Olive\\" style=\\"color: Olive;\\" $bgcolorsel[olive]>Olive</option>
			<option value=\\"Green\\" style=\\"color: Green;\\" $bgcolorsel[green]>Green</option>
			<option value=\\"Maroon\\" style=\\"color: Maroon;\\" $bgcolorsel[maroon]>Maroon</option>
			<option value=\\"Black\\" style=\\"color: Black;\\" $bgcolorsel[black]>Black</option>
		</select>
	</td>
</tr>
<!-- +++++++++++++++++++++++++++++++++++++ -->") : (\'\'))."
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Miscellaneous Settings</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Default account to use:</b></span>
	<br />
	<span class=\\"smallfont\\">Choose the default account (or alias) to use when writing new messages.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<select name=\\"defcompose\\">
			<option value=\\"username\\" $defselected>$hiveuser[realname] &lt;$hiveuser[username]$hiveuser[domain]&gt;</option>
			".((!empty($aliasoptions) ) ? ("
			<optgroup label=\\"Aliases\\">
				$aliasoptions
			</optgroup>
			") : (\'\'))."
			".((!empty($popoptions) ) ? ("
			<optgroup label=\\"POP3 Accounts\\">
				$popoptions
			</optgroup>
			") : (\'\'))."
		</select>
	</td>
</tr>
".(($hiveuser[canspell] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Automatically spell check messages:</b></span>
	<br />
	<span class=\\"smallfont\\">If enabled, all messages will be checked for spelling mistakes before they are sent.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"autospell\\" value=\\"1\\" id=\\"autospellon\\" $autospellon /> <label for=\\"autospellon\\">Yes</label><br /><input type=\\"radio\\" name=\\"autospell\\" value=\\"0\\" id=\\"autospelloff\\" $autospelloff /><label for=\\"autospelloff\\">No</label></span></td>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Default Reply-To address:</b></span>
	<br />
	<span class=\\"smallfont\\">The default address the Reply-To field contains.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"replyto\\" value=\\"$hiveuser[replyto]\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Display Reply-To field when composing:</b></span>
	<br />
	<span class=\\"smallfont\\">If you\'d like to change the Reply-To address for individual messages, turn this on.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"composereplyto\\" value=\\"1\\" id=\\"composereplytoon\\" $composereplytoon /> <label for=\\"composereplytoon\\">Yes</label><br /><input type=\\"radio\\" name=\\"composereplyto\\" value=\\"0\\" id=\\"composereplytooff\\" $composereplytooff /> <label for=\\"composereplytooff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Alias overrides Reply-To:</b></span>
	<br />
	<span class=\\"smallfont\\">When composing an email, if you select an alternate alias to send email from, turning this option on will override the \\"Default Reply-To address\\" specified above, and instead use the selected account as the Reply-To address.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"overridereplyto\\" value=\\"1\\" id=\\"overridereplytoon\\" $overridereplytoon /> <label for=\\"overridereplytoon\\">Yes</label><br /><input type=\\"radio\\" name=\\"overridereplyto\\" value=\\"0\\" id=\\"overridereplytooff\\" $overridereplytooff /> <label for=\\"overridereplytooff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Request read receipt:</b></span>
	<br />
	<span class=\\"smallfont\\">Always request a read receipt for all outgoing messages.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"requestread\\" value=\\"1\\" id=\\"requestreadon\\" $requestreadon /> <label for=\\"requestreadon\\">Yes</label><br /><input type=\\"radio\\" name=\\"requestread\\" value=\\"0\\" id=\\"requestreadoff\\" $requestreadoff /> <label for=\\"requestreadoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Save copy of sent messages:</b></span>
	<br />
	<span class=\\"smallfont\\">Keep a copy of messages you send in the Sent Items folder.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"savecopy\\" value=\\"1\\" id=\\"savecopyon\\" $savecopyon /> <label for=\\"savecopyon\\">Yes</label><br /><input type=\\"radio\\" name=\\"savecopy\\" value=\\"0\\" id=\\"savecopyoff\\" $savecopyoff /> <label for=\\"savecopyoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Folder to return to:</b></span>
	<br />
	<span class=\\"smallfont\\">Choose if you\'d like to be taken to your Inbox or Sent Items folders after sending a message.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"returnsent\\" value=\\"0\\" id=\\"returnsentoff\\" $returnsentoff /> <label for=\\"returnsentoff\\">Inbox</label><br /><input type=\\"radio\\" name=\\"returnsent\\" value=\\"1\\" id=\\"returnsenton\\" $returnsenton /> <label for=\\"returnsenton\\">Sent Items</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Add recipients to address book:</b></span>
	<br />
	<span class=\\"smallfont\\">Automatically add recipients of outgoing messages to your address book.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"addrecips\\" value=\\"1\\" id=\\"addrecipson\\" $addrecipson /> <label for=\\"addrecipson\\">Yes</label><br /><input type=\\"radio\\" name=\\"addrecips\\" value=\\"0\\" id=\\"addrecipsoff\\" $addrecipsoff /><label for=\\"addrecipsoff\\">No</label></span></td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Save Settings\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_general' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: General Options</title>
$css
<script type="text/javascript" language="JavaScript">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$header

<form action="options.general.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="cmd" value="update" />

<table cellpadding="4" cellspacing="0" width="100%">
	<tr>
		<td valign="top">
			<table cellpadding="4" cellspacing="0" class="normalTable" width="150">
				<tr class="headerRow">
					<th class="headerBothCell"><span class="normalfonttablehead"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>General Options</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Use cookies to track information:</b></span>
	<br />
	<span class="smallfont">If your browser is incapable of receiving and storing cookies from our system, please disable this option so you can still use the service.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="nocookies" value="0" id="nocookiesoff" $nocookiesoff /><label for="nocookiesoff">Yes<label><br /><input type="radio" name="nocookies" value="1" id="nocookieson" $nocookieson /><label for="nocookieson">No<label></span></td>
	<!-- NOTE: Yes, this may look wrong but it is correct. DO NOT ALTER FORMAT -->
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Email domain name:</b></span>
	<br />
	<span class="smallfont">Choose the domain name you would like to have associated with this account. All outgoing messages will be sent with the chosen name.</span></td>
	<td class="{classname}RightCell" width="40%"><select name="domain">
		$domainname_options
	</select></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Skin:</b></span>
	<br />
	<span class="smallfont">You can choose from several skins that change the look of this program.</span></td>
	<td class="{classname}RightCell" width="40%"><select name="skinid">
		$skinoptions
	</select></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show system notices as popups:</b></span>
	<br />
	<span class="smallfont">If this is enabled system notices will be displayed as popups, otherwise they will be shown normally within the page.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="popupnotices" value="1" id="popupnoticeson" $popupnoticeson /><label for="popupnoticeson">Yes<label><br /><input type="radio" name="popupnotices" value="0" id="popupnoticesoff" $popupnoticesoff /><label for="popupnoticesoff">No<label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Empty the trash can automatically:</b></span>
	<br />
	<span class="smallfont">If you want the system to automatically delete all messages<br />from your trash can, please select the appropriate option.<br />If this is turned on, messages in your trash can don\'t count<br />towards your account storage limit.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="emptybin" value="-2" id="emptybinonexit" $emptybinonexit /> <label for="emptybinonexit">Empty folder on exit</label><br /><input type="radio" name="emptybin" value="1" id="emptybinevery" $emptybinevery /> Empty folder every &nbsp;<input type="text" class="bginput" name="binevery" value="$binevery" size="3" maxlength="3" onClick="document.getElementById(\'emptybinevery\').checked = true;" />&nbsp; days<br /><input type="radio" name="emptybin" value="-1" id="emptybinno" $emptybinno /> <label for="emptybinno">Never empty folder</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Play sound when new messages arrive:</b></span>
	<br />
	<span class="smallfont">Play the "You\'ve got mail" sound whenever new messages arrive in your mail box.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="playsound" value="1" id="playsoundon" $playsoundon /><label for="playsoundon">Yes<label><br /><input type="radio" name="playsound" value="0" id="playsoundoff" $playsoundoff /><label for="playsoundoff">No<label></span></td>
</tr>
<%if $hiveuser[cansound] %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Sound to play:</b></span>
	<br />
	<span class="smallfont">This is the sound you will hear if the option above is enabled.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont">
		<select name="soundid">
			<%if $havecustom %><option value="$cursound[soundid]">$cursound[filename] (Personal sound)</option><%endif%>
			$soundoptions
		</select> <input type="button" value="Preview" onClick="window.open(\'user.sound.php?soundid=\'+this.form.soundid.options[this.form.soundid.selectedIndex].value);" class="bginput" /><br /><br />
		<label for="newsound">Or upload your own file:<label><br /><input type="file" class="bginput" name="newsound" onClick="this.form.soundoptionnew.checked = true;" /><input type="hidden" name="MAX_FILE_SIZE" value="$maxsoundfile" />
	</span></td>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Email notification:</b></span>
	<br />
	<span class="smallfont">Notification e-mails will be sent to this address.</td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="notifyemail" value="$hiveuser[notifyemail]" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Notify of all messages:</b></span>
	<br />
	<span class="smallfont">If set to yes, notification will be sent of all messages. Otherwise, notification will only be sent for messages that match a <a href="rules.list.php">rule</a> which is set to notify you.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="notifyall" value="1" id="notifyallon" $notifyallon /><label for="notifyallon">Yes<label><br /><input type="radio" name="notifyall" value="0" id="notifyalloff" $notifyalloff /><label for="notifyalloff">No<label></span></td>
</tr>
<%if $hiveuser[canforward] %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Automatically forward messages:</b></span>
	<br />
	<span class="smallfont">Emails that you receive will automatically be forwarded to this address.<br />Set this to nothing to disable the feature.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="forward" value="$hiveuser[forward]" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Keep copy of messages which are automatically forwarded:</b></span>
	<br />
	<span class="smallfont">If you decide to automatically forward messages to the address speicified above, would you like to still keep them in your inbox?</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="deleteforwards" value="0" id="deleteforwardsoff" $deleteforwardsoff /><label for="deleteforwardsoff">Yes<label><br /><input type="radio" name="deleteforwards" value="1" id="deleteforwardson" $deleteforwardson /><label for="deleteforwardson">No<label></span></td>
	<!-- NOTE: Yes, this may look wrong but it is correct. DO NOT ALTER FORMAT -->
</tr>
<%endif%>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="submit" value="Save Settings" />
		<input type="reset" class="bginput" name="reset" value="Reset Fields" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: General Options</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$GLOBALS[header]

<form action=\\"options.general.php{$GLOBALS[session_url]}\\" method=\\"post\\" enctype=\\"multipart/form-data\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" width=\\"100%\\">
	<tr>
		<td valign=\\"top\\">
			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"150\\">
				<tr class=\\"headerRow\\">
					<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>General Options</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Use cookies to track information:</b></span>
	<br />
	<span class=\\"smallfont\\">If your browser is incapable of receiving and storing cookies from our system, please disable this option so you can still use the service.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"nocookies\\" value=\\"0\\" id=\\"nocookiesoff\\" $nocookiesoff /><label for=\\"nocookiesoff\\">Yes<label><br /><input type=\\"radio\\" name=\\"nocookies\\" value=\\"1\\" id=\\"nocookieson\\" $nocookieson /><label for=\\"nocookieson\\">No<label></span></td>
	<!-- NOTE: Yes, this may look wrong but it is correct. DO NOT ALTER FORMAT -->
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Email domain name:</b></span>
	<br />
	<span class=\\"smallfont\\">Choose the domain name you would like to have associated with this account. All outgoing messages will be sent with the chosen name.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><select name=\\"domain\\">
		$domainname_options
	</select></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Skin:</b></span>
	<br />
	<span class=\\"smallfont\\">You can choose from several skins that change the look of this program.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><select name=\\"skinid\\">
		$skinoptions
	</select></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show system notices as popups:</b></span>
	<br />
	<span class=\\"smallfont\\">If this is enabled system notices will be displayed as popups, otherwise they will be shown normally within the page.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"popupnotices\\" value=\\"1\\" id=\\"popupnoticeson\\" $popupnoticeson /><label for=\\"popupnoticeson\\">Yes<label><br /><input type=\\"radio\\" name=\\"popupnotices\\" value=\\"0\\" id=\\"popupnoticesoff\\" $popupnoticesoff /><label for=\\"popupnoticesoff\\">No<label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Empty the trash can automatically:</b></span>
	<br />
	<span class=\\"smallfont\\">If you want the system to automatically delete all messages<br />from your trash can, please select the appropriate option.<br />If this is turned on, messages in your trash can don\'t count<br />towards your account storage limit.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"emptybin\\" value=\\"-2\\" id=\\"emptybinonexit\\" $emptybinonexit /> <label for=\\"emptybinonexit\\">Empty folder on exit</label><br /><input type=\\"radio\\" name=\\"emptybin\\" value=\\"1\\" id=\\"emptybinevery\\" $emptybinevery /> Empty folder every &nbsp;<input type=\\"text\\" class=\\"bginput\\" name=\\"binevery\\" value=\\"$binevery\\" size=\\"3\\" maxlength=\\"3\\" onClick=\\"document.getElementById(\'emptybinevery\').checked = true;\\" />&nbsp; days<br /><input type=\\"radio\\" name=\\"emptybin\\" value=\\"-1\\" id=\\"emptybinno\\" $emptybinno /> <label for=\\"emptybinno\\">Never empty folder</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Play sound when new messages arrive:</b></span>
	<br />
	<span class=\\"smallfont\\">Play the \\"You\'ve got mail\\" sound whenever new messages arrive in your mail box.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"playsound\\" value=\\"1\\" id=\\"playsoundon\\" $playsoundon /><label for=\\"playsoundon\\">Yes<label><br /><input type=\\"radio\\" name=\\"playsound\\" value=\\"0\\" id=\\"playsoundoff\\" $playsoundoff /><label for=\\"playsoundoff\\">No<label></span></td>
</tr>
".(($hiveuser[cansound] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Sound to play:</b></span>
	<br />
	<span class=\\"smallfont\\">This is the sound you will hear if the option above is enabled.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\">
		<select name=\\"soundid\\">
			".(($havecustom ) ? ("<option value=\\"$cursound[soundid]\\">$cursound[filename] (Personal sound)</option>") : (\'\'))."
			$soundoptions
		</select> <input type=\\"button\\" value=\\"Preview\\" onClick=\\"window.open(\'user.sound.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}soundid=\'+this.form.soundid.options[this.form.soundid.selectedIndex].value);\\" class=\\"bginput\\" /><br /><br />
		<label for=\\"newsound\\">Or upload your own file:<label><br /><input type=\\"file\\" class=\\"bginput\\" name=\\"newsound\\" onClick=\\"this.form.soundoptionnew.checked = true;\\" /><input type=\\"hidden\\" name=\\"MAX_FILE_SIZE\\" value=\\"$maxsoundfile\\" />
	</span></td>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Email notification:</b></span>
	<br />
	<span class=\\"smallfont\\">Notification e-mails will be sent to this address.</td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"notifyemail\\" value=\\"$hiveuser[notifyemail]\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Notify of all messages:</b></span>
	<br />
	<span class=\\"smallfont\\">If set to yes, notification will be sent of all messages. Otherwise, notification will only be sent for messages that match a <a href=\\"rules.list.php{$GLOBALS[session_url]}\\">rule</a> which is set to notify you.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"notifyall\\" value=\\"1\\" id=\\"notifyallon\\" $notifyallon /><label for=\\"notifyallon\\">Yes<label><br /><input type=\\"radio\\" name=\\"notifyall\\" value=\\"0\\" id=\\"notifyalloff\\" $notifyalloff /><label for=\\"notifyalloff\\">No<label></span></td>
</tr>
".(($hiveuser[canforward] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Automatically forward messages:</b></span>
	<br />
	<span class=\\"smallfont\\">Emails that you receive will automatically be forwarded to this address.<br />Set this to nothing to disable the feature.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"forward\\" value=\\"$hiveuser[forward]\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Keep copy of messages which are automatically forwarded:</b></span>
	<br />
	<span class=\\"smallfont\\">If you decide to automatically forward messages to the address speicified above, would you like to still keep them in your inbox?</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"deleteforwards\\" value=\\"0\\" id=\\"deleteforwardsoff\\" $deleteforwardsoff /><label for=\\"deleteforwardsoff\\">Yes<label><br /><input type=\\"radio\\" name=\\"deleteforwards\\" value=\\"1\\" id=\\"deleteforwardson\\" $deleteforwardson /><label for=\\"deleteforwardson\\">No<label></span></td>
	<!-- NOTE: Yes, this may look wrong but it is correct. DO NOT ALTER FORMAT -->
</tr>
") : (\'\'))."
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Save Settings\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_menu' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Preferences</title>
$css
</head>
<body>
$header

<table align="left">
    <tr>
        <td colspan="2" style="padding: 0px 12px 18px 12px;"><table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
            <tr class="headerRow">
                <th class="headerBothCell"><span class="normalfonttablehead">Preferences</span></th>
            </tr>
        </table></td>
    </tr>
    $menus
    </tr>
</table>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Preferences</title>
$GLOBALS[css]
</head>
<body>
$GLOBALS[header]

<table align=\\"left\\">
    <tr>
        <td colspan=\\"2\\" style=\\"padding: 0px 12px 18px 12px;\\"><table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
            <tr class=\\"headerRow\\">
                <th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\">Preferences</span></th>
            </tr>
        </table></td>
    </tr>
    $menus
    </tr>
</table>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_menu_aliases' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.aliases.php"><span class="normalfonttablehead"><b>Email Aliases</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Define and configure your account aliases.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.aliases.php"><%endif%>Email Aliases<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.aliases.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Email Aliases</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Define and configure your account aliases.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.aliases.php{$GLOBALS[session_url]}\\">"))."Email Aliases".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_autoresponses' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.autoresponders.php"><span class="normalfonttablehead"><b>Auto-Responder</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Options about your automatic responder and responses editor.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.autoresponders.php"><%endif%>Auto-Responder<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.autoresponders.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Auto-Responder</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Options about your automatic responder and responses editor.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.autoresponders.php{$GLOBALS[session_url]}\\">"))."Auto-Responder".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_calendar' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="calendar.options.php"><span class="normalfonttablehead"><b>Calendar Options</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Settings about your calendar, different display options, and more.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="calendar.options.php"><%endif%>Calendar Options<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"calendar.options.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Calendar Options</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Settings about your calendar, different display options, and more.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"calendar.options.php{$GLOBALS[session_url]}\\">"))."Calendar Options".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_compose' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.compose.php"><span class="normalfonttablehead"><b>Compose Options</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Settings that pertain to composing messages, such as using the WYSIWYG editor, including original message, and more.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.compose.php"><%endif%>Compose Options<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.compose.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Compose Options</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Settings that pertain to composing messages, such as using the WYSIWYG editor, including original message, and more.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.compose.php{$GLOBALS[session_url]}\\">"))."Compose Options".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_folders' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="folders.list.php"><span class="normalfonttablehead"><b>Folders Management</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Create, rename, delete or empty your mail folders.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="folders.list.php"><%endif%>Folders Management<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"folders.list.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Folders Management</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Create, rename, delete or empty your mail folders.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"folders.list.php{$GLOBALS[session_url]}\\">"))."Folders Management".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_folderview' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.folderview.php"><span class="normalfonttablehead"><b>Folder View Options</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Settings that pertain to folder viewing, such as using the preview pane, selecting columns to show and more.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.folderview.php"><%endif%>Folder View Options<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.folderview.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Folder View Options</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Settings that pertain to folder viewing, such as using the preview pane, selecting columns to show and more.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.folderview.php{$GLOBALS[session_url]}\\">"))."Folder View Options".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_general' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.general.php"><span class="normalfonttablehead"><b>General Options</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Miscellaneous settings, such as new mail sound, changing skins, and more.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.general.php"><%endif%>General Options<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.general.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>General Options</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Miscellaneous settings, such as new mail sound, changing skins, and more.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.general.php{$GLOBALS[session_url]}\\">"))."General Options".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_password' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.password.php"><span class="normalfonttablehead"><b>Password and Security</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Change your account password or your secret question and answer.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.password.php"><%endif%>Password and Security<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.password.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Password and Security</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Change your account password or your secret question and answer.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.password.php{$GLOBALS[session_url]}\\">"))."Password and Security".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_personal' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.personal.php"><span class="normalfonttablehead"><b>Personal Information</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Edit personal information such as your name, location and birthday.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.personal.php"><%endif%>Personal Information<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.personal.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Personal Information</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Edit personal information such as your name, location and birthday.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.personal.php{$GLOBALS[session_url]}\\">"))."Personal Information".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_pop' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="pop.list.php"><span class="normalfonttablehead"><b>POP Accounts</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Have emails from other addresses delivered directly to $appname and vice versa.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="pop.list.php"><%endif%>POP Accounts<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"pop.list.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>POP Accounts</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Have emails from other addresses delivered directly to $appname and vice versa.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"pop.list.php{$GLOBALS[session_url]}\\">"))."POP Accounts".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_read' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.read.php"><span class="normalfonttablehead"><b>Reading Options</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Settings that pertain to reading messages, such as showing HTML, sending read receipts and more.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.read.php"><%endif%>Reading Options<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.read.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Reading Options</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Settings that pertain to reading messages, such as showing HTML, sending read receipts and more.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.read.php{$GLOBALS[session_url]}\\">"))."Reading Options".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_rules' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="rules.list.php"><span class="normalfonttablehead"><b>Message Rules</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Modify or add new message filters to avoid junk mail and edit the blocked and safe senders lists.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="rules.list.php"><%endif%>Message Rules<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"rules.list.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Message Rules</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Modify or add new message filters to avoid junk mail and edit the blocked and safe senders lists.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"rules.list.php{$GLOBALS[session_url]}\\">"))."Message Rules".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_signature' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.signature.php"><span class="normalfonttablehead"><b>Signatures</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Options about your signature and the signature editor.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.signature.php"><%endif%>Signatures<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.signature.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Signatures</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Options about your signature and the signature editor.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.signature.php{$GLOBALS[session_url]}\\">"))."Signatures".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'options_menu_subscription' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.subscription.php"><span class="normalfonttablehead"><b>Subscriptions</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Pay and upgrade your email account to include more features.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.subscription.php"><%endif%>Subscriptions<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.subscription.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>Subscriptions</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Pay and upgrade your email account to include more features.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.subscription.php{$GLOBALS[session_url]}\\">"))."Subscriptions".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'read' => 
  array (
    'templategroupid' => '6',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: $mail[subject]</title>
$css
<script language="JavaScript" type="text/javascript">
<!--

function changeFolderID() {
	var shiftKey = 0;
	if (parseInt(navigator.appVersion) > 3) {
		if (navigator.appName == \'Netscape\') {
			shiftKey = (e.modifiers - 0 > 3); 
		} else {
			shiftKey = event.shiftKey;
		}
	}

	if (shiftKey) {
		document.form.folderid.value = -3;
	}
}

function sendReadReceipt() {
	send = confirm(\'The message sender has requested a response to indicate that you have read this message. Would you like to send a receipt?\');
	if (send == true) {
		imgevent("read.receipt.php?messageid=$messageid");
	}
}

$callcomment setTimeout(sendReadReceipt, 1000);
$directcallcomment imgevent("read.receipt.php?messageid=$messageid");

event_addListener( window, "load", function() { document.all.theMessage.style.height = document.frames(\'theMessage\').document.body.scrollHeight + 45; } )

//-->
</script>
</head>
<body>

$header

<form action="read.update.php" method="post" name="form">
<input type="hidden" name="cmd" value="dostuff" />
<input type="hidden" name="messageid" value="$messageid" />
<input type="hidden" name="folderid" value="$folderid" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>$mail[subject]</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>From:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%" valign="middle"><span class="normalfont" style="vertical-align: middle;">$mail[fromname] (<a href="compose.email.php?email=$mail[fromemailenc]">$mail[fromemail]</a>)</span>&nbsp;<a href="addressbook.add.php?cmd=quick&messageid=$messageid"><img src="$skin[images]/addbook.gif" alt="Add sender to address book" align="middle" border="0" /></a>&nbsp;&nbsp;<span class="smallfont"><%if $hiveuser[cansearch] %><a href="search.results.php?folderids[]=0&searchdate=-1&fields[]=email&query=$mail[fromemailenc]"><img src="$skin[images]/find.gif" alt="Find more messages from sender" align="middle" border="0" /></a><%endif%><%if $hiveuser[canrule] %> <a href="rules.block.php?messageid=$messageid&deletemsg=1"><img src="$skin[images]/block.gif" alt="Block sender" align="middle" border="0" /></a><%endif%></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>To:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%"><span class="normalfont">$tolist</span></td>
</tr>
<%if !empty($cc) %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>CC:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%"><span class="normalfont">$cclist</span></td>
</tr>
<%endif%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>Subject:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%"><span class="normalfont">$mail[subject]</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>Date Sent:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%"><span class="normalfont">$mail[datetime]</span></td>
</tr>
<%if !empty($attachlist) %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>Attachments:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%"><span class="normalfont">$attachlist</span></td>
</tr>
<%endif%>
$advheaders
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" valign="top" align="left" width="10%"><span class="normalfont"><b>Options:</b></span></td>
	<td class="{classname}RightCell" align="left" width="90%"><span class="normalfont"><a href="read.markas.php?messageid=$mail[messageid]&markas=$markas&back=message">mark as $markas</a> | <a href="read.source.php?messageid=$mail[messageid]">view source</a> | <a href="read.source.php?messageid=$mail[messageid]&cmd=save">save as</a> | <a href="read.printable.php?messageid=$mail[messageid]">printable version</a> | <a href="#" onClick="window.open(\'read.rename.php?messageid=$messageid\',\'renameSubject\',\'resizable=no,width=360,height=175\'); return false;">edit subject</a><%if getop(\'allowbouncing\') and !($mail[\'status\'] & MAIL_BOUNCED) %> | <a href="read.bounce.php?messageid=$mail[messageid]">bounce message</a><%endif%><%if $hiveuser[canreportspam] and !($mail[\'status\'] & MAIL_REPORTED) %> | <a href="read.report.php?messageid=$mail[messageid]">report spam</a><%endif%></span></td>
</tr>
<tr class="normalRow">
	<td class="normalBothCell" valign="top" colspan="2">
	<table width="100%" cellpadding="4" cellspacing="0" border="0">
	<tr>
		<td width="100%"><iframe id="theMessage" src="read.email.php?messageid=$mail[messageid]&show=msg&bgcolor={classname}" style="background-color: $iframebgcolor; width: 100%; height: 350px;" allowtransparency="true" frameborder="no"><span class="normalfont">$mail[message]</span></iframe></td>
	</tr>
	</table>
	</td>
</tr>
<tr>
	<td align="right" colspan="2">
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left">
		<input type="button" class="bginput" value="Reply" onClick="window.location=(\'compose.email.php?special=reply&amp;messageid=$messageid\')" />&nbsp;&nbsp;&nbsp;
		<input type="button" class="bginput" value="Reply All" onClick="window.location=(\'compose.email.php?special=replyall&amp;messageid=$messageid\')" />&nbsp;&nbsp;&nbsp;
		<input type="button" class="bginput" value="Forward" onClick="window.location=(\'compose.email.php?special=forward&amp;messageid=$messageid\')" />&nbsp;&nbsp;&nbsp;
		<input style="width: 170px;" type="button" class="bginput" value="Forward as Attachment" onClick="window.location=(\'compose.email.php?special=forward&amp;attach=1&amp;messageid=$messageid\')" /></td>
        <td align="right"><span class="smallfonttablehead"><b>
		<input type="submit" class="bginput" name="move" value="Move to" /> <select name="movetofolderid">
$movefolderjump</select>&nbsp; or &nbsp;
		<input type="submit" class="bginput" name="delete" value="Delete" onClick="changeFolderID(); if (!confirm(\'Are you sure you want to delete the selected messages?\')) return false; return true;" /></b></span></td>
      </tr>
    </table></td>
</tr>
</table>

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td align="left" valign="top"><%if $nextoldestid or $nextnewestid %>
		<table cellpadding="0" cellspacing="0">
			<tr>
				<%if $nextoldestid %><td align="center"><span class="smallfont"><a href="read.email.php?messageid=$nextoldestid">&laquo; Previous Message</a></span></td><%endif%>
				<%if $nextnewestid %><td align="center"><span class="smallfont">&nbsp;&nbsp;<a href="read.email.php?messageid=$nextnewestid">Next Message &raquo;</a></span></td><%endif%>
			</tr>
			<tr>
				<%if $nextoldestid %><td align="center"><span class="smallfont">(<a href="read.email.php?messageid=$nextoldestid">$nextoldestsubject</a>)</span></td><%endif%>
				<%if $nextnewestid %><td align="center"><span class="smallfont">&nbsp;&nbsp;(<a href="read.email.php?messageid=$nextnewestid">$nextnewestsubject</a>)</span></td><%endif%>
			</tr>
		</table><%endif%></td>
	<td align="right" valign="top"><span class="smallfont"><%if $folderid != -3 %><b>Note:</b> deleted messages will be moved to the Trash Can.<br />Hold down Shift key when clicking to completely delete the messages.<%else%>&nbsp;<%endif%></span></td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="550" align="center">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Message Notes</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" align="center"><textarea rows="5" name="msgsnotes" style="overflow-y: visible; width: 550px">$mail[notes]</textarea><br /><input type="submit" name="upnotes" value="Update Notes" class="bginput" /></td>
</tr>
</table>

</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: $mail[subject]</title>
$GLOBALS[css]
<script language=\\"JavaScript\\" type=\\"text/javascript\\">
<!--

function changeFolderID() {
	var shiftKey = 0;
	if (parseInt(navigator.appVersion) > 3) {
		if (navigator.appName == \'Netscape\') {
			shiftKey = (e.modifiers - 0 > 3); 
		} else {
			shiftKey = event.shiftKey;
		}
	}

	if (shiftKey) {
		document.form.folderid.value = -3;
	}
}

function sendReadReceipt() {
	send = confirm(\'The message sender has requested a response to indicate that you have read this message. Would you like to send a receipt?\');
	if (send == true) {
		imgevent(\\"read.receipt.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$messageid\\");
	}
}

$callcomment setTimeout(sendReadReceipt, 1000);
$directcallcomment imgevent(\\"read.receipt.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$messageid\\");

event_addListener( window, \\"load\\", function() { document.all.theMessage.style.height = document.frames(\'theMessage\').document.body.scrollHeight + 45; } )

//-->
</script>
</head>
<body>

$GLOBALS[header]

<form action=\\"read.update.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"form\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"dostuff\\" />
<input type=\\"hidden\\" name=\\"messageid\\" value=\\"$messageid\\" />
<input type=\\"hidden\\" name=\\"folderid\\" value=\\"$folderid\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>$mail[subject]</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>From:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\" valign=\\"middle\\"><span class=\\"normalfont\\" style=\\"vertical-align: middle;\\">$mail[fromname] (<a href=\\"compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}email=$mail[fromemailenc]\\">$mail[fromemail]</a>)</span>&nbsp;<a href=\\"addressbook.add.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=quick&messageid=$messageid\\"><img src=\\"{$GLOBALS[skin][images]}/addbook.gif\\" alt=\\"Add sender to address book\\" align=\\"middle\\" border=\\"0\\" /></a>&nbsp;&nbsp;<span class=\\"smallfont\\">".(($hiveuser[cansearch] ) ? ("<a href=\\"search.results.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderids[]=0&searchdate=-1&fields[]=email&query=$mail[fromemailenc]\\"><img src=\\"{$GLOBALS[skin][images]}/find.gif\\" alt=\\"Find more messages from sender\\" align=\\"middle\\" border=\\"0\\" /></a>") : (\'\')).(($hiveuser[canrule] ) ? (" <a href=\\"rules.block.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$messageid&deletemsg=1\\"><img src=\\"{$GLOBALS[skin][images]}/block.gif\\" alt=\\"Block sender\\" align=\\"middle\\" border=\\"0\\" /></a>") : (\'\'))."</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>To:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\"><span class=\\"normalfont\\">$tolist</span></td>
</tr>
".((!empty($cc) ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>CC:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\"><span class=\\"normalfont\\">$cclist</span></td>
</tr>
") : (\'\'))."
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>Subject:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\"><span class=\\"normalfont\\">$mail[subject]</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>Date Sent:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\"><span class=\\"normalfont\\">$mail[datetime]</span></td>
</tr>
".((!empty($attachlist) ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>Attachments:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\"><span class=\\"normalfont\\">$attachlist</span></td>
</tr>
") : (\'\'))."
$advheaders
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" valign=\\"top\\" align=\\"left\\" width=\\"10%\\"><span class=\\"normalfont\\"><b>Options:</b></span></td>
	<td class=\\"{classname}RightCell\\" align=\\"left\\" width=\\"90%\\"><span class=\\"normalfont\\"><a href=\\"read.markas.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]&markas=$markas&back=message\\">mark as $markas</a> | <a href=\\"read.source.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]\\">view source</a> | <a href=\\"read.source.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]&cmd=save\\">save as</a> | <a href=\\"read.printable.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]\\">printable version</a> | <a href=\\"#\\" onClick=\\"window.open(\'read.rename.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$messageid\',\'renameSubject\',\'resizable=no,width=360,height=175\'); return false;\\">edit subject</a>".((getop(\'allowbouncing\') and !($mail[\'status\'] & MAIL_BOUNCED) ) ? (" | <a href=\\"read.bounce.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]\\">bounce message</a>") : (\'\')).(($hiveuser[canreportspam] and !($mail[\'status\'] & MAIL_REPORTED) ) ? (" | <a href=\\"read.report.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]\\">report spam</a>") : (\'\'))."</span></td>
</tr>
<tr class=\\"normalRow\\">
	<td class=\\"normalBothCell\\" valign=\\"top\\" colspan=\\"2\\">
	<table width=\\"100%\\" cellpadding=\\"4\\" cellspacing=\\"0\\" border=\\"0\\">
	<tr>
		<td width=\\"100%\\"><iframe id=\\"theMessage\\" src=\\"read.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$mail[messageid]&show=msg&bgcolor={classname}\\" style=\\"background-color: $iframebgcolor; width: 100%; height: 350px;\\" allowtransparency=\\"true\\" frameborder=\\"no\\"><span class=\\"normalfont\\">$mail[message]</span></iframe></td>
	</tr>
	</table>
	</td>
</tr>
<tr>
	<td align=\\"right\\" colspan=\\"2\\">
    <table border=\\"0\\" width=\\"100%\\" cellpadding=\\"0\\" cellspacing=\\"0\\">
      <tr>
        <td align=\\"left\\">
		<input type=\\"button\\" class=\\"bginput\\" value=\\"Reply\\" onClick=\\"window.location=(\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}special=reply&amp;messageid=$messageid\')\\" />&nbsp;&nbsp;&nbsp;
		<input type=\\"button\\" class=\\"bginput\\" value=\\"Reply All\\" onClick=\\"window.location=(\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}special=replyall&amp;messageid=$messageid\')\\" />&nbsp;&nbsp;&nbsp;
		<input type=\\"button\\" class=\\"bginput\\" value=\\"Forward\\" onClick=\\"window.location=(\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}special=forward&amp;messageid=$messageid\')\\" />&nbsp;&nbsp;&nbsp;
		<input style=\\"width: 170px;\\" type=\\"button\\" class=\\"bginput\\" value=\\"Forward as Attachment\\" onClick=\\"window.location=(\'compose.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}special=forward&amp;attach=1&amp;messageid=$messageid\')\\" /></td>
        <td align=\\"right\\"><span class=\\"smallfonttablehead\\"><b>
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"move\\" value=\\"Move to\\" /> <select name=\\"movetofolderid\\">
$movefolderjump</select>&nbsp; or &nbsp;
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"delete\\" value=\\"Delete\\" onClick=\\"changeFolderID(); if (!confirm(\'Are you sure you want to delete the selected messages?\')) return false; return true;\\" /></b></span></td>
      </tr>
    </table></td>
</tr>
</table>

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td align=\\"left\\" valign=\\"top\\">".(($nextoldestid or $nextnewestid ) ? ("
		<table cellpadding=\\"0\\" cellspacing=\\"0\\">
			<tr>
				".(($nextoldestid ) ? ("<td align=\\"center\\"><span class=\\"smallfont\\"><a href=\\"read.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$nextoldestid\\">&laquo; Previous Message</a></span></td>") : (\'\'))."
				".(($nextnewestid ) ? ("<td align=\\"center\\"><span class=\\"smallfont\\">&nbsp;&nbsp;<a href=\\"read.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$nextnewestid\\">Next Message &raquo;</a></span></td>") : (\'\'))."
			</tr>
			<tr>
				".(($nextoldestid ) ? ("<td align=\\"center\\"><span class=\\"smallfont\\">(<a href=\\"read.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$nextoldestid\\">$nextoldestsubject</a>)</span></td>") : (\'\'))."
				".(($nextnewestid ) ? ("<td align=\\"center\\"><span class=\\"smallfont\\">&nbsp;&nbsp;(<a href=\\"read.email.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}messageid=$nextnewestid\\">$nextnewestsubject</a>)</span></td>") : (\'\'))."
			</tr>
		</table>") : (\'\'))."</td>
	<td align=\\"right\\" valign=\\"top\\"><span class=\\"smallfont\\">".(($folderid != -3 ) ? ("<b>Note:</b> deleted messages will be moved to the Trash Can.<br />Hold down Shift key when clicking to completely delete the messages.") : ("&nbsp;"))."</span></td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"550\\" align=\\"center\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Message Notes</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" align=\\"center\\"><textarea rows=\\"5\\" name=\\"msgsnotes\\" style=\\"overflow-y: visible; width: 550px\\">$mail[notes]</textarea><br /><input type=\\"submit\\" name=\\"upnotes\\" value=\\"Update Notes\\" class=\\"bginput\\" /></td>
</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'redirect_addbook_quickadd_none' => 
  array (
    'templategroupid' => '8',
    'user_data' => 'All of the sender(s) specified to be added to your address book are already in it.',
    'parsed_data' => '"All of the sender(s) specified to be added to your address book are already in it."',
    'upgraded' => '0',
  ),
  'redirect_mailsent' => 
  array (
    'templategroupid' => '8',
    'user_data' => 'Your email was successfully sent!<%if !$addedalladdresses%><br />
<br />
<b>Note:</b> Not all addresses could be added to the addressbook as you have reached your limt.
<%endif%>',
    'parsed_data' => '"Your email was successfully sent!".((!$addedalladdresses) ? ("<br />
<br />
<b>Note:</b> Not all addresses could be added to the addressbook as you have reached your limt.
") : (\'\'))',
    'upgraded' => '0',
  ),
  'redirect_messagebounced' => 
  array (
    'templategroupid' => '8',
    'user_data' => 'The message was successfully bounced to its sender, $mail[email].',
    'parsed_data' => '"The message was successfully bounced to its sender, $mail[email]."',
    'upgraded' => '0',
  ),
);

?>