/* -------------------------------------------------------- */
/*                                                          */
/* Javascript source for Va-Hi.com                          */
/*                                                          */
/* Original:  Ronnie T. Moore, Editor   		    */
/* Web Site:  The JavaScript Source     		    */
/*                                                          */
/* This script and many more are available free online at   */
/* The JavaScript Source!! http://javascript.internet.com   */
/*                                                          */
/* Modified by:                                             */
/*                                                          */
/*   Michael T. Patterson                                   */
/*   Virginia-Highland Software, Inc.                       */
/*   http://www.va-hi.com                                   */
/*                                                          */
/* Version 1.0                                              */
/* August 2000                                              */
/*                                                          */
/* -------------------------------------------------------- */

// Comments about the code:
//
// Determine if CSS is enabled on the visiting browser.  There is a big catch
// here: if both JavaScript and CSS are disabled, this script will never run!
//
// How should we look for the (CSS) DIV defined in the html code?
// Netscape will look with:  document.testCssOn
// Internet Explorer will look with:  testCssOn
//
// Caution!  Object "testCssOn" MUST be defined within the html page.
//           This object does not represent a predefined property or method.
//
//           <div id="testCssOn" style="position:absolute;"></div>

function checkCSS() {

  if (document.layers) {
   checkCss = document.testCssOn;
  } else {
   checkCss = testCssOn;
  }

  var cssEnabled = (checkCss) ? true : false;

  if ( ! cssEnabled ) {
    window.alert("Your web brower does not have Style Sheets enabled!\n"
                +"As a result, the pages in this web site might look rather strange.\n"
                +"Please enable Style Sheets in your browser by performing the following steps:\n\n"
                +"In Netscape, open this menu: Edit/Preferences/Advanced, and then enable Style Sheets.\n\n"
                +"In Internet Explorer, open this menu: Tools/Internet Options/Accessibility, and\n"
                +"then enable the formatting options.\n\n"
                +"Lastly, press 'Reload' to reload this page.");
  }

}  // End of checkCSS function.

