/* ---------------------------------------------------------------------------------------------------------- */
/* HOME Page - JavaScript Generated By The Clarion Handy Tools www.cwhandy.com 03/06/2009 16:18:51 */
/* ---------------------------------------------------------------------------------------------------------- */

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=; secure ; '
}

function obj_sys() {
  this.pageid       = "home";
  this.pagenumber   = "0";
  this.pagename     = "";
  this.sessionid    = "" ;
  this.viewid       = "" ;
  this.editaction   = flg.actionbrowse ;
  this.subaction    = "" ;
  this.queryfield   = "" ;
  this.defaultquery = getcookie("defaultquery","") ;
  this.lastquery    = getcookie("lastquery","") ;
  this.browsequery  = getcookie("browsequery","") ;
  this.querypage    = 1 ; 
  this.lasterrorcode = "0" ;
  this.lasterror    = "" ;
  this.requesttype  = "" ;
  this.pagehitcount = "0" ;
  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 ;
}

function obj_button() {
   this.browsethreadbuttontext = "Thread" ;
   this.previousbuttontext = "Previous" ;
   this.nextbuttontext = "Next" ;
   this.previewprintbuttontext = "Preview" ;
   this.browsequerybuttontext = "Query" ;
   this.browsesendbuttontext = "Send" ;
   this.browsegobuttontext = "Go" ;
   this.browsesavebuttontext = "Save" ;
   this.cancelbuttontext = "Cancel" ;
   this.signaturebuttontext = "Signature" ;
   this.helpbuttontext = "Help" ;
   this.resetbuttontext = "Reset" ;
   this.clearbuttontext = "Clear" ;
   this.deletebuttontext = "Delete" ;
   this.updatebuttontext = "Update" ;
   this.insertbuttontext = "Reply" ;
   this.quitbuttontext = "Close" ;
   this.browseemailbuttontext = "Email" ;
   this.browsemailbuttontext = "Mail" ;
   this.browsevisitsbuttontext = "Visits" ;
   this.browsewebsitebuttontext = "Website" ;
   this.browsecompanybuttontext = "Company" ;
   this.browsestatusbuttontext = "Status" ;
   this.browselastbuttontext = "Last" ;
   this.browsefirstbuttontext = "First" ;
   this.browsesearchbuttontext = "Search" ;
   this.browserecallbuttontext = "Recall" ;
   this.browsesubjectbuttontext = "Subject" ;
   this.browsesizebuttontext = "Size" ;
   this.browsemessagebuttontext = "Posting" ;
   this.browsecategorybuttontext = "Category" ;
   this.browsenamebuttontext = "Name" ;
   this.browsetimebuttontext = "Time" ;
   this.browsedatebuttontext = "Date" ;
   this.editbuttontext = "View/Edit" ;
   this.browseeditbuttontext = "Open" ;
   this.browsereplybuttontext = "Open" ;
   this.length = 1
} 
var button = new obj_button(); 

function obj_choices() {
   this.okaytodeletemessage = "Okay to delete this posting?" ;
   this.messagetypechoices5 = "TIPOFTHEDAY" ;
   this.messagetypechoices4 = "SUGGESTION" ;
   this.messagetypechoices3 = "FEEDBACK" ;
   this.messagetypechoices2 = "REPLY" ;
   this.messagetypechoices1 = "QUESTION" ;
   this.browsequerybuttonmessage = "Enter search value only for fields: NAME, CATEGORY, SUBJECT, POSTING." ;
   this.okaytosavemessage = "Okay to save this posting?" ;
   this.okaytoinsertmessage = "Okay to insert new posting?" ;
   this.okaytoregistermessage = "Okay to complete registration?" ;
   this.okaytologinmessage = "Okay to complete login?" ;
   this.okaytocancelmessage = "Okay to close without changes?" ;
   this.length = 1
} 
var choices = new obj_choices(); 

function obj_image() {
   this.headerimage = "images/htmh2.jpg" ;
   this.headerimagewidth = "700" ;
   this.headerimageheight = "114" ;
   this.length = 1
} 
var image = new obj_image(); 

function obj_keyword() {
   this.defaultmessagesquery = "DATE RANGE TODAY()-365, TODAY() ORDER BY -DATE,-TIME" ;
   this.defaultoverequalkeyword = "OVEREQUAL" ;
   this.defaultunderequalkeyword = "UNDEREQUAL" ;
   this.defaultdatekeyword = "DATE" ;
   this.defaultnotkeyword = "NOT" ;
   this.defaultnotequalkeyword = "NOT EQUAL" ;
   this.defaultsoundexkeyword = "SOUNDEX" ;
   this.defaultwithoutkeyword = "WITHOUT" ;
   this.defaultorderbykeyword = "ORDER BY" ;
   this.defaultorkeyword = "OR" ;
   this.defaultandkeyword = "AND" ;
   this.defaultstartswithkeyword = "STARTSWITH" ;
   this.defaultendswithkeyword = "ENDSWITH" ;
   this.defaultunderkeyword = "UNDER" ;
   this.defaultoverkeyword = "OVER" ;
   this.defaultrangekeyword = "RANGE" ;
   this.defaultequalskeyword = "EQUALS" ;
   this.defaultcontainskeyword = "CONTAINS" ;
   this.defaultorderclause = "ORDER BY -DATE,-TIME" ;
   this.defaultmembersquery = "DATE RANGE NOW ORDER BY -DATE,-TIME" ;
   this.length = 1
} 
var keyword = new obj_keyword(); 

