<?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[8] = array (
  '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="" />
<input type="hidden" name="contactgroupid" value="$contactgroupid" />

<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(\'Are you sure you want to delete the selected contacts?<%if contactgroupid > 0%>\\n(The contacts will be permanently removed from all groups.)<%endif%>\')) { this.selectedIndex = 0; return false; } } if (this.options[this.selectedIndex].value == \'remove\') { if (!confirm(\'Are you sure you want to remove the selected contacts from this group?\\n(The contacts will not be deleted..)\')) { 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>
			<%if $contactgroupid > 0%>
			<option value="remove">Remove selected from group</option>
			<%endif%>
		</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=\\"\\" />
<input type=\\"hidden\\" name=\\"contactgroupid\\" value=\\"$contactgroupid\\" />

<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(\'Are you sure you want to delete the selected contacts?".((contactgroupid > 0) ? ("\\\\n(The contacts will be permanently removed from all groups.)") : (\'\'))."\')) { this.selectedIndex = 0; return false; } } if (this.options[this.selectedIndex].value == \'remove\') { if (!confirm(\'Are you sure you want to remove the selected contacts from this group?\\\\n(The contacts will not be deleted..)\')) { 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>
			".(($contactgroupid > 0) ? ("
			<option value=\\"remove\\">Remove selected from group</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',
  ),
  'calendar_options' => 
  array (
    'templategroupid' => '18',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Calendar 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="calendar.options.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>Calendar Options</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show event reminders:</b></span>
	<br />
	<span class="smallfont">Choose whether or not you would like to see reminders to upcoming events on {$_folders[-1][\'title\']}.<br />Set to 0 to disable this option.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="text" name="calreminder" value="$hiveuser[calreminder]" class="bginput" size="2" /> days before they occur</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show current month on {$_folders[-1][\'title\']}:</b></span>
	<br />
	<span class="smallfont">Turn this on if you\'d like to see the current month displayed when viewing your {$_folders[-1][\'title\']}.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="caloninbox" value="1" id="caloninboxon" $caloninboxon /> <label for="caloninboxon">Yes</label><br /><input type="radio" name="caloninbox" value="0" id="caloninboxoff" $caloninboxoff /> <label for="caloninboxoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Display next or previous months on {$_folders[-1][\'title\']}:</b></span>
	<br />
	<span class="smallfont">If this option is enabled, the next or previous month will also be displayed if the current week spans beyond the current month.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="calspaninbox" value="1" id="calspaninboxon" $calspaninboxon /> <label for="calspaninboxon">Yes</label><br /><input type="radio" name="calspaninbox" value="0" id="calspaninboxoff" $calspaninboxoff /> <label for="calspaninboxoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Type of layout for yearly display:</b></span>
	<br />
	<span class="smallfont">How months should be laid out when viewing a whole year.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="calyear3on4" value="1" id="calyear3on4on" $calyear3on4on /> <label for="calyear3on4on">3 wide / 4 high</label><br /><input type="radio" name="calyear3on4" value="0" id="calyear3on4off" $calyear3on4off /> <label for="calyear3on4off">4 wide / 3 high</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Start of the week:</b></span>
	<br />
	<span class="smallfont">Choose the day of the week on which weeks start in your culture, to make your calendar appear correct.</span></td>
	<td class="{classname}RightCell" width="40%">
		<select name="weekstart">
			<option value="0" $daysel[0]>$skin[cal_sun_long]</option>
			<option value="1" $daysel[1]>$skin[cal_mon_long]</option>
			<option value="2" $daysel[2]>$skin[cal_tue_long]</option>
			<option value="3" $daysel[3]>$skin[cal_wed_long]</option>
			<option value="4" $daysel[4]>$skin[cal_thu_long]</option>
			<option value="5" $daysel[5]>$skin[cal_fri_long]</option>
			<option value="6" $daysel[6]>$skin[cal_sat_long]</option>
		</select>
	</td>
</tr>
<%if $hiveuser[cansharedevents] %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Allow other users to share events with me:</b></span>
	<br />
	<span class="smallfont">If this option is enabled, other users will be able to share calendar events with you, and vice-versa. Your name will appear on the Userlist associated with that event (unless you disable that option below, or the event poster disables the public userlist option).</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="calsharesok" value="1" id="calsharesokon" $calsharesokon /> <label for="calsharesokon">Yes</label><br /><input type="radio" name="calsharesok" value="0" id="calsharesokoff" $calsharesokoff /> <label for="calsharesokoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show my email address on the userlist of shared events</b></span>
	<br />
	<span class="smallfont">If this option is enabled, other users will be able to see your email address on the public userlist for shared events that you are part of, unless the event poster disables the public userlist option.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="calshowmeonlist" value="1" id="calshowmeonliston" $calshowmeonliston /> <label for="calshowmeonliston">Yes</label><br /><input type="radio" name="calshowmeonlist" value="0" id="calshowmeonlistoff" $calshowmeonlistoff /> <label for="calshowmeonlistoff">No</label></span></td>
</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: Calendar 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=\\"calendar.options.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>Calendar Options</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show event reminders:</b></span>
	<br />
	<span class=\\"smallfont\\">Choose whether or not you would like to see reminders to upcoming events on {$_folders[-1][\'title\']}.<br />Set to 0 to disable this option.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"text\\" name=\\"calreminder\\" value=\\"$hiveuser[calreminder]\\" class=\\"bginput\\" size=\\"2\\" /> days before they occur</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show current month on {$_folders[-1][\'title\']}:</b></span>
	<br />
	<span class=\\"smallfont\\">Turn this on if you\'d like to see the current month displayed when viewing your {$_folders[-1][\'title\']}.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"caloninbox\\" value=\\"1\\" id=\\"caloninboxon\\" $caloninboxon /> <label for=\\"caloninboxon\\">Yes</label><br /><input type=\\"radio\\" name=\\"caloninbox\\" value=\\"0\\" id=\\"caloninboxoff\\" $caloninboxoff /> <label for=\\"caloninboxoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Display next or previous months on {$_folders[-1][\'title\']}:</b></span>
	<br />
	<span class=\\"smallfont\\">If this option is enabled, the next or previous month will also be displayed if the current week spans beyond the current month.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"calspaninbox\\" value=\\"1\\" id=\\"calspaninboxon\\" $calspaninboxon /> <label for=\\"calspaninboxon\\">Yes</label><br /><input type=\\"radio\\" name=\\"calspaninbox\\" value=\\"0\\" id=\\"calspaninboxoff\\" $calspaninboxoff /> <label for=\\"calspaninboxoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Type of layout for yearly display:</b></span>
	<br />
	<span class=\\"smallfont\\">How months should be laid out when viewing a whole year.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"calyear3on4\\" value=\\"1\\" id=\\"calyear3on4on\\" $calyear3on4on /> <label for=\\"calyear3on4on\\">3 wide / 4 high</label><br /><input type=\\"radio\\" name=\\"calyear3on4\\" value=\\"0\\" id=\\"calyear3on4off\\" $calyear3on4off /> <label for=\\"calyear3on4off\\">4 wide / 3 high</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Start of the week:</b></span>
	<br />
	<span class=\\"smallfont\\">Choose the day of the week on which weeks start in your culture, to make your calendar appear correct.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<select name=\\"weekstart\\">
			<option value=\\"0\\" $daysel[0]>{$GLOBALS[skin][cal_sun_long]}</option>
			<option value=\\"1\\" $daysel[1]>{$GLOBALS[skin][cal_mon_long]}</option>
			<option value=\\"2\\" $daysel[2]>{$GLOBALS[skin][cal_tue_long]}</option>
			<option value=\\"3\\" $daysel[3]>{$GLOBALS[skin][cal_wed_long]}</option>
			<option value=\\"4\\" $daysel[4]>{$GLOBALS[skin][cal_thu_long]}</option>
			<option value=\\"5\\" $daysel[5]>{$GLOBALS[skin][cal_fri_long]}</option>
			<option value=\\"6\\" $daysel[6]>{$GLOBALS[skin][cal_sat_long]}</option>
		</select>
	</td>
</tr>
".(($hiveuser[cansharedevents] ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Allow other users to share events with me:</b></span>
	<br />
	<span class=\\"smallfont\\">If this option is enabled, other users will be able to share calendar events with you, and vice-versa. Your name will appear on the Userlist associated with that event (unless you disable that option below, or the event poster disables the public userlist option).</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"calsharesok\\" value=\\"1\\" id=\\"calsharesokon\\" $calsharesokon /> <label for=\\"calsharesokon\\">Yes</label><br /><input type=\\"radio\\" name=\\"calsharesok\\" value=\\"0\\" id=\\"calsharesokoff\\" $calsharesokoff /> <label for=\\"calsharesokoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show my email address on the userlist of shared events</b></span>
	<br />
	<span class=\\"smallfont\\">If this option is enabled, other users will be able to see your email address on the public userlist for shared events that you are part of, unless the event poster disables the public userlist option.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"calshowmeonlist\\" value=\\"1\\" id=\\"calshowmeonliston\\" $calshowmeonliston /> <label for=\\"calshowmeonliston\\">Yes</label><br /><input type=\\"radio\\" name=\\"calshowmeonlist\\" value=\\"0\\" id=\\"calshowmeonlistoff\\" $calshowmeonlistoff /> <label for=\\"calshowmeonlistoff\\">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',
  ),
  'calendar_table_daycell_small' => 
  array (
    'templategroupid' => '18',
    'user_data' => '<td align="center" onDblClick="document.location.href = \'calendar.display.php?cmd=day&date=$month-$day-$year\';" title="There are $eventstoday event(s) on this day$eventssmall" class="<%if $thisweek %>high<%else%>normal<%endif%>$classType" <%if !$thisweek %>onMouseOver="this.className = \'high$classType\';" onMouseOut="this.className = \'normal$classType\';"<%endif%>><a href="calendar.display.php?cmd=day&date=$month-$day-$year" style="text-decoration: none;"><span class="{$fontsize}font" style="$style">$day</span></a></td>',
    'parsed_data' => '"<td align=\\"center\\" onDblClick=\\"document.location.href = \'calendar.display.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=day&date=$month-$day-$year\';\\" title=\\"There are $eventstoday event(s) on this day$eventssmall\\" class=\\"".(($thisweek ) ? ("high") : ("normal"))."$classType\\" ".((!$thisweek ) ? ("onMouseOver=\\"this.className = \'high$classType\';\\" onMouseOut=\\"this.className = \'normal$classType\';\\"") : (\'\'))."><a href=\\"calendar.display.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=day&date=$month-$day-$year\\" style=\\"text-decoration: none;\\"><span class=\\"{$fontsize}font\\" style=\\"$style\\">$day</span></a></td>"',
    '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="misc/empty.html" 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=\\"misc/empty.html\\" 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_manageattach' => 
  array (
    'templategroupid' => '3',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Manage Attachments</title>
$css
<script language="JavaScript">
function render(t) {
	document.getElementById(t).style.display="";
}
</script>
</head>
<body style="background-color: #C7E1F4;">

$header

<span class="normalfont">$usermessage</span>

<form enctype="multipart/form-data" action="compose.attachments.php" name="composeform" method="post">
<input type="hidden" name="cmd" value="manageattach" />
<input type="hidden" name="draftid" value="$draft[draftid]" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell"><span class="normalfonttablehead"><b>Add New Attachment</b></span></th>
</tr>
<tr class="highRow">
	<td class="highBothCell"><span class="smallfont">Click the "Browse..." button to find the file you wish to attach.<br />When you are done, click "Attach File".<br /><br />
	<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
	<input type="file" class="bginput" name="attachment" /><br /><br />
	<input type="submit" class="bginput" name="upload" onClick="render(\'progress\')" value="Attach File" />
<div style="display:none;" id="progress"><br />&nbsp;&nbsp;&nbsp;<img src="$skin[images]/progress.gif" border="0"></div></span></td></td>
</tr>
</table>
<br /><br /><br />

<!-- ****************************************** -->

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell"><span class="normalfonttablehead"><b>Current Attachments</b></span></th>
</tr>
<tr class="highRow">
	<td class="highBothCell"><span class="normalfont"><b>Below is the list of current attachments this email contains.</b><br />
	<span class="smallfont"><%if $hiveuser[maxattach] > 0 %>You are allowed to attach up to $hiveuser[maxattach]MB worth of files to this message.<br /><%endif%>
	To remove an attachment, click the "Delete" button next to it.</span><br /><br />
	<%if !empty($attachlist) %>
	$attachlist
	<%else%>
	No attachments.
	<%endif%>
	</span></td>
</tr>
</table>
<br /><br />

<center>
<input type="button" value=" Done " class="bginput" onclick="opener.document.composeform.target = \'_self\'; opener.sumbitForm(0, 1); opener.document.composeform.submit(); window.close();" />
</center>
</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Manage Attachments</title>
$GLOBALS[css]
<script language=\\"JavaScript\\">
function render(t) {
	document.getElementById(t).style.display=\\"\\";
}
</script>
</head>
<body style=\\"background-color: #C7E1F4;\\">

$GLOBALS[header]

<span class=\\"normalfont\\">$usermessage</span>

<form enctype=\\"multipart/form-data\\" action=\\"compose.attachments.php{$GLOBALS[session_url]}\\" name=\\"composeform\\" method=\\"post\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"manageattach\\" />
<input type=\\"hidden\\" name=\\"draftid\\" value=\\"$draft[draftid]\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Add New Attachment</b></span></th>
</tr>
<tr class=\\"highRow\\">
	<td class=\\"highBothCell\\"><span class=\\"smallfont\\">Click the \\"Browse...\\" button to find the file you wish to attach.<br />When you are done, click \\"Attach File\\".<br /><br />
	<input type=\\"hidden\\" name=\\"MAX_FILE_SIZE\\" value=\\"10485760\\" />
	<input type=\\"file\\" class=\\"bginput\\" name=\\"attachment\\" /><br /><br />
	<input type=\\"submit\\" class=\\"bginput\\" name=\\"upload\\" onClick=\\"render(\'progress\')\\" value=\\"Attach File\\" />
<div style=\\"display:none;\\" id=\\"progress\\"><br />&nbsp;&nbsp;&nbsp;<img src=\\"{$GLOBALS[skin][images]}/progress.gif\\" border=\\"0\\"></div></span></td></td>
</tr>
</table>
<br /><br /><br />

<!-- ****************************************** -->

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Current Attachments</b></span></th>
</tr>
<tr class=\\"highRow\\">
	<td class=\\"highBothCell\\"><span class=\\"normalfont\\"><b>Below is the list of current attachments this email contains.</b><br />
	<span class=\\"smallfont\\">".(($hiveuser[maxattach] > 0 ) ? ("You are allowed to attach up to $hiveuser[maxattach]MB worth of files to this message.<br />") : (\'\'))."
	To remove an attachment, click the \\"Delete\\" button next to it.</span><br /><br />
	".((!empty($attachlist) ) ? ("
	$attachlist
	") : ("
	No attachments.
	"))."
	</span></td>
</tr>
</table>
<br /><br />

<center>
<input type=\\"button\\" value=\\" Done \\" class=\\"bginput\\" onclick=\\"opener.document.composeform.target = \'_self\'; opener.sumbitForm(0, 1); opener.document.composeform.submit(); window.close();\\" />
</center>
</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'compose_spell_loading' => 
  array (
    'templategroupid' => '3',
    'user_data' => '$skin[doctype]
<html>
<head>
<title>$appname: Spell Checker</title>
$css
<script language="Javascript">
<!--

function js_dots() {
	getElement(\'dotproc\').innerText += \'.\';
	jstimer = setTimeout(\'js_dots();\', 100);
}

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

$header

<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: 10px" width="75%" colspan="2">
			<span id="dotproc" class="normalfont">Loading</span>
			<span class="normalfont">
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;
			</span>
		</td>
	</tr>
</table>

$footer

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

function js_dots() {
	getElement(\'dotproc\').innerText += \'.\';
	jstimer = setTimeout(\'js_dots();\', 100);
}

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

$GLOBALS[header]

<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: 10px\\" width=\\"75%\\" colspan=\\"2\\">
			<span id=\\"dotproc\\" class=\\"normalfont\\">Loading</span>
			<span class=\\"normalfont\\">
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;<br />&nbsp;
				<br />&nbsp;<br />&nbsp;
			</span>
		</td>
	</tr>
</table>

$GLOBALS[footer]

</body>
</html>"',
    '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;">

$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>

<script language="Javascript">
<!--
startSpell();
// -->
</script>

$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;\\">

$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>

<script language=\\"Javascript\\">
<!--
startSpell();
// -->
</script>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'css' => 
  array (
    'templategroupid' => '1',
    'user_data' => '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
body {
	padding: 0px;
}
.firstalt {
	background: $skin[firstalt];
}
.secondalt {
	background: $skin[secondalt];
}

/***** Text *****/
.headerText {
	color: #3B6597;
	font-weight: bold;
	vertical-align: middle;
}
.timecolor {
	color: $skin[timecolor];
}
.smallfont {
	font-family: $skin[fontface];
	font-size: $skin[smallsize];
}
.smallfonttablehead {
	font-family: $skin[fontface];
	font-size: $skin[smallsize];
	color: $skin[tableheadfontcolor];
	text-decoration: none;
}
.normalfont {
	font-family: $skin[fontface];
	font-size: $skin[normalsize];
}
.normalfonttablehead {
	font-family: $skin[fontface];
	font-size: $skin[normalsize];
	color: $skin[tableheadfontcolor];
	text-decoration: none;
}
.important {
	font-family: $skin[fontface];
	font-size: $skin[normalsize];
	color: red;
	font-weight: bold;               
}

/***** Forms *****/
select {
	font-family: $skin[fontface];
	font-size: 11px;
	color: #000000;
	background: $skin[formbackground];
	font-weight: normal;
}
textarea, .bginput {
	font-family: $skin[fontface];
	font-size: 12px;
	color: #000000;
	background: $skin[formbackground];
	font-weight: normal;
	border-width: 1px;
}
.normalInactive {
	font-family: $skin[fontface];
	font-size: 12px;
	color: #000000;
	border: 1px $skin[firstalt] solid;
	font-weight: normal;
	background: $skin[firstalt];
}
.highInactive {
	font-family: $skin[fontface];
	font-size: 12px;
	color: #000000;
	border: 1px $skin[secondalt] solid;
	font-weight: normal;
	background: $skin[secondalt];
}
.normalInactiveLink {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[firstalt] solid;
	font-weight: normal;
	background: $skin[firstalt];
	color: $skin[linkcolor];
}
.normalInactiveLinkHover {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[firstalt] solid;
	font-weight: normal;
	background: $skin[firstalt];
	color: $skin[linkhovercolor];
}
.highInactiveLink {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[secondalt] solid;
	font-weight: normal;
	background: $skin[secondalt];
	color: $skin[linkcolor];
}
.highInactiveLinkHover {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[secondalt] solid;
	font-weight: normal;
	background: $skin[secondalt];
	color: $skin[linkhovercolor];
}

/***** Links *****/
a:link, a:visited, a:active {
	color: $skin[linkcolor];
	
}
a:hover {
	color: $skin[linkhovercolor];
}
.headerLink {
	color: #DAEBFA;
	font-family: $skin[fontface];
	font-size: 12px;
	text-decoration: none;
}
.footerLink {
	color: #142F8A;
	font-family: Arial;
	font-size: 11px;
	text-decoration: none;
                margin-left: 1%;
                margin-right: 1%;
}
.folderLink {
	font-family: $skin[fontface];
	font-size: 11px;
	text-decoration: none;
}

/***** Tables *****/
.normalTable {
	border-width: 0px;
	font: 11px $skin[fontface];
}

/***** Normal Rows *****/
.normalRow {
	background-color: $skin[firstalt];
}
.highRow {
	background-color: $skin[secondalt];
}

/***** Header Row *****/
.headerRow {
	background: $skin[tableheadbgcolor];
	height: 23px;
}

/***** Normal Cells *****/
.Cell {
	border: 0px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] 0px;
}
.LeftCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
}
.RightCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] 0px;
}
.BothCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
}
.normalCell {
	border: 0px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[firstalt];
}
.normalLeftCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[firstalt];
}
.normalRightCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[firstalt];
}
.normalBothCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[firstalt];
}
.highCell {
	border: 0px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[secondalt];
}
.highLeftCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[secondalt];
}
.highRightCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[secondalt];
}
.highBothCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[secondalt];
}

/***** Header Cells *****/
.headerCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_vertical_width] $skin[border_header_horizonal_width] 0px;
}
th a {
	text-decoration: none;
}
.headerLeftCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_vertical_width] $skin[border_header_horizonal_width] $skin[border_header_edges_width];
}
.headerRightCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_edges_width] $skin[border_header_horizonal_width] 0px;
}
.headerBothCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_edges_width] $skin[border_header_horizonal_width] $skin[border_header_edges_width];
}
</style>
<script type="text/javascript" language="JavaScript">
<!--
var INDEX_FILE = \'{<INDEX_FILE>}\';
// -->
</script>
<script type="text/javascript" src="misc/common.js"></script>
<%if (!infile(\'compose\') or !$data[\'html\']) and !defined(\'NO_JS\') %>
<link rel="stylesheet" href="misc/context.css" />
<script type="text/javascript" src="misc/event.js"></script>
<script type="text/javascript" src="misc/context.js"></script>
<script type="text/javascript" language="JavaScript">
<!--

var gotNewMsgs = 0;

event_addListener( window, \'load\', function() { preloadImages(\'$skin[images]/header_icon_inbox_high.gif\', \'$skin[images]/header_icon_compose_high.gif\', \'$skin[images]/header_icon_addbook_high.gif\', \'$skin[images]/header_icon_options_high.gif\', \'$skin[images]/header_icon_search_high.gif\'); });

<%if $hiveuser[\'userid\'] <> 0 and $hiveuser[\'lastvisit\'] == TIMENOW and $hiveuser[\'fixdst\'] %>
function checkDST() {
	var curDate = new Date();
	var difference = parseInt(-curDate.getTimezoneOffset() / 60 - $hiveuser[timezone]);

	while (difference > 12) {
		difference -= 12;
	}
	while (difference < -12) {
		difference += 12;
	}

	if (difference != 0) {
		<%if $hiveuser[\'popupnotices\'] %>
			if (confirm(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Would you like the system to correct this mistake?\')) {
				imgevent("options.personal.php?cmd=updatezone&difference="+difference);
			} else if (confirm(\'Do you wish to disable the automatic detection of time-zones?\')) {
				imgevent("options.personal.php?cmd=disablezone");
			}
		<%else%>
			showNotice(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Click <a href="#" onClick="imgevent(\\\'options.personal.php?cmd=updatezone&difference=\'+difference+\'\\\'); closeNotice(); return false;">here</a> to correct this mistake or click <a href="#" onClick="imgevent(\\\'options.personal.php?cmd=disablezone\\\'); closeNotice(); return false;">here</a> to disable the automatic detection of time-zones.\');
		<%endif%>
	}
}
setTimeout(checkDST, 1000);
<%endif%>

function contextForFolder(e, folderID, folderName) {
	var popupoptions = [
		new ContextItem(\'Open\', function(){ window.location = \'{<INDEX_FILE>}?folderid=\'+folderID; }, false, true),
		new ContextItem(\'Search\', function(){ window.location = \'search.intro.php?folderid=\'+folderID; }),
		new ContextSeperator(),
		new ContextItem(\'Rename...\', function(){ renameFolder(folderID, folderName); }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Empty\', function(){ if (confirm(\'Are you sure you want to empty this folder?\')) window.location = \'folders.update.php?empty=Empty&return=$folderid&folder[\'+folderID+\']=yes\'; }),
		new ContextItem(\'Delete\', function(){ if (confirm(\'Are you sure you want to delete this folder?\')) window.location = \'folders.update.php?delete=Delete&return=$folderid&folder[\'+folderID+\']=yes\'; }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Mark as read\', function(){ markFolder(folderID, \'read\'); }),
		new ContextItem(\'Mark as not read\', function(){ markFolder(folderID, \'unread\'); })
	]
	ContextMenu.display(popupoptions, e);
	ContextMenu.folderID = folderID;
}

function renameFolder(folderid, currentName) {
	var name = window.prompt(\'New name for folder "\'+currentName+\'":\', currentName);
	if (name != "") {
		window.location = \'folders.rename.php?folderid=\'+folderid+\'&name=\'+name;
	}
}

function markFolder(folderid, markAs) {
	if (confirm(\'Are you sure you want to mark all messages in this folder as \'+markAs+\'?\')) {
		window.location = \'folders.update.php?cmd=mark&markas=\'+markAs+\'&folderid=\'+folderid;
	}
}

//-->
</script>
<%else%>
<script type="text/javascript" language="JavaScript">
<!--

function contextForFolder() {
	return true;
}

//-->
</script>
<%endif%>',
    'parsed_data' => '"<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=ISO-8859-1\\" />
<style type=\\"text/css\\">
body {
	padding: 0px;
}
.firstalt {
	background: {$GLOBALS[skin][firstalt]};
}
.secondalt {
	background: {$GLOBALS[skin][secondalt]};
}

/***** Text *****/
.headerText {
	color: #3B6597;
	font-weight: bold;
	vertical-align: middle;
}
.timecolor {
	color: {$GLOBALS[skin][timecolor]};
}
.smallfont {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][smallsize]};
}
.smallfonttablehead {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][smallsize]};
	color: {$GLOBALS[skin][tableheadfontcolor]};
	text-decoration: none;
}
.normalfont {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][normalsize]};
}
.normalfonttablehead {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][normalsize]};
	color: {$GLOBALS[skin][tableheadfontcolor]};
	text-decoration: none;
}
.important {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][normalsize]};
	color: red;
	font-weight: bold;               
}

/***** Forms *****/
select {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 11px;
	color: #000000;
	background: {$GLOBALS[skin][formbackground]};
	font-weight: normal;
}
textarea, .bginput {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	color: #000000;
	background: {$GLOBALS[skin][formbackground]};
	font-weight: normal;
	border-width: 1px;
}
.normalInactive {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	color: #000000;
	border: 1px {$GLOBALS[skin][firstalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][firstalt]};
}
.highInactive {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	color: #000000;
	border: 1px {$GLOBALS[skin][secondalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][secondalt]};
}
.normalInactiveLink {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][firstalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][firstalt]};
	color: {$GLOBALS[skin][linkcolor]};
}
.normalInactiveLinkHover {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][firstalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][firstalt]};
	color: {$GLOBALS[skin][linkhovercolor]};
}
.highInactiveLink {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][secondalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][secondalt]};
	color: {$GLOBALS[skin][linkcolor]};
}
.highInactiveLinkHover {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][secondalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][secondalt]};
	color: {$GLOBALS[skin][linkhovercolor]};
}

