/* ---------------------------------------------------------------------------------------------------------- */
/* HOME Page - JavaScript Generated By The Clarion Handy Tools www.cwhandy.com 01/08/2010  7:08:47 */
/* ---------------------------------------------------------------------------------------------------------- */

function obj_flg() { 
  this.ask           = true;
  this.noask         = false;
  this.True          = true;
  this.False         = false;
  this.actionbrowse  = 0 ;
  this.actionedit    = 1 ;
  this.actionchange  = 2 ;
  this.actioninsert  = 4 ;
  this.actiondelete  = 8 ;
  this.actionprint   = 16 ;
  this.actionemail   = 32 ;
  this.actionrecycle = 64 ;
  this.actionview    = 128 ;
  this.actionpreview = 128 ;
  this.askokay       = true;
}
var flg = new obj_flg();

function obj_sig() { 
  this.addresss      = "" ;
  this.emailaddress  = "" ;
  this.first         = "" ;
  this.last          = "" ;
  this.name          = "" ;
  this.company       = "" ;
  this.timeslogged   =  0 ;
  this.allowsendmail = "" ;
  this.website       = "" ;
  this.substatus     = "" ;
  this.renewmessage  = "" ;
  this.loggeddate    = 0  ;
  this.lastvisit     = 0  ;
  this.maildate      = 0  ;
  this.readonly      = 0  ;
}
var sig = new obj_sig();

function getcookie(xcookietag, xdefault) {
   var name_to_get = xcookietag.toLowerCase() ;
   var cookie_pair    ;
   var cookie_name    ;
   var cookie_value   ;
   var cookie_array = document.cookie.split(";") ; 
   for (counter = 0; counter < cookie_array.length; counter++) {
       cookie_pair  = cookie_array[counter].split("=") ;
       cookie_name  = cookie_pair[0] ; 
       cookie_value = cookie_pair[1] ; 
       if (cookie_name.indexOf(name_to_get) != -1) {
          return unescape(cookie_value) ;
       }
   }
   return xdefault ;
}

function putcookie(xcookietag, xcookievalue) {
   var nextyear    = new Date() ;
   nextyear.setFullYear(nextyear.getFullYear() + 1) ; 
   var expireby    = nextyear.toGMTString() ;
   document.cookie = xcookietag.toLowerCase() + '=' + escape(xcookievalue) + '; expires=' + expireby + '; path=/; '
}

function obj_sys() {
  this.pageid       = "home";
  this.pagenumber   = "5";
  this.pagename     = "home";
  this.sessionid    = "" ;
  this.viewid       = "" ;
  this.editaction   = "" ;
  this.subaction    = "" ;
  this.queryfield   = "" ;
  this.defaultquery = getcookie("defaultquery","") ;
  this.lastquery    = getcookie("lastquery","") ;
  this.browsequery  = getcookie("browsequery","") ;
  this.ownerrecord  = 0 ; 
  this.querypage    = 0 ; 
  this.lasterrorcode = "0" ;
  this.lasterror    = "" ;
  this.requesttype  = "" ;
  this.pagehitcount = "114" ;
  this.recycletoinsert = "0" ;
  this.recycletopreview = "0" ;
}
var sys = new obj_sys();

function takehelprequest() {
   var thiswindow = window.open("HLP$&help=help.home&","helpwindow","width=900px, height=650px, resizable=yes, toolbar=no, scrollbars=yes ,menubar=no") ;
   return true ;
}

