/*/////////////////////////////////////////////////////////////////////////////

Component:    Peripheral Information Status Preserver (Javascript)

Description:  My peripheral information status preserver (javascript) contains
              the javascript component of AJAX code for preserving the shown or
              hidden status of the various sections of peripheral information
              across pageviews.

Project:      My Website
                User Interface
                  Journal Application

Path:         [...]/httpdocs/resources/journal/preservestatus.js

Author:       The Confessor <http://confessor.org/contact.php>

Copyright:    (C) 2007-2010 The Confessor

License:      Use of all or portions of my website source code in your own
              projects is subject to the terms and conditions listed here:
              <http://confessor.org/termsofuse.php>

Contains:     Preserve Status Function  [R1]

/////////////////////////////////////////////////////////////////////////////*/

/*/////////////////////////////////////////////////////////////////////////////
                                                                       // R1 //
Preserve Status Function                                               ////////

/////////////////////////////////////////////////////////////////////////////*/

function preservestatus(element,status) {
  var preservestatus_request = new XMLHttpRequest();
  preservestatus_request.open('GET','/resources/journal/preservestatus.php?'+element+'='+status,true);
  preservestatus_request.send(null);
}