/***** Links *****/
a:link, a:visited, a:active {
	color: {$GLOBALS[skin][linkcolor]};
	
}
a:hover {
	color: {$GLOBALS[skin][linkhovercolor]};
}
.headerLink {
	color: #DAEBFA;
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	text-decoration: none;
}
.footerLink {
	color: #142F8A;
	font-family: Arial;
	font-size: 11px;
	text-decoration: none;
                margin-left: 1%;
                margin-right: 1%;
}
.folderLink {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 11px;
	text-decoration: none;
}

/***** Tables *****/
.normalTable {
	border-width: 0px;
	font: 11px {$GLOBALS[skin][fontface]};
}

/***** Normal Rows *****/
.normalRow {
	background-color: {$GLOBALS[skin][firstalt]};
}
.highRow {
	background-color: {$GLOBALS[skin][secondalt]};
}

/***** Header Row *****/
.headerRow {
	background: {$GLOBALS[skin][tableheadbgcolor]};
	height: 23px;
}

/***** Normal Cells *****/
.Cell {
	border: 0px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
}
.LeftCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
}
.RightCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
}
.BothCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
}
.normalCell {
	border: 0px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][firstalt]};
}
.normalLeftCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][firstalt]};
}
.normalRightCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][firstalt]};
}
.normalBothCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][firstalt]};
}
.highCell {
	border: 0px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][secondalt]};
}
.highLeftCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][secondalt]};
}
.highRightCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][secondalt]};
}
.highBothCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][secondalt]};
}