function obj_link() {
   this.contactlink = "MAILTO:gcreces@gmail.com?Subject=CHT%20Web%20Group%20Support" ;
   this.subscribelink = "http://www.cwhandy.com/purchase.htm" ;
   this.length = 1
} 
var link = new obj_link(); 

function obj_mail() {
   this.mailfromaddress = "gcreces@gmail.com" ;
   this.length = 1
} 
var mail = new obj_mail(); 

function obj_menu() {
   this.messagesquerypagemenu = "Postings" ;
   this.membersemaildisallowsetting = "Disallow" ;
   this.membersemailallowsetting = "Allow" ;
   this.browserefreshmenu = "Refresh" ;
   this.browseinsertmenu = "Insert" ;
   this.helpwindowclosemenu = "Exit This Help Page" ;
   this.quitpagemenu = "Quit" ;
   this.backpagemenu = "Back" ;
   this.contactpagemenu = "Contact" ;
   this.subscriptionpagemenu = "Subscribe" ;
   this.registrationpagemenu = "Register" ;
   this.loginpagemenu = "Login" ;
   this.helppagemenu = "Help" ;
   this.homepagemenu = "Home" ;
   this.membersquerypagemenu = "Members" ;
   this.length = 1
} 
var menu = new obj_menu(); 

function obj_query() {
   this.thisweek = "TODAY()-7,TODAY()" ;
   this.lastweek = "TODAY()-14,TODAY()-7" ;
   this.last6months = "TODAY()-180,TODAY()" ;
   this.last3months = "TODAY()-90, TODAY()" ;
   this.yesterday = "TODAY()-1,TODAY()" ;
   this.twoweeks = "TODAY()-14,TODAY()" ;
   this.last2days = "TODAY()-2,TODAY()" ;
   this.last3days = "TODAY()-3,TODAY()" ;
   this.thisyear = "TODAY()-256,TODAY()" ;
   this.thismonth = "TODAY()-30,TODAY()" ;
   this.length = 1
} 
var query = new obj_query(); 

function obj_system() {
   this.systemservername = "The CHT Support Forum" ;
   this.scriptuploadsallowedid = "1" ;
   this.ngmembersviewreportpreviewpagescript = "page.ngmembersviewreportpreview" ;
   this.useraccesskilltime = "360000" ;
   this.lockinternetip = "0" ;
   this.servercurrentad = "Your Developer Ad Here...<p/>" ;
   this.advertisement1 = "Plan your first CHT Browser Server design now, and book your Server Course for 2006!" ;
   this.nourlbasepagebehavior = "4" ;
   this.systemserveremailfrom = "gcreces@gmail.com" ;
   this.webpdfreportviewformscript = "form.webpdfreportviewquery" ;
   this.webpdfreportviewchangepagescript = "page.webpdfreportviewchange" ;
   this.webpdfreportviewemailpagescript = "page.webpdfreportviewemail" ;
   this.webpdfreportviewpreviewpagescript = "page.webpdfreportviewpreview" ;
   this.webpdfreportvieweditpagescript = "page.webpdfreportviewedit" ;
   this.webpdfreportviewbrowsepagescript = "page.webpdfreportviewbrowse" ;
   this.webpdfreportviewbodyscript = "page.webpdfreportviewquery" ;
   this.webpdfreportlocation = "/pdf/" ;
   this.defaultmailbody = "Insert your email message here." ;
   this.defaultmailsubject = "Insert your email subject here." ;
   this.useraccesskillminutes = "60" ;
   this.askokayonsaveorcanceloperations = "1" ;
   this.lockedpageformscript = "form.locked" ;
   this.lockedpagebodyscript = "page.lockout" ;
   this.purgeincompleterecordsminutes = "60" ;
   this.defaultwordkeyword = "WORD" ;
   this.webcrawlerkeywords = "CLARION PROGRAMMING, CLARION SOURCE CODE, OPEN SOURCE TOOLKIT" ;
   this.messagesubjectdefault = "From The CHT Forum Server" ;
   this.messagecategoryreplydefault = "REPLY" ;
   this.messagecategorydefault = "QUESTION" ;
   this.messagecategorychoices = "QUESTION,REPLY,NEWS,SUGGESTION,FEEDBACK,BLOG,DEVTIP,VIDEO" ;
   this.now = "TODAY(),TODAY()" ;
   this.systemserveremail = "gcreces@gmail.com" ;
   this.systemservercompany = "The CHT Support Forum" ;
   this.length = 1
} 
var system = new obj_system(); 

function obj_text() {
   this.snipmarker = "<SNIP>" ;
   this.visitwebsite = "Visit Website" ;
   this.more = "More:" ;
   this.regarding = "RE:" ;
   this.length = 1
} 
var text = new obj_text(); 

/* ---------------------------------------------------------------------------------------------------------- */
/* JavaScript Generated By The Clarion Handy Tools www.cwhandy.com 03/06/2009 16:18:51 */
/* ---------------------------------------------------------------------------------------------------------- */

