/* ---------------------------------------------------------------------------------------------------------- */
/* JavaScript Generated By The Clarion Handy Tools www.cwhandy.com  March 16, 2004 - 11:27:43 */
/* User Javascript Functions */
/* ---------------------------------------------------------------------------------------------------------- */

var google_ad_client    = "" ;
var google_ad_width     = 0  ;
var google_ad_height    = 0  ;
var google_ad_format    = "" ;
var google_color_border = "1";
var google_color_bg     = "" ;
var google_color_link   = "" ;
var google_color_url    = "" ;
var google_color_text   = "" ;
var topic               = "" ;
var vabout = "aboutlinks"    ;
var vwhat  = "whatsnewlinks" ;
var vdown  = "downloadlinks" ;
var vsubs  = "subscribelinks" ;
var vsupp  = "supportlinks" ;

function insertpagelinks() {
   document.write('<div id="mainmenu" class="sidelinks" onMouseOver="chtmenuhide(event, vabout, vwhat, vdown, vsubs, vsupp)" >');
   document.write('<a href="home.htm" id="home">Home</a>') ;
   document.write('<a href="#" onClick=chtmenushow(event,"aboutlinks") id="about" >About</a>') ;
   document.write('<a href="#" onClick=chtmenushow(event,"whatsnewlinks") id="whatsnew" >What&#39;s New</a>') ;
   document.write('<a href="#" onClick=chtmenushow(event,"downloadlinks") id="downloads" >Downloads</a>') ;
   document.write('<a href="#" onClick=chtmenushow(event,"subscribelinks") id="subscribe" >Subscribe</a>') ;
   document.write('<a href="#" onClick=chtmenushow(event,"supportlinks") id="support" >Support</a>') ;
   document.write('<a href="javascript:history.back()" id="back" >Back</a>') ;
   document.write('</div>') ;
}


function obj_jsutil() {

this.showtime = function() {
  var dt = new Date
  document.write(dt.toLocaleString());
   
  }
}


var jsutil = new obj_jsutil();


function insertheaderblock() {
  document.write('<div class="headerblock"></div>');
}

function maxWindow() {

   window.moveTo(0,0);
    if (document.all)
    {
      top.window.resizeTo(screen.availWidth,screen.availHeight);
    }

    else if (document.layers||document.getElementById)
    {
      if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
      {
        top.window.outerHeight = screen.availHeight;
        top.window.outerWidth = screen.availWidth;
      }
    }
}


function whatdom(xobjectid,xwithstyle) {

   var isDHTML  = 0;
   var isID     = 0;
   var isAll    = 0;
   var isLayers = 0;
   
   if (document.getElementById) {
      isID = 1; isDHTML = 1;
   } else {
      if (document.all) {
         isAll = 1; isDHTML = 1;
      } else {
        var browserVersion = parseInt(navigator.appVersion);
        if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {
           isLayers = 1; isDHTML = 1;
        }
      }
   }

   if (xwithstyle == 1) {
      if (isID) { 
         return (document.getElementById(xobjectid).style) ; 
      } else { 
        if (isAll) { 
           return (document.all[xobjectid].style); 
        } else {
          if (isLayers) {
             return (document.layers[xobjectid]); 
          }
        }
      }
   } else {
      if (isID) { 
         return (document.getElementById(xobjectid)) ; 
      } else { 
        if (isAll) {
           return (document.all[xobjectid]);
        } else {
          if (isLayers) {
            return (document.layers[xobjectid]);
          }
        }
      }
   }
}


function chtmenushow (xevent, xobjectid) {
  var dom               = whatdom(xobjectid,0);
  if (dom == null) return;
  dom.style.top         = xevent.clientY - 10 ;
  dom.style.left        = 771 - dom.offsetWidth;
  dom.style.visibility  = "visible";
  return ;
}

function chtmenuhide (xevent, xobj1, xobj2, xobj3, xobj4, xobj5) {
  var dom = whatdom(xobj1,0);
  if (dom == null) return;

  if (typeof(dom)!="undefined" && dom!="") {
     dom.style.visibility = "hidden";
  }

  dom = whatdom(xobj2,0);
  if (dom == null) return;

  if (typeof(dom)!="undefined" && dom!="") {
     dom.style.visibility = "hidden";
  }

  dom = whatdom(xobj3,0);
  if (dom == null) return;

  if (typeof(dom)!="undefined" && dom!="") {
     dom.style.visibility = "hidden";
  }

  dom = whatdom(xobj4,0);
  if (dom == null) return;

  if (typeof(dom)!="undefined" && dom!="") {
     dom.style.visibility = "hidden";
  }

  dom = whatdom(xobj5,0);
  if (dom == null) return;

  if (typeof(dom)!="undefined" && dom!="") {
     dom.style.visibility = "hidden";
  }
}


