
// -------------------------------------------------------------------------
// personal.js -- Global Javascript functions for the recreation section
// Created 5-23-2000      Last modified 5-23-2000
// bill@nytebyte.com   Nytebyte Visual Development
// -------------------------------------------------------------------------

//global variables
 // var layerRef="null", layerStyleRef="null", styleSwitch="null";
 var origMsg = "Watch this space for helpful navigation tips!";
 var msg = origMsg;
 var ok = 0;

   //SET FORM VARIABLES: Screened for version 4.0 or higher of Netscape and MSIE
    var bName = navigator.appName;
    var bVer  = parseInt(navigator.appVersion);
     if (  (bVer >= 4) && ( (bName == "Netscape") || (bName == "Microsoft Internet Explorer")  )
        ) {   ok = 1;   }

 function init(){
       // if (navigator.appName == "Netscape") {
       //         layerStyleRef="layer.";
       //         layerRef="document.layers";
       //         styleSwitch="";
       // }
       // else {
       //         layerStyleRef="layer.style.";
       //         layerRef="document.all";
       //         styleSwitch=".style";
       // }
	   return false;
 }

function newWindow(url, windowName){
     open(url, windowName, 'scrollbars=1,resizable=1,width=600,height=400');
}

 function showLayer(layerName){
      //  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible";');
       if (document.getElementById) {
		 var h = document.getElementById(layerName);
         h.style.visibility='visible';
       }
 }

 function hideLayer(layerName){
       // eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden";');
       if (document.getElementById) {
		 var h = document.getElementById(layerName);
         h.style.visibility='hidden';
       }
 }

// FOR THE WORDGAME PAGE ONLY -------------------------------------------

  function checkname(form) {
    if (form.name.value == "") {
        var msg = 'Please enter a name. It doesn\'t \n' +
                  'even have to be a real name, just anything.'
        alert(msg);
        form.name.focus();
    }
    else { form.submit(); }
  }
