-//ajax transfer progress indicator
-var starttabs = new Array();
-var autoload = new Array();
-var onload_script = ""
-var loadstatustext="<img src='js/images/progressbar1.gif' /> Requesting content..."
-var loadedobjects=""
-
-function Querystring(qs) { // optionally pass a querystring to parse
- this.params = new Object()
- this.get=Querystring_get
- this.set=Querystring_set
- this.href=window.location.pathname
- this.url=Querystring_url
-
- if (qs == null)
- qs=location.search.substring(1,location.search.length)
-
- if (qs.length == 0) return
-
-// Turn <plus> back to <space>
-// See: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1
- qs = qs.replace(/\+/g, ' ')
- var args = qs.split('&') // parse out name/value pairs separated via &
-
-// split out each name=value pair
- for (var i=0;i<args.length;i++) {
- var value;
- var pair = args[i].split('=')
- var name = unescape(pair[0])
-
- if (pair.length == 2)
- value = unescape(pair[1])
- else
- value = name
-
- this.params[name] = value
- }
-
- this.page = this.params.page
- delete this.params.page
-}
-
-function Querystring_get(key, default_) {
- // This silly looking line changes UNDEFINED to NULL
- if (default_ == null) default_ = null;
-
- var value=this.params[key]
- if (value==null) value=default_;
-
- return value
-}
-
-function Querystring_set(key, value) {
- this.params[key] = value;
-}
-
-function Querystring_url() {
- var url = this.href + '?page='+ this.page
- for( key in this.params) {
- url += '&'+ key + '='+ this.params[key]
- }
- return url
-}
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU General Public License, GPL,
+ as published by the Free Software Foundation, either version 3
+ of the License, or (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
+var _focus;
+var _hotkeys = {
+ 'alt': false, // whether is the Alt key pressed
+ 'focus': -1 // currently selected indeks of document.links
+};
+var _validate = {}; // validation functions