function drawmenus () {

  document.write('<SPAN id="aboutlinks" class="dropmenu">') ;
  document.write('<a href="presentcomponents.htm">The Clarion Handy Tools</a>') ;
  document.write('<a href="aboutus.htm">The Author</a>') ;
  document.write('<a href="goodwords.htm">User Comments</a>') ;
  document.write('</SPAN>') ;
  document.write('<SPAN id="whatsnewlinks" class="dropmenu">') ;
  document.write('<a href="december2005.htm">December 2005</a>') ;
  document.write('<a href="november2005.htm">November 2005</a>') ;
  document.write('<a href="october2005.htm">October 2005</a>') ;
  document.write('<a href="september2005.htm">September 2005</a>') ;
  document.write('<a href="august2005.htm">August 2005</a>') ;
  document.write('<a href="july2005.htm">July 2005</a>') ;
  document.write('<a href="june2005.htm">June 2005</a>') ;
  document.write('<a href="may2005.htm">May 2005</a>') ;
  document.write('<a href="april2005.htm">April 2005</a>') ;
  document.write('<a href="march2005.htm">March 2005</a>') ;
  document.write('<a href="february2005.htm">February 2005</a>') ;
  document.write('<a href="january2005.htm">January 2005</a>') ;
  document.write('<a href="december2004.htm">December 2004</a>') ;
  document.write('<a href="november2004.htm">November 2004</a>') ;
  document.write('<a href="october2004.htm">October 2004</a>') ;
  document.write('<a href="september2004.htm">September 2004</a>') ;
  document.write('<a href="august2004.htm">August 2004</a>') ;
  document.write('<a href="july2004.htm">July 2004</a>') ;
  document.write('<a href="june2004.htm">June 2004</a>') ;
  document.write('<a href="may2004.htm">May 2004</a>') ;
  document.write('<a href="april2004.htm">April 2004</a>') ;
  document.write('<a href="march2004.htm">March 2004</a>') ;
  document.write('<a href="feb2004.htm">February 2004</a>') ;
  document.write('<a href="jan2004.htm">January 2004</a>') ;
  document.write('<a href="whatsnew2003.htm">All 2003</a>') ;
  document.write('</SPAN>') ;
  document.write('<SPAN id="downloadlinks" class="dropmenu">') ;
  document.write('<a href="downloads.htm">Free Downloads</a>') ;
  document.write('<a href="http://www.cwhandy.ca/LOG$" target="_blank">Subscriber Installs/Updates</a>') ;
  document.write('</SPAN>') ;
  document.write('<SPAN id="subscribelinks" class="dropmenu">') ;
  document.write('<a href="purchase.htm">Purchase Via PayPal</a>') ;
  document.write('<a href="purchaseregnow.htm">Purchase Via RegNow</a>') ;
  document.write('<a href="faqtermsofpurchase.htm">Terms Of Purchase</a>') ;
  document.write('</SPAN>') ;
  document.write('<SPAN id="supportlinks" class="dropmenu">') ;
  document.write('<a href="http://support.cwhandy.ca/" target="_blank">support.cwhandy.ca</a>') ;
  document.write('<a href="http://news.cwhandy.ca/" target="_blank">news.cwhandy.ca</a>') ;
  document.write('<a href="mailto:gcreces@gmail.com?subject=Email%20Contact%20From%20CHT%20WebSite%20Main%20Menu" target="_blank">Contact Us By Email</a>') ;
  document.write('</SPAN>') ;

}

function setgoogle (xpagetopic) {

google_ad_client    = "pub-6606432598262695";
google_ad_width     = 120;
google_ad_height    = 240;
google_ad_format    = "120x240_as";
google_color_border = "191970";
google_color_bg     = "FFFFFF";
google_color_link   = "FF9900";
google_color_url    = "0066EE";
google_color_text   = "191970";
topic               = xpagetopic.toLowerCase();

}





/* ---------------------------------------------------------------------------------------------------------- */
/* JavaScript Generated By The Clarion Handy Tools www.cwhandy.com March 16, 2004 - 11:27:43 */
/* ---------------------------------------------------------------------------------------------------------- */
