function User() 
{
   this.is_guest = true;
   this.is_admin = false;
   this.email = "";
   this.item_picked_now = null;
   this.cut_item_now = null;
   this.must_change_passwd = false;
   this.root_item = null;

   this.inbox_item = null;
   this.sent_item = null;

   this.update_from_xml = function(doc)
   {
      this.user_id = get_xml_value(doc, K.TAG_USER_ID);
      this.is_admin = false;

      if (this.user_id != 0) // guest == 0
      {
         this.is_guest = false;
         if (get_xml_value(doc, K.TAG_ADMIN) == 1)
         {  this.is_admin = true;
         }
         if (get_xml_value(doc, K.TAG_MUST_CHANGE_PASSWORD) == "1")
         {  this.must_change_passwd = true;
         }
         this.root_item = get_xml_value(doc, K.TAG_ROOT_ITEM);
         this.sent_item = get_xml_value(doc, K.TAG_SENT_ITEM);
         this.inbox_item = get_xml_value(doc, K.TAG_INBOX_ITEM);
         this.email = get_xml_value(doc, K.TAG_EMAIL);
      }

   }

   return this;
}


