w2form = function(options) {
        // public properties
        this.name      = null;
        this.header    = '';
        this.box       = null;     // HTML element that hold this element
        this.url       = '';
        this.routeData = {};       // data for dynamic routes
        this.formURL   = '';       // url where to get form HTML
        this.formHTML  = '';       // form HTML (might be loaded from the url)
        this.page      = 0;        // current page
        this.recid     = 0;        // can be null or 0
        this.fields    = [];
        this.actions   = {};
        this.record    = {};
        this.original  = {};
        this.postData  = {};
        this.toolbar   = {};       // if not empty, then it is toolbar
        this.tabs      = {};       // if not empty, then it is tabs object

        this.style         = '';
        this.focus         = 0;    // focus first or other element
        this.msgNotJSON    = w2utils.lang('Return data is not in JSON format.');
        this.msgAJAXerror  = w2utils.lang('AJAX error. See console for more details.');
        this.msgRefresh    = w2utils.lang('Refreshing...');
        this.msgSaving     = w2utils.lang('Saving...');

        // events
        this.onRequest   = null;
        this.onLoad      = null;
        this.onValidate  = null;
        this.onSubmit    = null;
        this.onSave      = null;
        this.onChange    = null;
        this.onRender    = null;
        this.onRefresh   = null;
        this.onResize    = null;
        this.onDestroy   = null;
        this.onAction    = null;
        this.onToolbar   = null;
        this.onError     = null;

        // internal
        this.isGenerated = false;
        this.last = {
            xhr: null        // jquery xhr requests
        }

        $.extend(true, this, w2obj.form, options);
    }
*********************************************************************
  Library: Web 2.0 UI for jQuery (using prototypical inheritance)
  - Following objects defined
       - w2form      - form widget
       - $().w2form  - jQuery wrapper
  - Dependencies: jQuery, w2utils, w2fields, w2tabs, w2toolbar, w2alert

== NICE TO HAVE ==
  - refresh(field) - would refresh only one field
  - include delta on save
  - create an example how to do cascadic dropdown
  - form should read <select> <options> into items
  - two way data bindings
  - verify validation of fields
  - when field is blank, set record.field = null
  - show/hide a field
  - added getChanges() - not complete

**********************************************************************