var hDB = new Array();

hDB["home"] = new Array();
hDB["home"]["title"] =                  'Welcome to cmxcmd help';




hDB["home"]["topic"] =                  '<pre>' +
'   __  _   _ __  __ ___\n' +
' / __|| \\ / |\\ \\/ /|__ \\\n' +
'| |__ | |V| | >  <   _|_|\n' +
' \\ __||_| |_|/_/\\_\\ |=|\n' +
                                        '</pre>' +
                                        'Welcome to the cmxcmd help system. Help (and other) commands<br />' +
                                        'are shown in <strong>bold</strong>, to use them enter the bolded text exactly <br />' +
                                        'as it appears. To view the help system table of contents, use <br /><br />' +
                                        '<strong>' +
                                        'help contents<br />' +
                                        'news<br />' +
                                        'ref<br />' +
                                        '</strong><br />';

hDB["contents"] = new Array();
hDB["contents"]["title"] =              'Table of Contents';
hDB["contents"]["topic"] =              'Basics<br />' +
                                        '<strong>help add entry</strong><br />' +
                                        '<strong>help add field</strong><br />' +
                                        '<strong>help close notes</strong><br />' +
					'<strong>help count</strong><br />' +
                                        '<strong>help delete entry</strong><br />' +
                                        '<strong>help entry notes</strong><br />';

hDB["add entry"] = new Array();
hDB["add entry"]["title"] =             'Add an entry';
hDB["add entry"]["topic"] =             'This command creates a new entry within the current user\'s contactmatrix database.<br />' +
                                        'A <em>notes</em> entry consists of a single, multilined field.<br />' +
                                        'Standard entries consist of any number of <em>rows</em> of information.<br />' +
                                        'A row within an entry is called a <em>field</em>. A field consists of a caption<br />' +
                                        'a value and field notes, all of which are optional values.' +
                                        '<br /><br />' +
                                        'Syntax<br />' +
                                        '<strong>addentry<br />adde</strong><br /><br />' +
                                        'Parameters:<br />' +
                                        '<strong>' +
                                        'entry type (\'entry\'|\'notes\')<br />' +
                                        'entry name (string)' +
                                        '</strong><br /><br />' +
                                        '<em>See Also:</em><br />' +
                                        'help add field<br />' +
                                        'help delete entry<br />' +
                                        'help entry notes';

hDB["add field"] = new Array();
hDB["add field"]["title"] =             'Add a Field';
hDB["add field"]["topic"] =             'This command adds a field to an existing entry. Fields can only be added to entries that<br />' +
                                        'are not <em>notes</em> entries. When using the graphical version of contactmatrix, fields<br />' +
                                        'are displayed as rows within the entry\'s grid. Fields can be reordered within the entry<br />' +
                                        'and consist of three parts:' +
                                        '<ol>' +
                                        '       <li> a field column</li>' +
                                        '       <li> a value column</li>' +
                                        '       <li> field notes</li>' +
                                        '</ol>' +
                                        'Every field within an entry <em>can</em> have notes associated with them.' +
                                        '<br /><br />' +
                                        'Syntax:<br />' +
                                        '<strong>addfield<br />addf</strong><br /><br />' +
                                        'Parameters:<br />' +
                                        '<strong>' +
                                        'entry id (number)<br />' +
                                        'field text (string)<br />' +
                                        '<em>(the value field is added with the fieldvalue or fv commands)</em>' +
                                        '</strong><br /><br />' +
                                        '<em>See Also:</em><br />' +
                                        'help field value<br />' + 
                                        'help field notes<br />' +
                                        'help field move<br />' +
                                        'help delete field';

hDB["close notes"] = new Array();
hDB["close notes"]["title"] =           'Close the Notes Editor';
hDB["close notes"]["topic"] =           'This command closes the notes editor, restoring the output display. If the notes have<br />' +
                                        'updated and saved, the display will show the updated notes.<br />' +
                                        'Closing the notes editor does NOT save any changes, it simply returns to the standard<br />' +
                                        'display queue.' +
                                        '<br /><br />' +
                                        'Syntax:<br />' +
                                        '<strong>close<br />x</strong><br /><br />' +
                                        'Parameters:<br />' +
                                        '<strong>' +
                                        'None' +
                                        '</strong><br /><br />' +
                                        '<em>See Also:</em><br />' +
                                        'help entry notes<br />' +
                                        'help field notes';

hDB["count"] = new Array();
hDB["count"]["title"] =			'Get Entry Count';
hDB["count"]["topic"] =			'This command returns the count of the current user\'s entries. All types of entries<br />' +
					'are counted.' +
					'<br /><br />' +
					'Syntax:<br />' +
					'<strong>count</strong><br /><br />' +
					'<strong>' +
					'None' +
					'</strong><br /><br />';

hDB["delete entry"] = new Array();
hDB["delete entry"]["title"] =                  'Delete an Entry';
hDB["delete entry"]["topic"] =                  'This command deletes the specified entry. If there are any associated fields, they<br />' +
                                                                                'will be deleted as well. This action <strong>cannot</strong> be undone, so use it<br />' +
                                                                                'cautiously.' +
                                        '<br /><br />' +
                                        'Syntax:<br />' +
                                        '<strong>deleteentry<br />dele</strong><br /><br />' +
                                        'Parameters:<br />' +
                                        '<strong>' +
                                        'entry id (id)' +
                                        '</strong><br /><br />' +
                                        '<em>See Also:</em><br />' +
                                        'help add entry<br />' +
                                        'help add field<br />' +
                                        'help entry notes';

hDB["entry notes"] = new Array();
hDB["entry notes"]["title"] =                   'Edit Notes Entries';
hDB["entry notes"]["topic"] =                   'This command puts cmxcmd into a <em>notes editing</em> mode. Changes can be made<br />' +
                                                                                'to the entry notes, then saved using <strong>savenotes</strong> or <strong>sn</strong>' +
                                        '<br /><br />' +
                                        'Syntax:<br />' +
                                        '<strong>entrynotes<br />en</strong><br /><br />' +
                                        'Parameters:<br />' +
                                        '<strong>' +
                                        'entry id (id)' +
                                        '</strong><br /><br />' +
                                        '<em>See Also:</em><br />' +
                                        'help save notes<br />' +
                                        'help close notes editor<br />';

hDB["using cmxcmd"] = new Array();
hDB["using cmxcmd"]["title"] =          'Using cmxcmd';
hDB["using cmxcmd"]["topic"] =          'CMX is designed to mimic terminal based applications. It allows users to add and manage<br />' +
                                        'items, called <strong>entries</strong>. Currently cmxcmd is capable of creating two<br />' +
                                        'types of entries:<br />' +
                                        '<ol>' +
                                        '       <li> standard entries</li>' +
                                        '       <li> notes entries</li>' +
                                        '</ol>' +
                                        'Standard entries contain line items, called <strong>fields</strong>. Fields consist<br />' +
                                        'of two values, a caption and a value. Fields can be rearranged within the entry.<br />' +
                                        'Notes entries contain only notes.' +
                                        '<br /><br />' +
                                        'For information on entries, refer to the entries and fields topics within the<br />' +
                                        'reference:<br />' +
                                        'ref<br />' +
                                        'Or within this help system:<br />' +
                                        'help<br /><br />';