/***** Header Cells *****/
.headerCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_vertical_width]} {$GLOBALS[skin][border_header_horizonal_width]} 0px;
}
th a {
	text-decoration: none;
}
.headerLeftCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_vertical_width]} {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]};
}
.headerRightCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]} {$GLOBALS[skin][border_header_horizonal_width]} 0px;
}
.headerBothCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]} {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]};
}
</style>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var INDEX_FILE = \'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\';
// -->
</script>
<script type=\\"text/javascript\\" src=\\"misc/common.js\\"></script>
".(((!infile(\'compose\') or !$data[\'html\']) and !defined(\'NO_JS\') ) ? ("
<link rel=\\"stylesheet\\" href=\\"misc/context.css\\" />
<script type=\\"text/javascript\\" src=\\"misc/event.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/context.js\\"></script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--

var gotNewMsgs = 0;

event_addListener( window, \'load\', function() { preloadImages(\'{$GLOBALS[skin][images]}/header_icon_inbox_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_compose_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_addbook_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_options_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_search_high.gif\'); });

".(($hiveuser[\'userid\'] <> 0 and $hiveuser[\'lastvisit\'] == TIMENOW and $hiveuser[\'fixdst\'] ) ? ("
function checkDST() {
	var curDate = new Date();
	var difference = parseInt(-curDate.getTimezoneOffset() / 60 - $hiveuser[timezone]);

	while (difference > 12) {
		difference -= 12;
	}
	while (difference < -12) {
		difference += 12;
	}

	if (difference != 0) {
		".(($hiveuser[\'popupnotices\'] ) ? ("
			if (confirm(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Would you like the system to correct this mistake?\')) {
				imgevent(\\"options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=updatezone&difference=\\"+difference);
			} else if (confirm(\'Do you wish to disable the automatic detection of time-zones?\')) {
				imgevent(\\"options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=disablezone\\");
			}
		") : ("
			showNotice(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Click <a href=\\"#\\" onClick=\\"imgevent(\\\\\'options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=updatezone&difference=\'+difference+\'\\\\\'); closeNotice(); return false;\\">here</a> to correct this mistake or click <a href=\\"#\\" onClick=\\"imgevent(\\\\\'options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=disablezone\\\\\'); closeNotice(); return false;\\">here</a> to disable the automatic detection of time-zones.\');
		"))."
	}
}
setTimeout(checkDST, 1000);
") : (\'\'))."

function contextForFolder(e, folderID, folderName) {
	var popupoptions = [
		new ContextItem(\'Open\', function(){ window.location = \'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=\'+folderID; }, false, true),
		new ContextItem(\'Search\', function(){ window.location = \'search.intro.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=\'+folderID; }),
		new ContextSeperator(),
		new ContextItem(\'Rename...\', function(){ renameFolder(folderID, folderName); }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Empty\', function(){ if (confirm(\'Are you sure you want to empty this folder?\')) window.location = \'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}empty=Empty&return=$folderid&folder[\'+folderID+\']=yes\'; }),
		new ContextItem(\'Delete\', function(){ if (confirm(\'Are you sure you want to delete this folder?\')) window.location = \'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}delete=Delete&return=$folderid&folder[\'+folderID+\']=yes\'; }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Mark as read\', function(){ markFolder(folderID, \'read\'); }),
		new ContextItem(\'Mark as not read\', function(){ markFolder(folderID, \'unread\'); })
	]
	ContextMenu.display(popupoptions, e);
	ContextMenu.folderID = folderID;
}

function renameFolder(folderid, currentName) {
	var name = window.prompt(\'New name for folder \\"\'+currentName+\'\\":\', currentName);
	if (name != \\"\\") {
		window.location = \'folders.rename.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=\'+folderid+\'&name=\'+name;
	}
}

function markFolder(folderid, markAs) {
	if (confirm(\'Are you sure you want to mark all messages in this folder as \'+markAs+\'?\')) {
		window.location = \'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=mark&markas=\'+markAs+\'&folderid=\'+folderid;
	}
}

//-->
</script>
") : ("
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--

function contextForFolder() {
	return true;
}

//-->
</script>
"))',
    'upgraded' => '0',
  ),
  'error_addbookcannotremove' => 
  array (
    'templategroupid' => '7',
    'user_data' => 'You cannot remove contacts from the main address book group. If you wish to delete them permanently, please select the "Delete selected contacts" option.',
    'parsed_data' => '"You cannot remove contacts from the main address book group. If you wish to delete them permanently, please select the \\"Delete selected contacts\\" option."',
    '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',
  ),
  '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(document.forms.form, \'replyaddressee\'); }, totalChecked != 1),
<%endif%>
		new ContextItem(\'Reply to Sender\', function(){ replyForward(document.forms.form, \'reply\'); }, totalChecked != 1),
		new ContextItem(\'Reply to All\', function(){ replyForward(document.forms.form, \'replyall\'); }, totalChecked != 1),
		new ContextItem(\'Forward\', function(){ replyForward(document.forms.form, \'forward\'); }, totalChecked != 1),
		new ContextItem(\'Forward as Attachment\', function(){ replyForward(document.forms.form, \'forwardattach\'); }),
		new ContextSeperator(),
		new ContextItem(\'Mark as Read\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 2; document.forms.form.submit(); }, isNew.indexOf(\'new\') == -1 && totalChecked == 1),
		new ContextItem(\'Mark as Unread\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 3; document.forms.form.submit(); }, isNew.indexOf(\'new\') != -1 && totalChecked == 1),
		new ContextItem(\'Flag\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 4; document.forms.form.submit(); }, isFlagged == 1 && totalChecked == 1),
		new ContextItem(\'Unflag\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 5; document.forms.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?\')) { document.forms.form.cmd.value = \'delete\'; document.forms.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(document.forms.form, \'addbook\'); })
<%if $hiveuser[canrule] %>,
		new ContextItem(\'Block Sender(s)...\', function(){ actionStuff(document.forms.form, \'blocksender\'); }),
		new ContextItem(\'Block Subject(s)...\', function(){ actionStuff(document.forms.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(document.forms.form, \'replyaddressee\'); }, totalChecked != 1),
") : (\'\'))."
		new ContextItem(\'Reply to Sender\', function(){ replyForward(document.forms.form, \'reply\'); }, totalChecked != 1),
		new ContextItem(\'Reply to All\', function(){ replyForward(document.forms.form, \'replyall\'); }, totalChecked != 1),
		new ContextItem(\'Forward\', function(){ replyForward(document.forms.form, \'forward\'); }, totalChecked != 1),
		new ContextItem(\'Forward as Attachment\', function(){ replyForward(document.forms.form, \'forwardattach\'); }),
		new ContextSeperator(),
		new ContextItem(\'Mark as Read\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 2; document.forms.form.submit(); }, isNew.indexOf(\'new\') == -1 && totalChecked == 1),
		new ContextItem(\'Mark as Unread\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 3; document.forms.form.submit(); }, isNew.indexOf(\'new\') != -1 && totalChecked == 1),
		new ContextItem(\'Flag\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 4; document.forms.form.submit(); }, isFlagged == 1 && totalChecked == 1),
		new ContextItem(\'Unflag\', function(){ document.forms.form.cmd.value = \'mark\'; document.forms.form.markas.selectedIndex = 5; document.forms.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?\')) { document.forms.form.cmd.value = \'delete\'; document.forms.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(document.forms.form, \'addbook\'); })
".(($hiveuser[canrule] ) ? (",
		new ContextItem(\'Block Sender(s)...\', function(){ actionStuff(document.forms.form, \'blocksender\'); }),
		new ContextItem(\'Block Subject(s)...\', function(){ actionStuff(document.forms.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_aliases' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Aliases</title>
$css
<script type="text/javascript" src="misc/aliases.js"></script>
<script type="text/javascript">
<!--
maxAliases = $hiveuser[maxaliases];
aliasesCount = $current_count;
domainName = \'$hiveuser[domain]\';
// -->
</script>
<script type="text/javascript" language="JavaScript">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$header

<form action="options.aliases.php" method="post" onSubmit="extract_lists(this); return true;">
<input type="hidden" name="cmd" value="update" />
<input type="hidden" name="aliaslist" value="lists" />

<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>Your Aliases</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" valign="top" colspan="2"><span class="normalfont"><b>Your aliases:</b></span>
	<br />
	<span class="smallfont">Aliases allow you to receive messages sent to addresses other than your primary one ($hiveuser[username]$hiveuser[domain]). Each new alias you enter below will become yours and all messages sent to it, under any available domain, will be delivered to your account.<%if $hiveuser[maxaliases] > 0 %> (You are currently limited to $hiveuser[maxaliases] aliases.)<%endif%><br /><br />
	<table align="center" width="100%">
		<tr>
			<td valign="top" align="right" width="50%"><input type="text" value="" size="30" name="alias" class="bginput" onFocus="this.form.addalias.disabled = false;" /></td>
			<td valign="top" align="center"><input type="button" disabled="disabled" value="Add ->" name="addalias" style="width: 70px;" class="bginput" onClick="addAlias(this.form, \'alias\');" /><br />
						<br /><input type="button" disabled="disabled" value="Delete" name="deletealias" style="width: 70px;" class="bginput" onClick="deleteAlias(this.form, \'alias\');" /></td>
			<td valign="top" align="left" width="50%"><select name="new_aliases[]" id="aliases" multiple="multiple" size="7" onChange="this.form.deletealias.disabled = (this.selectedIndex <= 1);">
					<option value="$hiveuser[username]">$hiveuser[username]$hiveuser[domain]</option>
					<option value="-">-----------------------</option>
					$alias_list
				</select></td>
		</tr>
	</table>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Deliver messages multiple times:</b></span>
	<br />
	<span class="smallfont">Would you like to display the same message more than once if it is sent to more than one of your aliases? Please note that this setting will only effect new messages.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="aliasmultimails" value="1" id="aliasmultimailson" $aliasmultimailson /> <label for="aliasmultimailson">Yes</label><br /><input type="radio" name="aliasmultimails" value="0" id="aliasmultimailsoff" $aliasmultimailsoff /> <label for="aliasmultimailsoff">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="Update Aliases" />
		<input type="reset" class="bginput" name="reset" value="Reset Form" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Aliases</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" src=\\"misc/aliases.js\\"></script>
<script type=\\"text/javascript\\">
<!--
maxAliases = $hiveuser[maxaliases];
aliasesCount = $current_count;
domainName = \'$hiveuser[domain]\';
// -->
</script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$GLOBALS[header]

<form action=\\"options.aliases.php{$GLOBALS[session_url]}\\" method=\\"post\\" onSubmit=\\"extract_lists(this); return true;\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />
<input type=\\"hidden\\" name=\\"aliaslist\\" value=\\"lists\\" />

<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>Your Aliases</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" valign=\\"top\\" colspan=\\"2\\"><span class=\\"normalfont\\"><b>Your aliases:</b></span>
	<br />
	<span class=\\"smallfont\\">Aliases allow you to receive messages sent to addresses other than your primary one ($hiveuser[username]$hiveuser[domain]). Each new alias you enter below will become yours and all messages sent to it, under any available domain, will be delivered to your account.".(($hiveuser[maxaliases] > 0 ) ? (" (You are currently limited to $hiveuser[maxaliases] aliases.)") : (\'\'))."<br /><br />
	<table align=\\"center\\" width=\\"100%\\">
		<tr>
			<td valign=\\"top\\" align=\\"right\\" width=\\"50%\\"><input type=\\"text\\" value=\\"\\" size=\\"30\\" name=\\"alias\\" class=\\"bginput\\" onFocus=\\"this.form.addalias.disabled = false;\\" /></td>
			<td valign=\\"top\\" align=\\"center\\"><input type=\\"button\\" disabled=\\"disabled\\" value=\\"Add ->\\" name=\\"addalias\\" style=\\"width: 70px;\\" class=\\"bginput\\" onClick=\\"addAlias(this.form, \'alias\');\\" /><br />
						<br /><input type=\\"button\\" disabled=\\"disabled\\" value=\\"Delete\\" name=\\"deletealias\\" style=\\"width: 70px;\\" class=\\"bginput\\" onClick=\\"deleteAlias(this.form, \'alias\');\\" /></td>
			<td valign=\\"top\\" align=\\"left\\" width=\\"50%\\"><select name=\\"new_aliases[]\\" id=\\"aliases\\" multiple=\\"multiple\\" size=\\"7\\" onChange=\\"this.form.deletealias.disabled = (this.selectedIndex <= 1);\\">
					<option value=\\"$hiveuser[username]\\">$hiveuser[username]$hiveuser[domain]</option>
					<option value=\\"-\\">-----------------------</option>
					$alias_list
				</select></td>
		</tr>
	</table>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Deliver messages multiple times:</b></span>
	<br />
	<span class=\\"smallfont\\">Would you like to display the same message more than once if it is sent to more than one of your aliases? Please note that this setting will only effect new messages.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"aliasmultimails\\" value=\\"1\\" id=\\"aliasmultimailson\\" $aliasmultimailson /> <label for=\\"aliasmultimailson\\">Yes</label><br /><input type=\\"radio\\" name=\\"aliasmultimails\\" value=\\"0\\" id=\\"aliasmultimailsoff\\" $aliasmultimailsoff /> <label for=\\"aliasmultimailsoff\\">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=\\"Update Aliases\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Form\\" />
	</td>
</tr>
</table>
		</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 Options" />
		<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 Options\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

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

<form action="options.folderview.php" method="post" name="columnsform" onSubmit="extractList(this);">
<input type="hidden" name="cmd" value="update" />
<input type="hidden" name="finalusing" value="" />

<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>Folder View Options</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show message preview pane:</b></span>
	<br />
	<span class="smallfont">Use the preview pane to quickly read messages without openning them or reloading the page.</span></td>
	<td class="{classname}RightCell" width="40%">
		<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td><span class="normalfont"><input type="radio" name="preview" value="top" id="previewtop" $previewtop /> <label for="previewtop">At the top</label></span></td>
				<td><span class="normalfont">&nbsp;&nbsp;<input type="radio" name="preview" value="both" id="previewboth" $previewboth /> <label for="previewboth">Both locations</label></span></td>
			</tr>
			<tr>
				<td><span class="normalfont"><input type="radio" name="preview" value="bottom" id="previewbottom" $previewbottom /> <label for="previewbottom">At the bottom</label></span></td>
				<td><span class="normalfont">&nbsp;&nbsp;<input type="radio" name="preview" value="none" id="previewnone" $previewnone /> <label for="previewnone">Don\'t show</label></span></td>
			</tr>
		</table>
	</td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Enable background highlighting:</b></span>
	<br />
	<span class="smallfont">If this turned on selected messages will have a different background color.<br />If you are experiencing performance problems try disabling this option.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="usebghigh" value="1" id="usebghighon" $usebghighon /> <label for="usebghighon">Yes</label><br /><input type="radio" name="usebghigh" value="0" id="usebghighoff" $usebghighoff /> <label for="usebghighoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show folder list on left:</b></span>
	<br />
	<span class="smallfont">Use the folders tab to quickly navigate through your folders.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="showfoldertab" value="1" id="showfoldertabon" $showfoldertabon /> <label for="showfoldertabon">Yes</label><br /><input type="radio" name="showfoldertab" value="0" id="showfoldertaboff" $showfoldertaboff /> <label for="showfoldertaboff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Display statistics box:</b></span>
	<br />
	<span class="smallfont">This table lets you know how many unread messages you have, and where, as well your storage usage.<br />Note: When you reach $minpercentforgauge% the space gauge will be displayed even if this option is turned off.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="showtopbox" value="1" id="showtopboxon" $showtopboxon /> <label for="showtopboxon">Yes</label><br /><input type="radio" name="showtopbox" value="0" id="showtopboxoff" $showtopboxoff /> <label for="showtopboxoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Page refresh rate:</b></span>
	<br />
	<span class="smallfont">If not set to 0, the page will reload itself according to this setting.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="text" class="bginput" name="autorefresh" value="$hiveuser[autorefresh]" size="4" /> seconds</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Mark messages as read after:</b></span>
	<br />
	<span class="smallfont">If not set to 0, messages will be automatically marked read when they are previewed.<br />Note: Requires the preview pane to be enabled as well as a browser with cookie support.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="text" class="bginput" name="markread" value="$hiveuser[markread]" size="4" /> seconds</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Messages per page:</b></span>
	<br />
	<span class="smallfont">The number of messages to show per page.<br />You cannot set this to a value higher than $maxperpage.<br />It is not advisable to set this number too high, for performance reasons.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="perpage" value="$hiveuser[perpage]" size="4" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>New message to sender:</b></span>
	<br />
	<span class="smallfont">Clicking a sender name creates a new message to the sender.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="senderlink" value="1" id="senderlinkon" $senderlinkon /> <label for="senderlinkon">Yes</label><br /><input type="radio" name="senderlink" value="0" id="senderlinkoff" $senderlinkoff /> <label for="senderlinkoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Message columns:</b></span>
	<br />
	<span class="smallfont">These are the columns that show up when viewing the list of messages.<br />At least one column must be selected.</span></td>
	<td class="{classname}RightCell" width="40%">
		<table cellpadding="5">
			<tr>
				<td>
					<select name="avail" style="width: 100px;" multiple="multiple" size="6" onChange="updateDisabled(this.form);">
					$avail
					</select>
				</td>
				<td valign="middle">
					<input type="button" style="width: 75px;" value="Add" onClick="addCol(this.form);" class="bginput" name="add" disabled="disabled" /><br />
					<input type="button" style="width: 75px;" value="Remove" onClick="delCol(this.form);" class="bginput" name="del" disabled="disabled" />
				</td>
				<td>
					<select name="using[]" id="using" style="width: 100px;" multiple="multiple" size="6" onChange="updateDisabled(this.form);">
					$using
					</select>
				</td>
				<td valign="middle">
					<input type="button" style="width: 85px;" value="Move Up" onClick="goUp(this.form);" class="bginput" name="up" disabled="disabled" /><br />
					<input type="button" style="width: 85px;" value="Move Down" onClick="goDown(this.form);" class="bginput" name="down" disabled="disabled" />
				</td>
			</tr>
		</table>
	</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 Options" />
		<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: Folder View Options</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" src=\\"misc/columns.js\\"></script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$GLOBALS[header]

<form action=\\"options.folderview.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"columnsform\\" onSubmit=\\"extractList(this);\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />
<input type=\\"hidden\\" name=\\"finalusing\\" value=\\"\\" />

<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>Folder View Options</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show message preview pane:</b></span>
	<br />
	<span class=\\"smallfont\\">Use the preview pane to quickly read messages without openning them or reloading the page.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<table cellpadding=\\"0\\" cellspacing=\\"0\\" border=\\"0\\">
			<tr>
				<td><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"preview\\" value=\\"top\\" id=\\"previewtop\\" $previewtop /> <label for=\\"previewtop\\">At the top</label></span></td>
				<td><span class=\\"normalfont\\">&nbsp;&nbsp;<input type=\\"radio\\" name=\\"preview\\" value=\\"both\\" id=\\"previewboth\\" $previewboth /> <label for=\\"previewboth\\">Both locations</label></span></td>
			</tr>
			<tr>
				<td><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"preview\\" value=\\"bottom\\" id=\\"previewbottom\\" $previewbottom /> <label for=\\"previewbottom\\">At the bottom</label></span></td>
				<td><span class=\\"normalfont\\">&nbsp;&nbsp;<input type=\\"radio\\" name=\\"preview\\" value=\\"none\\" id=\\"previewnone\\" $previewnone /> <label for=\\"previewnone\\">Don\'t show</label></span></td>
			</tr>
		</table>
	</td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Enable background highlighting:</b></span>
	<br />
	<span class=\\"smallfont\\">If this turned on selected messages will have a different background color.<br />If you are experiencing performance problems try disabling this option.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"usebghigh\\" value=\\"1\\" id=\\"usebghighon\\" $usebghighon /> <label for=\\"usebghighon\\">Yes</label><br /><input type=\\"radio\\" name=\\"usebghigh\\" value=\\"0\\" id=\\"usebghighoff\\" $usebghighoff /> <label for=\\"usebghighoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show folder list on left:</b></span>
	<br />
	<span class=\\"smallfont\\">Use the folders tab to quickly navigate through your folders.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"showfoldertab\\" value=\\"1\\" id=\\"showfoldertabon\\" $showfoldertabon /> <label for=\\"showfoldertabon\\">Yes</label><br /><input type=\\"radio\\" name=\\"showfoldertab\\" value=\\"0\\" id=\\"showfoldertaboff\\" $showfoldertaboff /> <label for=\\"showfoldertaboff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Display statistics box:</b></span>
	<br />
	<span class=\\"smallfont\\">This table lets you know how many unread messages you have, and where, as well your storage usage.<br />Note: When you reach $minpercentforgauge% the space gauge will be displayed even if this option is turned off.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"showtopbox\\" value=\\"1\\" id=\\"showtopboxon\\" $showtopboxon /> <label for=\\"showtopboxon\\">Yes</label><br /><input type=\\"radio\\" name=\\"showtopbox\\" value=\\"0\\" id=\\"showtopboxoff\\" $showtopboxoff /> <label for=\\"showtopboxoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Page refresh rate:</b></span>
	<br />
	<span class=\\"smallfont\\">If not set to 0, the page will reload itself according to this setting.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"autorefresh\\" value=\\"$hiveuser[autorefresh]\\" size=\\"4\\" /> seconds</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Mark messages as read after:</b></span>
	<br />
	<span class=\\"smallfont\\">If not set to 0, messages will be automatically marked read when they are previewed.<br />Note: Requires the preview pane to be enabled as well as a browser with cookie support.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"markread\\" value=\\"$hiveuser[markread]\\" size=\\"4\\" /> seconds</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Messages per page:</b></span>
	<br />
	<span class=\\"smallfont\\">The number of messages to show per page.<br />You cannot set this to a value higher than $maxperpage.<br />It is not advisable to set this number too high, for performance reasons.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"perpage\\" value=\\"$hiveuser[perpage]\\" size=\\"4\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>New message to sender:</b></span>
	<br />
	<span class=\\"smallfont\\">Clicking a sender name creates a new message to the sender.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"senderlink\\" value=\\"1\\" id=\\"senderlinkon\\" $senderlinkon /> <label for=\\"senderlinkon\\">Yes</label><br /><input type=\\"radio\\" name=\\"senderlink\\" value=\\"0\\" id=\\"senderlinkoff\\" $senderlinkoff /> <label for=\\"senderlinkoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Message columns:</b></span>
	<br />
	<span class=\\"smallfont\\">These are the columns that show up when viewing the list of messages.<br />At least one column must be selected.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<table cellpadding=\\"5\\">
			<tr>
				<td>
					<select name=\\"avail\\" style=\\"width: 100px;\\" multiple=\\"multiple\\" size=\\"6\\" onChange=\\"updateDisabled(this.form);\\">
					$avail
					</select>
				</td>
				<td valign=\\"middle\\">
					<input type=\\"button\\" style=\\"width: 75px;\\" value=\\"Add\\" onClick=\\"addCol(this.form);\\" class=\\"bginput\\" name=\\"add\\" disabled=\\"disabled\\" /><br />
					<input type=\\"button\\" style=\\"width: 75px;\\" value=\\"Remove\\" onClick=\\"delCol(this.form);\\" class=\\"bginput\\" name=\\"del\\" disabled=\\"disabled\\" />
				</td>
				<td>
					<select name=\\"using[]\\" id=\\"using\\" style=\\"width: 100px;\\" multiple=\\"multiple\\" size=\\"6\\" onChange=\\"updateDisabled(this.form);\\">
					$using
					</select>
				</td>
				<td valign=\\"middle\\">
					<input type=\\"button\\" style=\\"width: 85px;\\" value=\\"Move Up\\" onClick=\\"goUp(this.form);\\" class=\\"bginput\\" name=\\"up\\" disabled=\\"disabled\\" /><br />
					<input type=\\"button\\" style=\\"width: 85px;\\" value=\\"Move Down\\" onClick=\\"goDown(this.form);\\" class=\\"bginput\\" name=\\"down\\" disabled=\\"disabled\\" />
				</td>
			</tr>
		</table>
	</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 Options\\" />
		<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" />
<input type="hidden" name="nosoundrow" value="$nosoundrow" />

<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>
<%if $nosoundrow != 1 %>
<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" /><input type="hidden" name="MAX_FILE_SIZE" value="$maxsoundfile" />
	</span></td>
</tr>
<%endif%>
<%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 Options" />
		<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\\" />
<input type=\\"hidden\\" name=\\"nosoundrow\\" value=\\"$nosoundrow\\" />

<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>
".(($nosoundrow != 1 ) ? ("
<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\\" /><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 Options\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

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

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

<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="650">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Password</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>New password:</b></span></td>
	<td class="{classname}RightCell" width="40%"><input type="password" class="bginput" name="password" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Retype new password:</b></span>
	<br />
	<span class="smallfont">Repeat the password to verify it\'s correct.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="password" class="bginput" name="password_repeat" size="40" /></td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="650">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="pass" value="Save Password" onClick="if (form.password.value != form.password_repeat.value) { alert(\'The new passwords do not match. Please retype them and submit the form again.\'); return false; } else if (form.password.value.length == 0) { alert(\'Your password cannot be empty.\'); return false; } else { return true; }" />
	</td>
</tr>
</table>

</form>

<!-- +++++++++++++++++++++++++++++++++++++ --><br />

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

<table cellpadding="4" cellspacing="0" class="normalTable" width="650">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Secret Question and Answer</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Secret question:</b></span><br /><span class="smallfont">If you ever forget your password, you will be asked to answer this question in order to get a new one.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="question" value="$hiveuser[question]" size="40" /><br />
		<select name="question_options" style="width: 100%;" onChange="if (this.options[this.selectedIndex].value != \'-1\') form.question.value = this.options[this.selectedIndex].text;">
			<option value="-1">(Or choose a question from below)</option>
			<option>Your mother\'s Maiden name?</option>
			<option>Your pet\'s name?</option>
			<option>City of birth?</option>
			<option>Last 4 digits of social security number?</option>
		</select>
	</td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Secret answer:</b></span></td>
	<td class="{classname}RightCell" width="40%"><input type="password" class="bginput" name="answer" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Retype secret answer:</b></span><br /><span class="smallfont">Repeat the secret answer to verify it\'s correct.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="password" class="bginput" name="answer_repeat" size="40" /></td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="650">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="ques" value="Save Secret Question and Answer" onClick="if (form.answer.value != form.answer_repeat.value) { alert(\'The new answers do not match. Please retype them and submit the form again.\'); return false; } else if (form.answer.value.length == 0) { alert(\'Your secret answer cannot be empty.\'); return false; } else if (form.question.value.length == 0) { alert(\'Your secret question cannot be empty.\'); return false; } else { return true; }" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

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

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

<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=\\"650\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Password</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>New password:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"password\\" class=\\"bginput\\" name=\\"password\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Retype new password:</b></span>
	<br />
	<span class=\\"smallfont\\">Repeat the password to verify it\'s correct.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"password\\" class=\\"bginput\\" name=\\"password_repeat\\" size=\\"40\\" /></td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"650\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"pass\\" value=\\"Save Password\\" onClick=\\"if (form.password.value != form.password_repeat.value) { alert(\'The new passwords do not match. Please retype them and submit the form again.\'); return false; } else if (form.password.value.length == 0) { alert(\'Your password cannot be empty.\'); return false; } else { return true; }\\" />
	</td>
</tr>
</table>

</form>

<!-- +++++++++++++++++++++++++++++++++++++ --><br />

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

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"650\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Secret Question and Answer</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Secret question:</b></span><br /><span class=\\"smallfont\\">If you ever forget your password, you will be asked to answer this question in order to get a new one.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"question\\" value=\\"$hiveuser[question]\\" size=\\"40\\" /><br />
		<select name=\\"question_options\\" style=\\"width: 100%;\\" onChange=\\"if (this.options[this.selectedIndex].value != \'-1\') form.question.value = this.options[this.selectedIndex].text;\\">
			<option value=\\"-1\\">(Or choose a question from below)</option>
			<option>Your mother\'s Maiden name?</option>
			<option>Your pet\'s name?</option>
			<option>City of birth?</option>
			<option>Last 4 digits of social security number?</option>
		</select>
	</td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Secret answer:</b></span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"password\\" class=\\"bginput\\" name=\\"answer\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Retype secret answer:</b></span><br /><span class=\\"smallfont\\">Repeat the secret answer to verify it\'s correct.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"password\\" class=\\"bginput\\" name=\\"answer_repeat\\" size=\\"40\\" /></td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"650\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"ques\\" value=\\"Save Secret Question and Answer\\" onClick=\\"if (form.answer.value != form.answer_repeat.value) { alert(\'The new answers do not match. Please retype them and submit the form again.\'); return false; } else if (form.answer.value.length == 0) { alert(\'Your secret answer cannot be empty.\'); return false; } else if (form.question.value.length == 0) { alert(\'Your secret question cannot be empty.\'); return false; } else { return true; }\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

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

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

<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="500">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Verification</b></span></th>
</tr>
<tr class="highRow">
	<td class="highLeftCell" valign="top"><span class="normalfont"><b>Current password:</b></span><br /><span class="smallfont">Please enter your current account<br />password, for security purposes.</span></td>
	<td class="highRightCell"><span class="normalfont"><input type="password" class="bginput" name="currentpass" size="30" /></td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="500">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="submit" value=" Proceed " />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

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

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

<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=\\"500\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Verification</b></span></th>
</tr>
<tr class=\\"highRow\\">
	<td class=\\"highLeftCell\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Current password:</b></span><br /><span class=\\"smallfont\\">Please enter your current account<br />password, for security purposes.</span></td>
	<td class=\\"highRightCell\\"><span class=\\"normalfont\\"><input type=\\"password\\" class=\\"bginput\\" name=\\"currentpass\\" size=\\"30\\" /></td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"500\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\" Proceed \\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_personal' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Personal Information</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.personal.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>Personal Information</b></span> <span class="smallfonttablehead">(* indicates a required field)</span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Your name:</b></span> <span class="important">*</span>
	<br />
	<span class="smallfont">This name will be sent with all your outgoing emails.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="realname" value="$hiveuser[realname]" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Secondary email address:</b></span><%if $requirealt %> <span class="important">*</span><%endif%>
	<br />
	<span class="smallfont">This address will be used to contact you outside of this system.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="altemail" value="$hiveuser[altemail]" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Birthday:</b></span><br /><span class="smallfont">Optional.</span></td>
	<td class="{classname}RightCell" width="40%"><select name="month">
			<option value="0" $monthsel[0]>Month</option>
			<option value="1" $monthsel[1]>$skin[cal_jan_long]</option>
			<option value="2" $monthsel[2]>$skin[cal_feb_long]</option>
			<option value="3" $monthsel[3]>$skin[cal_mar_long]</option>
			<option value="4" $monthsel[4]>$skin[cal_apr_long]</option>
			<option value="5" $monthsel[5]>$skin[cal_may_long]</option>
			<option value="6" $monthsel[6]>$skin[cal_jun_long]</option>
			<option value="7" $monthsel[7]>$skin[cal_jul_long]</option>
			<option value="8" $monthsel[8]>$skin[cal_aug_long]</option>
			<option value="9" $monthsel[9]>$skin[cal_sep_long]</option>
			<option value="10" $monthsel[10]>$skin[cal_oct_long]</option>
			<option value="11" $monthsel[11]>$skin[cal_nov_long]</option>
			<option value="12" $monthsel[12]>$skin[cal_dec_long]</option>
		</select>
		<select name="day">
			<option value="0" $daysel[0]>Day</option>
			<option value="1" $daysel[1]>1</option>
			<option value="2" $daysel[2]>2</option>
			<option value="3" $daysel[3]>3</option>
			<option value="4" $daysel[4]>4</option>
			<option value="5" $daysel[5]>5</option>
			<option value="6" $daysel[6]>6</option>
			<option value="7" $daysel[7]>7</option>
			<option value="8" $daysel[8]>8</option>
			<option value="9" $daysel[9]>9</option>
			<option value="10" $daysel[10]>10</option>
			<option value="11" $daysel[11]>11</option>
			<option value="12" $daysel[12]>12</option>
			<option value="13" $daysel[13]>13</option>
			<option value="14" $daysel[14]>14</option>
			<option value="15" $daysel[15]>15</option>
			<option value="16" $daysel[16]>16</option>
			<option value="17" $daysel[17]>17</option>
			<option value="18" $daysel[18]>18</option>
			<option value="19" $daysel[19]>19</option>
			<option value="20" $daysel[20]>20</option>
			<option value="21" $daysel[21]>21</option>
			<option value="22" $daysel[22]>22</option>
			<option value="23" $daysel[23]>23</option>
			<option value="24" $daysel[24]>24</option>
			<option value="25" $daysel[25]>25</option>
			<option value="26" $daysel[26]>26</option>
			<option value="27" $daysel[27]>27</option>
			<option value="28" $daysel[28]>28</option>
			<option value="29" $daysel[29]>29</option>
			<option value="30" $daysel[30]>30</option>
			<option value="31" $daysel[31]>31</option>
		</select>
		<input type="text" class="bginput" name="year" value="$hiveuser[year]" size="4" maxlength="4"></td>
</tr>
$custom_fields
<!-- +++++++++++++++++++++++++++++++++++++ -->
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Time and Location</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Time zone:</b></span><br /><span class="smallfont">Please select the correct time zone from the list.</span></td>
	<td class="{classname}RightCell" width="40%">$timezone</td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Auto-detect Daylight Saving Time:</b></span><br /><span class="smallfont">If this is enabled, the system will automatically try to adjust the<br />time offset if Daylight Saving Time (DST) is in effect.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="fixdst" value="1" id="fixdston" $fixdston /> <label for="fixdston">Yes</label><br /><input type="radio" name="fixdst" value="0" id="fixdstoff" $fixdstoff /> <label for="fixdstoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Country:</b></span><br /><span class="smallfont">Optional.</span></td>
	<td class="{classname}RightCell" width="40%"><select name="country" onChange="if (this.options[this.selectedIndex].value != \'us\') this.form.state.selectedIndex = 0;">
		$countries
	</select></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>State:</b></span><br /><span class="smallfont">Optional.</span></td>
	<td class="{classname}RightCell" width="40%"><select name="state">
		$states
	</select></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Zip code:</b></span><br /><span class="smallfont">Optional.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="zip" value="$hiveuser[zip]" size="7" maxlength="7" /></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 Changes" />
		<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: Personal Information</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.personal.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>Personal Information</b></span> <span class=\\"smallfonttablehead\\">(* indicates a required field)</span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Your name:</b></span> <span class=\\"important\\">*</span>
	<br />
	<span class=\\"smallfont\\">This name will be sent with all your outgoing emails.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"realname\\" value=\\"$hiveuser[realname]\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Secondary email address:</b></span>".(($requirealt ) ? (" <span class=\\"important\\">*</span>") : (\'\'))."
	<br />
	<span class=\\"smallfont\\">This address will be used to contact you outside of this system.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"altemail\\" value=\\"$hiveuser[altemail]\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Birthday:</b></span><br /><span class=\\"smallfont\\">Optional.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><select name=\\"month\\">
			<option value=\\"0\\" $monthsel[0]>Month</option>
			<option value=\\"1\\" $monthsel[1]>{$GLOBALS[skin][cal_jan_long]}</option>
			<option value=\\"2\\" $monthsel[2]>{$GLOBALS[skin][cal_feb_long]}</option>
			<option value=\\"3\\" $monthsel[3]>{$GLOBALS[skin][cal_mar_long]}</option>
			<option value=\\"4\\" $monthsel[4]>{$GLOBALS[skin][cal_apr_long]}</option>
			<option value=\\"5\\" $monthsel[5]>{$GLOBALS[skin][cal_may_long]}</option>
			<option value=\\"6\\" $monthsel[6]>{$GLOBALS[skin][cal_jun_long]}</option>
			<option value=\\"7\\" $monthsel[7]>{$GLOBALS[skin][cal_jul_long]}</option>
			<option value=\\"8\\" $monthsel[8]>{$GLOBALS[skin][cal_aug_long]}</option>
			<option value=\\"9\\" $monthsel[9]>{$GLOBALS[skin][cal_sep_long]}</option>
			<option value=\\"10\\" $monthsel[10]>{$GLOBALS[skin][cal_oct_long]}</option>
			<option value=\\"11\\" $monthsel[11]>{$GLOBALS[skin][cal_nov_long]}</option>
			<option value=\\"12\\" $monthsel[12]>{$GLOBALS[skin][cal_dec_long]}</option>
		</select>
		<select name=\\"day\\">
			<option value=\\"0\\" $daysel[0]>Day</option>
			<option value=\\"1\\" $daysel[1]>1</option>
			<option value=\\"2\\" $daysel[2]>2</option>
			<option value=\\"3\\" $daysel[3]>3</option>
			<option value=\\"4\\" $daysel[4]>4</option>
			<option value=\\"5\\" $daysel[5]>5</option>
			<option value=\\"6\\" $daysel[6]>6</option>
			<option value=\\"7\\" $daysel[7]>7</option>
			<option value=\\"8\\" $daysel[8]>8</option>
			<option value=\\"9\\" $daysel[9]>9</option>
			<option value=\\"10\\" $daysel[10]>10</option>
			<option value=\\"11\\" $daysel[11]>11</option>
			<option value=\\"12\\" $daysel[12]>12</option>
			<option value=\\"13\\" $daysel[13]>13</option>
			<option value=\\"14\\" $daysel[14]>14</option>
			<option value=\\"15\\" $daysel[15]>15</option>
			<option value=\\"16\\" $daysel[16]>16</option>
			<option value=\\"17\\" $daysel[17]>17</option>
			<option value=\\"18\\" $daysel[18]>18</option>
			<option value=\\"19\\" $daysel[19]>19</option>
			<option value=\\"20\\" $daysel[20]>20</option>
			<option value=\\"21\\" $daysel[21]>21</option>
			<option value=\\"22\\" $daysel[22]>22</option>
			<option value=\\"23\\" $daysel[23]>23</option>
			<option value=\\"24\\" $daysel[24]>24</option>
			<option value=\\"25\\" $daysel[25]>25</option>
			<option value=\\"26\\" $daysel[26]>26</option>
			<option value=\\"27\\" $daysel[27]>27</option>
			<option value=\\"28\\" $daysel[28]>28</option>
			<option value=\\"29\\" $daysel[29]>29</option>
			<option value=\\"30\\" $daysel[30]>30</option>
			<option value=\\"31\\" $daysel[31]>31</option>
		</select>
		<input type=\\"text\\" class=\\"bginput\\" name=\\"year\\" value=\\"$hiveuser[year]\\" size=\\"4\\" maxlength=\\"4\\"></td>
</tr>
$custom_fields
<!-- +++++++++++++++++++++++++++++++++++++ -->
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Time and Location</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Time zone:</b></span><br /><span class=\\"smallfont\\">Please select the correct time zone from the list.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">$timezone</td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Auto-detect Daylight Saving Time:</b></span><br /><span class=\\"smallfont\\">If this is enabled, the system will automatically try to adjust the<br />time offset if Daylight Saving Time (DST) is in effect.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"fixdst\\" value=\\"1\\" id=\\"fixdston\\" $fixdston /> <label for=\\"fixdston\\">Yes</label><br /><input type=\\"radio\\" name=\\"fixdst\\" value=\\"0\\" id=\\"fixdstoff\\" $fixdstoff /> <label for=\\"fixdstoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Country:</b></span><br /><span class=\\"smallfont\\">Optional.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><select name=\\"country\\" onChange=\\"if (this.options[this.selectedIndex].value != \'us\') this.form.state.selectedIndex = 0;\\">
		$countries
	</select></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>State:</b></span><br /><span class=\\"smallfont\\">Optional.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><select name=\\"state\\">
		$states
	</select></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Zip code:</b></span><br /><span class=\\"smallfont\\">Optional.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"zip\\" value=\\"$hiveuser[zip]\\" size=\\"7\\" maxlength=\\"7\\" /></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 Changes\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_read' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Reading 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.read.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>Reading Options</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show HTML message:</b></span>
	<br />
	<span class="smallfont">Turn this on if you\'d like to see the HTML version of a message if it is available.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="showhtml" value="1" id="showhtmlon" $showhtmlon /> <label for="showhtmlon">Yes</label><br /><input type="radio" name="showhtml" value="0" id="showhtmloff" $showhtmloff /> <label for="showhtmloff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show advanced headers:</b></span>
	<br />
	<span class="smallfont">If enabled, complete MIME headers an email contains will be displayed when viewing the message.<br />Otherwise, only the basic (sender, recipients, subject and date) headers will be shown.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="showallheaders" value="1" id="showallheaderson" $showallheaderson /> <label for="showallheaderson">Yes</label><br /><input type="radio" name="showallheaders" value="0" id="showallheadersoff" $showallheadersoff /> <label for="showallheadersoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Returning read receipts:</b></span>
	<br />
	<span class="smallfont">How should read receipt requests be treated?</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont">
	<input type="radio" name="sendread" value="0" id="sendreadno" $sendreadno /> <label for="sendreadno">Never send a read receipt</label><br />
	<input type="radio" name="sendread" value="1" id="sendreadask" $sendreadask /> <label for="sendreadask">Notify me for each read receipt request</label><br />
	<input type="radio" name="sendread" value="2" id="sendreadalways" $sendreadalways /> <label for="sendreadalways">Always send a read receipt</label>
	</span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Attachments open in new window:</b></span>
	<br />
	<span class="smallfont">Do you wish for a new window to open for each attachment?</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="attachwin" value="1" id="attachwinon" $attachwinon /> <label for="attachwinon">Yes</label><br /><input type="radio" name="attachwin" value="0" id="attachwinoff" $attachwinoff /> <label for="attachwinoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Displayed attached images below the message:</b></span>
	<br />
	<span class="smallfont">Images that are attached to the message you are reading will be automatically displayed below the message when reading it.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="showimginmsg" value="1" id="showimginmsgon" $showimginmsgon /> <label for="showimginmsgon">Yes</label><br /><input type="radio" name="showimginmsg" value="0" id="showimginmsgoff" $showimginmsgoff /> <label for="showimginmsgoff">No</label></span></td>
</tr>
<%if getop(\'allowcid\')%>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Show inline attachments:</b></span>
	<br />
	<span class="smallfont">If enabled, inline attachments (such as embedded images) will appear in the attachments aswell as in the message body.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="showinline" value="1" id="showinlineon" $showinlineon /> <label for="showinlineon">Yes</label><br /><input type="radio" name="showinline" value="0" id="showinlineoff" $showinlineoff /> <label for="showinlineoff">No</label></span></td>
</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 Options" />
		<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: Reading 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.read.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>Reading Options</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show HTML message:</b></span>
	<br />
	<span class=\\"smallfont\\">Turn this on if you\'d like to see the HTML version of a message if it is available.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"showhtml\\" value=\\"1\\" id=\\"showhtmlon\\" $showhtmlon /> <label for=\\"showhtmlon\\">Yes</label><br /><input type=\\"radio\\" name=\\"showhtml\\" value=\\"0\\" id=\\"showhtmloff\\" $showhtmloff /> <label for=\\"showhtmloff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show advanced headers:</b></span>
	<br />
	<span class=\\"smallfont\\">If enabled, complete MIME headers an email contains will be displayed when viewing the message.<br />Otherwise, only the basic (sender, recipients, subject and date) headers will be shown.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"showallheaders\\" value=\\"1\\" id=\\"showallheaderson\\" $showallheaderson /> <label for=\\"showallheaderson\\">Yes</label><br /><input type=\\"radio\\" name=\\"showallheaders\\" value=\\"0\\" id=\\"showallheadersoff\\" $showallheadersoff /> <label for=\\"showallheadersoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Returning read receipts:</b></span>
	<br />
	<span class=\\"smallfont\\">How should read receipt requests be treated?</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\">
	<input type=\\"radio\\" name=\\"sendread\\" value=\\"0\\" id=\\"sendreadno\\" $sendreadno /> <label for=\\"sendreadno\\">Never send a read receipt</label><br />
	<input type=\\"radio\\" name=\\"sendread\\" value=\\"1\\" id=\\"sendreadask\\" $sendreadask /> <label for=\\"sendreadask\\">Notify me for each read receipt request</label><br />
	<input type=\\"radio\\" name=\\"sendread\\" value=\\"2\\" id=\\"sendreadalways\\" $sendreadalways /> <label for=\\"sendreadalways\\">Always send a read receipt</label>
	</span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Attachments open in new window:</b></span>
	<br />
	<span class=\\"smallfont\\">Do you wish for a new window to open for each attachment?</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"attachwin\\" value=\\"1\\" id=\\"attachwinon\\" $attachwinon /> <label for=\\"attachwinon\\">Yes</label><br /><input type=\\"radio\\" name=\\"attachwin\\" value=\\"0\\" id=\\"attachwinoff\\" $attachwinoff /> <label for=\\"attachwinoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Displayed attached images below the message:</b></span>
	<br />
	<span class=\\"smallfont\\">Images that are attached to the message you are reading will be automatically displayed below the message when reading it.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"showimginmsg\\" value=\\"1\\" id=\\"showimginmsgon\\" $showimginmsgon /> <label for=\\"showimginmsgon\\">Yes</label><br /><input type=\\"radio\\" name=\\"showimginmsg\\" value=\\"0\\" id=\\"showimginmsgoff\\" $showimginmsgoff /> <label for=\\"showimginmsgoff\\">No</label></span></td>
</tr>
".((getop(\'allowcid\')) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Show inline attachments:</b></span>
	<br />
	<span class=\\"smallfont\\">If enabled, inline attachments (such as embedded images) will appear in the attachments aswell as in the message body.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"showinline\\" value=\\"1\\" id=\\"showinlineon\\" $showinlineon /> <label for=\\"showinlineon\\">Yes</label><br /><input type=\\"radio\\" name=\\"showinline\\" value=\\"0\\" id=\\"showinlineoff\\" $showinlineoff /> <label for=\\"showinlineoff\\">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 Options\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'pop' => 
  array (
    'templategroupid' => '15',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: POP Accounts</title>
$css
<script type="text/javascript" language="JavaScript">
<!--

function popProps(popID) {
     var hWnd = window.open("pop.list.php?cmd=popup&popid="+popID, "POP3Props", "width=520,height=385,resizable=yes,scrollbars=yes");
     if ((document.window != null) && (!hWnd.opener)) {
          hWnd.opener = document.window;
	 }
}

function popNew() {
     var hWnd = window.open("pop.add.php?cmd=step1", "newPOP3", "width=520,height=295,resizable=yes,scrollbars=no");
     if ((document.window != null) && (!hWnd.opener)) {
          hWnd.opener = document.window;
	 }
}

// -->
</script>
<script type="text/javascript" language="JavaScript">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$header

<form action="pop.update.php" method="post" name="form">
<input type="hidden" name="cmd" value="updateall" />
<input type="hidden" name="origpass" value="$origpass" />

<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 width="730" cellpadding="7">
	<tr>
		<td colspan="2" style="padding: 0px 12px 4px 12px;">
<%if $hiveuser[\'canhivepop\'] %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Internal POP3 Account</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" valign="top" colspan="2"><span class="normalfont"><b>Connection instructions:</b>
	<br />
	<span class="smallfont">When setting up your POP3 account on another client, set the server address to </span><b>$hivepop_serveraddr</b><span class="smallfont"> and the server port to </span><b>$hivepop_serverport</b><span class="smallfont"> (this can usually be found in the advanced settings). Your username is </span><b>$hiveuser[username]</b><span class="smallfont"> and the password is same as your online account.</span></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Where to store messages:</b></span>
	<br />
	<span class="smallfont">You can choose to store incoming messages in the online account or in the POP3 account. <%if getop(\'hivepop_allowdupe\') %>It is also possible to store messages at both locations, so you can read them wherever you wish.<%endif%></span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="savetopop" value="0" id="savetopopnosave" $savetopopnosave /> <label for="savetopopnosave">Online account only</label><br /><input type="radio" name="savetopop" value="1" id="savetopoponly" $savetopoponly /> <label for="savetopoponly">POP3 account only</label><%if getop(\'hivepop_allowdupe\') %><br /><input type="radio" name="savetopop" value="2" id="savetopopboth" $savetopopboth /> <label for="savetopopboth">Both online and POP3 accounts</label><%endif%></span></td>
</tr>
<%if getop(\'hivepop_allowdupe\') %>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Synchronize account with online mailbox:</b></span>
	<br />
	<span class="smallfont">If you turn this on, any messages that are deleted from the online account will also be removed from the POP3 account, if you chose to store messages at both locations.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="synchivepop" value="1" id="synchivepopon" $synchivepopon /><label for="synchivepopon">Yes<label><br /><input type="radio" name="synchivepop" value="0" id="synchivepopoff" $synchivepopoff /><label for="synchivepopoff">No<label></span></td>
</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 Options" />
		<input type="reset" class="bginput" name="reset" value="Reset Fields" />
	</td>
</tr>
</table>

<br />
<%endif%>

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
			<tr class="headerRow">
				<th class="headerBothCell"><span class="normalfonttablehead">External POP3 Accounts</span></th>
			</tr>
			<tr>
				<td class="highBothCell" align="left"><span class="normalfont"><%if !empty($popbits) %>Please note that for security reasons the account passwords are not displayed on this page.<%else%>You currently have no external POP3 accounts set up. To create a new one, please click on the button below.<%endif%></span></td>
			</tr>
		</table></td>
	</tr>
	$popbits
	<tr>
		<td style="padding-top: 16px;" colspan="2" align="center"><input type="button" class="bginput" name="create" value="Add New Account" onClick="popNew();" /><%if !empty($popbits) %>&nbsp;&nbsp;<input type="submit" class="bginput" name="submit" value="Save Changes" />&nbsp;&nbsp;<input type="reset" class="bginput" name="reset" value="Reset All Fields" /><%endif%></td>
	</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

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

function popProps(popID) {
     var hWnd = window.open(\\"pop.list.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=popup&popid=\\"+popID, \\"POP3Props\\", \\"width=520,height=385,resizable=yes,scrollbars=yes\\");
     if ((document.window != null) && (!hWnd.opener)) {
          hWnd.opener = document.window;
	 }
}

function popNew() {
     var hWnd = window.open(\\"pop.add.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=step1\\", \\"newPOP3\\", \\"width=520,height=295,resizable=yes,scrollbars=no\\");
     if ((document.window != null) && (!hWnd.opener)) {
          hWnd.opener = document.window;
	 }
}

// -->
</script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$GLOBALS[header]

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

<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 width=\\"730\\" cellpadding=\\"7\\">
	<tr>
		<td colspan=\\"2\\" style=\\"padding: 0px 12px 4px 12px;\\">
".(($hiveuser[\'canhivepop\'] ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Internal POP3 Account</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" valign=\\"top\\" colspan=\\"2\\"><span class=\\"normalfont\\"><b>Connection instructions:</b>
	<br />
	<span class=\\"smallfont\\">When setting up your POP3 account on another client, set the server address to </span><b>$hivepop_serveraddr</b><span class=\\"smallfont\\"> and the server port to </span><b>$hivepop_serverport</b><span class=\\"smallfont\\"> (this can usually be found in the advanced settings). Your username is </span><b>$hiveuser[username]</b><span class=\\"smallfont\\"> and the password is same as your online account.</span></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Where to store messages:</b></span>
	<br />
	<span class=\\"smallfont\\">You can choose to store incoming messages in the online account or in the POP3 account. ".((getop(\'hivepop_allowdupe\') ) ? ("It is also possible to store messages at both locations, so you can read them wherever you wish.") : (\'\'))."</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"savetopop\\" value=\\"0\\" id=\\"savetopopnosave\\" $savetopopnosave /> <label for=\\"savetopopnosave\\">Online account only</label><br /><input type=\\"radio\\" name=\\"savetopop\\" value=\\"1\\" id=\\"savetopoponly\\" $savetopoponly /> <label for=\\"savetopoponly\\">POP3 account only</label>".((getop(\'hivepop_allowdupe\') ) ? ("<br /><input type=\\"radio\\" name=\\"savetopop\\" value=\\"2\\" id=\\"savetopopboth\\" $savetopopboth /> <label for=\\"savetopopboth\\">Both online and POP3 accounts</label>") : (\'\'))."</span></td>
</tr>
".((getop(\'hivepop_allowdupe\') ) ? ("
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Synchronize account with online mailbox:</b></span>
	<br />
	<span class=\\"smallfont\\">If you turn this on, any messages that are deleted from the online account will also be removed from the POP3 account, if you chose to store messages at both locations.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"synchivepop\\" value=\\"1\\" id=\\"synchivepopon\\" $synchivepopon /><label for=\\"synchivepopon\\">Yes<label><br /><input type=\\"radio\\" name=\\"synchivepop\\" value=\\"0\\" id=\\"synchivepopoff\\" $synchivepopoff /><label for=\\"synchivepopoff\\">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 Options\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" />
	</td>
</tr>
</table>

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

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
			<tr class=\\"headerRow\\">
				<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\">External POP3 Accounts</span></th>
			</tr>
			<tr>
				<td class=\\"highBothCell\\" align=\\"left\\"><span class=\\"normalfont\\">".((!empty($popbits) ) ? ("Please note that for security reasons the account passwords are not displayed on this page.") : ("You currently have no external POP3 accounts set up. To create a new one, please click on the button below."))."</span></td>
			</tr>
		</table></td>
	</tr>
	$popbits
	<tr>
		<td style=\\"padding-top: 16px;\\" colspan=\\"2\\" align=\\"center\\"><input type=\\"button\\" class=\\"bginput\\" name=\\"create\\" value=\\"Add New Account\\" onClick=\\"popNew();\\" />".((!empty($popbits) ) ? ("&nbsp;&nbsp;<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Save Changes\\" />&nbsp;&nbsp;<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset All Fields\\" />") : (\'\'))."</td>
	</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'redirect_addbook_removeentries' => 
  array (
    'templategroupid' => '8',
    'user_data' => 'The selected address book contact(s) were removed from the group successfully. (Remember they were only removed from the specified group. They will still exist in the main address book, and any other group(s) that they were previously placed into.)',
    'parsed_data' => '"The selected address book contact(s) were removed from the group successfully. (Remember they were only removed from the specified group. They will still exist in the main address book, and any other group(s) that they were previously placed into.)"',
    'upgraded' => '0',
  ),
  'rules' => 
  array (
    'templategroupid' => '10',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Message Rules</title>
$css
<script type="text/javascript" src="misc/checkall.js"></script>
<script type="text/javascript" src="misc/blockedlist.js"></script>
<script type="text/javascript">
<!--
event_addListener( window, \'load\', function() { checkMain(document.forms.rulesform, \'active\'); });
// -->
</script>
<script type="text/javascript" language="JavaScript">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
<script type="text/javascript" language="JavaScript">
<!--
function changeThisRow(form, type, ruleid) {
	conds1 = eval(\'form.condsubjects1\' + ruleid);
	condh = eval(\'form.condhows\' + ruleid);
	conde1 = eval(\'form.condextras1\' + ruleid);
	conds2 = eval(\'form.condsubjects2\' + ruleid);
	conde2 = eval(\'form.condextras2\' + ruleid);
	if (type == 1) {
		conds1.disabled = false;
		condh.disabled = false;
		conde1.disabled = false;
		conds2.disabled = true;
		conde2.disabled = true;
	} else {
		conds1.disabled = true;
		condh.disabled = true;
		conde1.disabled = true;
		conds2.disabled = false;
		conde2.disabled = false;
	}
}
// -->
</script>
</head>
<body>
$header

<form action="rules.update.php" method="post" onSubmit="extract_lists(this); return true;">
<input type="hidden" name="cmd" value="lists" />
<input type="hidden" name="blocklist" value="lists" />
<input type="hidden" name="safelist" value="lists" />

<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>Blocked Senders</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" valign="top" colspan="2"><span class="normalfont"><b>Blocked senders:</b></span>
	<br />
	<span class="smallfont">You may specify a list of email addresses you would like to block from your account below. Messages from blocked senders will automatically be considered spam and treated according to the action defined below for dealing with spam. You can enter full addreeses (e.g. email@example.net), or domain names only (e.g. example.net) to block all emails from the domain name.<br />Remember to click the Update Lists button below for changes to take effect.<br /><br />
	<table align="center" width="100%">
		<tr>
			<td valign="top" align="right" width="50%"><input type="text" value="" size="30" name="block" class="bginput" onFocus="this.form.addblock.disabled = false;" /></td>
			<td valign="top" align="center"><input type="button" disabled="disabled" value="Add ->" name="addblock" style="width: 70px;" class="bginput" onClick="addAddress(this.form, \'block\', \'safe\');" /><br />
						<br /><input type="button" disabled="disabled" value="Delete" name="deleteblock" style="width: 70px;" class="bginput" onClick="deleteAddress(this.form, \'block\');" /></td>
			<td valign="top" align="left" width="50%"><select name="new_blocks[]" id="blocks" multiple="multiple" size="7" onChange="this.form.deleteblock.disabled = (this.selectedIndex == -1);">
					$blocked_emails
				</select></td>
		</tr>
	</table>
	</span></td>
</tr>
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Safe Senders</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Protect messages from familiar contacts:</b></span>
	<br />
	<span class="smallfont">If this is turned on, messages from people who are in your address book will never be blocked or checked against anti-spam measures.</span></td>
	<td class="{classname}RightCell" width="40%"><span class="normalfont"><input type="radio" name="protectbook" value="1" id="protectbookon" $protectbookon /> <label for="protectbookon">Yes</label><br /><input type="radio" name="protectbook" value="0" id="protectbookoff" $protectbookoff /> <label for="protectbookoff">No</label></span></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}BothCell" valign="top" colspan="2"><span class="normalfont"><b>Additional safe senders:</b></span>
	<br />
	<span class="smallfont">You may specify a list of email addresses that are "safe" below. Messages from these addresses will never be blocked or checked against anti-spam measures. You can enter full addresses (e.g. email@example.net), or domain names only (e.g. example.net) to protect all emails from the domain name.<br />Remember to click the Update Lists button below for changes to take effect.<br /><br />
	<table align="center" width="100%">
		<tr>
			<td valign="top" align="right" width="50%"><input type="text" value="" size="30" name="safe" class="bginput" onFocus="this.form.addsafe.disabled = false;" /></td>
			<td valign="top" align="center"><input type="button" disabled="disabled" value="Add ->" name="addsafe" style="width: 70px;" class="bginput" onClick="addAddress(this.form, \'safe\', \'block\');" /><br />
						<br /><input type="button" disabled="disabled" value="Delete" name="deletesafe" style="width: 70px;" class="bginput" onClick="deleteAddress(this.form, \'safe\');" /></td>
			<td valign="top" align="left" width="50%"><select name="new_safes[]" id="safes" multiple="multiple" size="7" onChange="this.form.deletesafe.disabled = (this.selectedIndex == -1);">
					$safe_emails
				</select></td>
		</tr>
	</table>
	</span></td>
</tr>
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>Anti-spam</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Your special spam key:</b></span>
	<br />
	<span class="smallfont">We allow you to choose a special, secret key that can be used by your friends so their message will not blocked. For example, if a friend of yours sends you a message with the word "free" in it, and you choose to block this kind of messages (by defining a rule below), tell him to include this special key anywhere in the subject line, and his message will not be filtered.<br />It is important that you do not set this key to a common word, so as to make sure it cannot be guessed or unintentionally found.</span></td>
	<td class="{classname}RightCell" width="40%"><input type="text" class="bginput" name="spampass" value="$hiveuser[spampass]" size="40" /></td>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%" valign="top"><span class="normalfont"><b>Suspected spam:</b></span>
	<br />
	<span class="smallfont">Action to take if mail is suspected of being unsolicited mail.</span></td>
	<td class="{classname}RightCell" width="40%">
		<SELECT NAME="spamaction">
			<option value="-4" $spamactions[junk]>Move to junk mail</option>
			<option value="-3" $spamactions[trash]>Move to trash can</option>
			<option value="0" $spamactions[reject]>Reject it</option>
		</SELECT>
	</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="Update Lists" />
		<input type="reset" class="bginput" name="reset" value="Reset Lists" />
	</td>
</tr>
</table>

</form>

<br />

<form action="rules.update.php" method="post" name="rulesform">
<input type="hidden" name="cmd" value="update" />
<input type="hidden" name="ruleid" value="0" />
<input type="hidden" name="applyall" value="1" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow" valign="middle">
	<th class="headerLeftCell"><span class="normalfonttablehead"><b>Order</b></span></th>
	<th class="headerCell" nowrap="nowrap" colspan="2"><span class="normalfonttablehead"><b>Message Rules</b></span></th>
	<th class="headerCell" align="right"><span class="normalfonttablehead"><b>Active?</b></span></th>
	<th class="headerRightCell"><input name="allbox" type="checkbox" value="Check All" title="Select/Deselect All" onClick="checkAll(this.form, \'active\');" /></th>
</tr>
<%if empty($rulebits) %>
	<tr class="highRow">
		<td colspan="6" class="highBothCell" align="center"><span class="normalfont">You currently have no rules set up.</span></td>
	</tr>
<%else%>
	$rulebits
<%endif%>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="submit" value="Update Rules" $disablesavechanges />
		<input type="submit" class="bginput" name="submit" value="Apply All Rules" onClick="this.form.action = \'rules.apply.php\';" $disablesavechanges />
		<input type="reset" class="bginput" name="reset" value="Reset Fields" $disablesavechanges />
	</td>
</tr>
</table>

</form>

<br />

<form action="rules.update.php" method="post" name="newruleform">
<input type="hidden" name="cmd" value="add" />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="3"><span class="normalfonttablehead"><b>Add New Rule</b></span></th>
</tr>
<tr class="highRow" valign="top">
	<td class="highLeftCell"><span class="normalfont">When:</span></td>
	<td class="highCell">
	<input type="radio" name="condtype[0]" value="1" onClick="changeThisRow(this.form,1,\'0\')" checked="checked" />
	<select name="condsubjects1[0]" id="condsubjects10">
		<option value="1">email address</option>
		<option value="2">message</option>
		<option value="3">recipient</option>
		<option value="4">subject</option>
	</select>
	<select name="condhows[0]" id="condhows0">
		<option value="2">contains</option>
		<option value="3">does not contain</option>
		<option value="1">equals</option>
		<option value="4">begins with</option>
		<option value="5">ends with</option>
	</select>
	<input type="text" class="bginput" name="condextras1[0]" id="condextras10" size="20" /><br />
	<input type="radio" name="condtype[0]" value="2" onClick="changeThisRow(this.form,2,\'0\')" />
	<select name="condsubjects2[0]" id="condsubjects20">
		<option value="51">email is from account</option>
	</select>
	<select name="condextras2[0]" id="condextras20">
		<option value="0" selected="selected">$appname</option>
		$accountbits
	</select><br />
	<input type="checkbox" name="exempt" value="yes" checked="checked" />Exempt safe senders from this rule</td>
	<td class="highRightCell"><span class="normalfont">
	<input type="checkbox" name="dowhat[0][folder]" value="1" /> <select name="folderstuff[0]">
		<option value="2">move it to</option>
		<option value="4">copy it to</option>
	</select>
	<select name="folders[0]">
		$newfolderbits
	</select><br />
<%if $numresponses>0%>
	<input type="checkbox" name="dowhat[0][respond]" value="1" /> respond <select name="responses[0]">
		$newresponsebits
	</select><br />
<%endif%>
	<input type="checkbox" name="dowhat[0][read]" value="1" /> mark it as read.<br />
	<input type="checkbox" name="dowhat[0][delete]" value="1" /> delete it.<br />
	<input type="checkbox" name="dowhat[0][flag]" value="1" /> flag it.<br />
	<input type="checkbox" name="dowhat[0][color]" value="1" /> highlight with
	<select name="colorstuff[0]">
		<option value="white" style="background-color: White;" selected="selected">White</option>
		<option value="aqua" style="background-color: Aqua;">Aqua</option>
		<option value="fuchsia" style="background-color: Fuchsia;">Fuchsia</option>
		<option value="blue" style="background-color: Blue;">Blue</option>
		<option value="yellow" style="background-color: Yellow;">Yellow</option>
		<option value="lime" style="background-color: Lime;">Lime</option>
		<option value="red" style="background-color: Red;">Red</option>
		<option value="silver" style="background-color: Silver;">Silver</option>
		<option value="gray" style="background-color: Gray; color: White;">Gray</option>
		<option value="teal" style="background-color: Teal; color: White;">Teal</option>
		<option value="purple" style="background-color: Purple; color: White;">Purple</option>
		<option value="navy" style="background-color: Navy; color: White;">Navy</option>
		<option value="olive" style="background-color: Olive; color: White;">Olive</option>
		<option value="green" style="background-color: Green; color: White;">Green</option>
		<option value="maroon" style="background-color: Maroon; color: White;">Maroon</option>
		<option value="black" style="background-color: Black; color: White;">Black</option>
	</select><br />
	<input type="checkbox" name="dowhat[0][notify]" value="1" /> notify of it.</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="Add New Rule" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

<script type="text/javascript" language="JavaScript">
$onload
</script>
</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Message Rules</title>
$GLOBALS[css]
<script type=\\"text/javascript\\" src=\\"misc/checkall.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/blockedlist.js\\"></script>
<script type=\\"text/javascript\\">
<!--
event_addListener( window, \'load\', function() { checkMain(document.forms.rulesform, \'active\'); });
// -->
</script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
function changeThisRow(form, type, ruleid) {
	conds1 = eval(\'form.condsubjects1\' + ruleid);
	condh = eval(\'form.condhows\' + ruleid);
	conde1 = eval(\'form.condextras1\' + ruleid);
	conds2 = eval(\'form.condsubjects2\' + ruleid);
	conde2 = eval(\'form.condextras2\' + ruleid);
	if (type == 1) {
		conds1.disabled = false;
		condh.disabled = false;
		conde1.disabled = false;
		conds2.disabled = true;
		conde2.disabled = true;
	} else {
		conds1.disabled = true;
		condh.disabled = true;
		conde1.disabled = true;
		conds2.disabled = false;
		conde2.disabled = false;
	}
}
// -->
</script>
</head>
<body>
$GLOBALS[header]

<form action=\\"rules.update.php{$GLOBALS[session_url]}\\" method=\\"post\\" onSubmit=\\"extract_lists(this); return true;\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"lists\\" />
<input type=\\"hidden\\" name=\\"blocklist\\" value=\\"lists\\" />
<input type=\\"hidden\\" name=\\"safelist\\" value=\\"lists\\" />

<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>Blocked Senders</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" valign=\\"top\\" colspan=\\"2\\"><span class=\\"normalfont\\"><b>Blocked senders:</b></span>
	<br />
	<span class=\\"smallfont\\">You may specify a list of email addresses you would like to block from your account below. Messages from blocked senders will automatically be considered spam and treated according to the action defined below for dealing with spam. You can enter full addreeses (e.g. email@example.net), or domain names only (e.g. example.net) to block all emails from the domain name.<br />Remember to click the Update Lists button below for changes to take effect.<br /><br />
	<table align=\\"center\\" width=\\"100%\\">
		<tr>
			<td valign=\\"top\\" align=\\"right\\" width=\\"50%\\"><input type=\\"text\\" value=\\"\\" size=\\"30\\" name=\\"block\\" class=\\"bginput\\" onFocus=\\"this.form.addblock.disabled = false;\\" /></td>
			<td valign=\\"top\\" align=\\"center\\"><input type=\\"button\\" disabled=\\"disabled\\" value=\\"Add ->\\" name=\\"addblock\\" style=\\"width: 70px;\\" class=\\"bginput\\" onClick=\\"addAddress(this.form, \'block\', \'safe\');\\" /><br />
						<br /><input type=\\"button\\" disabled=\\"disabled\\" value=\\"Delete\\" name=\\"deleteblock\\" style=\\"width: 70px;\\" class=\\"bginput\\" onClick=\\"deleteAddress(this.form, \'block\');\\" /></td>
			<td valign=\\"top\\" align=\\"left\\" width=\\"50%\\"><select name=\\"new_blocks[]\\" id=\\"blocks\\" multiple=\\"multiple\\" size=\\"7\\" onChange=\\"this.form.deleteblock.disabled = (this.selectedIndex == -1);\\">
					$blocked_emails
				</select></td>
		</tr>
	</table>
	</span></td>
</tr>
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Safe Senders</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Protect messages from familiar contacts:</b></span>
	<br />
	<span class=\\"smallfont\\">If this is turned on, messages from people who are in your address book will never be blocked or checked against anti-spam measures.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><span class=\\"normalfont\\"><input type=\\"radio\\" name=\\"protectbook\\" value=\\"1\\" id=\\"protectbookon\\" $protectbookon /> <label for=\\"protectbookon\\">Yes</label><br /><input type=\\"radio\\" name=\\"protectbook\\" value=\\"0\\" id=\\"protectbookoff\\" $protectbookoff /> <label for=\\"protectbookoff\\">No</label></span></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}BothCell\\" valign=\\"top\\" colspan=\\"2\\"><span class=\\"normalfont\\"><b>Additional safe senders:</b></span>
	<br />
	<span class=\\"smallfont\\">You may specify a list of email addresses that are \\"safe\\" below. Messages from these addresses will never be blocked or checked against anti-spam measures. You can enter full addresses (e.g. email@example.net), or domain names only (e.g. example.net) to protect all emails from the domain name.<br />Remember to click the Update Lists button below for changes to take effect.<br /><br />
	<table align=\\"center\\" width=\\"100%\\">
		<tr>
			<td valign=\\"top\\" align=\\"right\\" width=\\"50%\\"><input type=\\"text\\" value=\\"\\" size=\\"30\\" name=\\"safe\\" class=\\"bginput\\" onFocus=\\"this.form.addsafe.disabled = false;\\" /></td>
			<td valign=\\"top\\" align=\\"center\\"><input type=\\"button\\" disabled=\\"disabled\\" value=\\"Add ->\\" name=\\"addsafe\\" style=\\"width: 70px;\\" class=\\"bginput\\" onClick=\\"addAddress(this.form, \'safe\', \'block\');\\" /><br />
						<br /><input type=\\"button\\" disabled=\\"disabled\\" value=\\"Delete\\" name=\\"deletesafe\\" style=\\"width: 70px;\\" class=\\"bginput\\" onClick=\\"deleteAddress(this.form, \'safe\');\\" /></td>
			<td valign=\\"top\\" align=\\"left\\" width=\\"50%\\"><select name=\\"new_safes[]\\" id=\\"safes\\" multiple=\\"multiple\\" size=\\"7\\" onChange=\\"this.form.deletesafe.disabled = (this.selectedIndex == -1);\\">
					$safe_emails
				</select></td>
		</tr>
	</table>
	</span></td>
</tr>
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Anti-spam</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Your special spam key:</b></span>
	<br />
	<span class=\\"smallfont\\">We allow you to choose a special, secret key that can be used by your friends so their message will not blocked. For example, if a friend of yours sends you a message with the word \\"free\\" in it, and you choose to block this kind of messages (by defining a rule below), tell him to include this special key anywhere in the subject line, and his message will not be filtered.<br />It is important that you do not set this key to a common word, so as to make sure it cannot be guessed or unintentionally found.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\"><input type=\\"text\\" class=\\"bginput\\" name=\\"spampass\\" value=\\"$hiveuser[spampass]\\" size=\\"40\\" /></td>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\" valign=\\"top\\"><span class=\\"normalfont\\"><b>Suspected spam:</b></span>
	<br />
	<span class=\\"smallfont\\">Action to take if mail is suspected of being unsolicited mail.</span></td>
	<td class=\\"{classname}RightCell\\" width=\\"40%\\">
		<SELECT NAME=\\"spamaction\\">
			<option value=\\"-4\\" $spamactions[junk]>Move to junk mail</option>
			<option value=\\"-3\\" $spamactions[trash]>Move to trash can</option>
			<option value=\\"0\\" $spamactions[reject]>Reject it</option>
		</SELECT>
	</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=\\"Update Lists\\" />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Lists\\" />
	</td>
</tr>
</table>

</form>

<br />

<form action=\\"rules.update.php{$GLOBALS[session_url]}\\" method=\\"post\\" name=\\"rulesform\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"update\\" />
<input type=\\"hidden\\" name=\\"ruleid\\" value=\\"0\\" />
<input type=\\"hidden\\" name=\\"applyall\\" value=\\"1\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\" valign=\\"middle\\">
	<th class=\\"headerLeftCell\\"><span class=\\"normalfonttablehead\\"><b>Order</b></span></th>
	<th class=\\"headerCell\\" nowrap=\\"nowrap\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>Message Rules</b></span></th>
	<th class=\\"headerCell\\" align=\\"right\\"><span class=\\"normalfonttablehead\\"><b>Active?</b></span></th>
	<th class=\\"headerRightCell\\"><input name=\\"allbox\\" type=\\"checkbox\\" value=\\"Check All\\" title=\\"Select/Deselect All\\" onClick=\\"checkAll(this.form, \'active\');\\" /></th>
</tr>
".((empty($rulebits) ) ? ("
	<tr class=\\"highRow\\">
		<td colspan=\\"6\\" class=\\"highBothCell\\" align=\\"center\\"><span class=\\"normalfont\\">You currently have no rules set up.</span></td>
	</tr>
") : ("
	$rulebits
"))."
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Update Rules\\" $disablesavechanges />
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Apply All Rules\\" onClick=\\"this.form.action = \'rules.apply.php{$GLOBALS[session_url]}\';\\" $disablesavechanges />
		<input type=\\"reset\\" class=\\"bginput\\" name=\\"reset\\" value=\\"Reset Fields\\" $disablesavechanges />
	</td>
</tr>
</table>

</form>

<br />

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

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"3\\"><span class=\\"normalfonttablehead\\"><b>Add New Rule</b></span></th>
</tr>
<tr class=\\"highRow\\" valign=\\"top\\">
	<td class=\\"highLeftCell\\"><span class=\\"normalfont\\">When:</span></td>
	<td class=\\"highCell\\">
	<input type=\\"radio\\" name=\\"condtype[0]\\" value=\\"1\\" onClick=\\"changeThisRow(this.form,1,\'0\')\\" checked=\\"checked\\" />
	<select name=\\"condsubjects1[0]\\" id=\\"condsubjects10\\">
		<option value=\\"1\\">email address</option>
		<option value=\\"2\\">message</option>
		<option value=\\"3\\">recipient</option>
		<option value=\\"4\\">subject</option>
	</select>
	<select name=\\"condhows[0]\\" id=\\"condhows0\\">
		<option value=\\"2\\">contains</option>
		<option value=\\"3\\">does not contain</option>
		<option value=\\"1\\">equals</option>
		<option value=\\"4\\">begins with</option>
		<option value=\\"5\\">ends with</option>
	</select>
	<input type=\\"text\\" class=\\"bginput\\" name=\\"condextras1[0]\\" id=\\"condextras10\\" size=\\"20\\" /><br />
	<input type=\\"radio\\" name=\\"condtype[0]\\" value=\\"2\\" onClick=\\"changeThisRow(this.form,2,\'0\')\\" />
	<select name=\\"condsubjects2[0]\\" id=\\"condsubjects20\\">
		<option value=\\"51\\">email is from account</option>
	</select>
	<select name=\\"condextras2[0]\\" id=\\"condextras20\\">
		<option value=\\"0\\" selected=\\"selected\\">$appname</option>
		$accountbits
	</select><br />
	<input type=\\"checkbox\\" name=\\"exempt\\" value=\\"yes\\" checked=\\"checked\\" />Exempt safe senders from this rule</td>
	<td class=\\"highRightCell\\"><span class=\\"normalfont\\">
	<input type=\\"checkbox\\" name=\\"dowhat[0][folder]\\" value=\\"1\\" /> <select name=\\"folderstuff[0]\\">
		<option value=\\"2\\">move it to</option>
		<option value=\\"4\\">copy it to</option>
	</select>
	<select name=\\"folders[0]\\">
		$newfolderbits
	</select><br />
".(($numresponses>0) ? ("
	<input type=\\"checkbox\\" name=\\"dowhat[0][respond]\\" value=\\"1\\" /> respond <select name=\\"responses[0]\\">
		$newresponsebits
	</select><br />
") : (\'\'))."
	<input type=\\"checkbox\\" name=\\"dowhat[0][read]\\" value=\\"1\\" /> mark it as read.<br />
	<input type=\\"checkbox\\" name=\\"dowhat[0][delete]\\" value=\\"1\\" /> delete it.<br />
	<input type=\\"checkbox\\" name=\\"dowhat[0][flag]\\" value=\\"1\\" /> flag it.<br />
	<input type=\\"checkbox\\" name=\\"dowhat[0][color]\\" value=\\"1\\" /> highlight with
	<select name=\\"colorstuff[0]\\">
		<option value=\\"white\\" style=\\"background-color: White;\\" selected=\\"selected\\">White</option>
		<option value=\\"aqua\\" style=\\"background-color: Aqua;\\">Aqua</option>
		<option value=\\"fuchsia\\" style=\\"background-color: Fuchsia;\\">Fuchsia</option>
		<option value=\\"blue\\" style=\\"background-color: Blue;\\">Blue</option>
		<option value=\\"yellow\\" style=\\"background-color: Yellow;\\">Yellow</option>
		<option value=\\"lime\\" style=\\"background-color: Lime;\\">Lime</option>
		<option value=\\"red\\" style=\\"background-color: Red;\\">Red</option>
		<option value=\\"silver\\" style=\\"background-color: Silver;\\">Silver</option>
		<option value=\\"gray\\" style=\\"background-color: Gray; color: White;\\">Gray</option>
		<option value=\\"teal\\" style=\\"background-color: Teal; color: White;\\">Teal</option>
		<option value=\\"purple\\" style=\\"background-color: Purple; color: White;\\">Purple</option>
		<option value=\\"navy\\" style=\\"background-color: Navy; color: White;\\">Navy</option>
		<option value=\\"olive\\" style=\\"background-color: Olive; color: White;\\">Olive</option>
		<option value=\\"green\\" style=\\"background-color: Green; color: White;\\">Green</option>
		<option value=\\"maroon\\" style=\\"background-color: Maroon; color: White;\\">Maroon</option>
		<option value=\\"black\\" style=\\"background-color: Black; color: White;\\">Black</option>
	</select><br />
	<input type=\\"checkbox\\" name=\\"dowhat[0][notify]\\" value=\\"1\\" /> notify of it.</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=\\"Add New Rule\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

<script type=\\"text/javascript\\" language=\\"JavaScript\\">
$onload
</script>
</body>
</html>"',
    'upgraded' => '0',
  ),
);

?>