var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null
 var loaded = 0
 

// LAYER SWITCHING CODE
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  }else{
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
 }
}

function checkForm(FORM) {
  
  if (document.all) {
    Building  =	FORM.Building.value;
    Name		=	FORM.Name.value;
  
    BuildingTst =			(Building.length > 0);
    NameTst =				(Name.length > 0);
  
  

    if (!BuildingTst && !NameTst) {
      alert('Please Select a building, or proceed to Section 2 of this form.');
      FORM.Building.focus();
    } else {
      FORM.submit();
    }
  
    
  } else {

    FORM.submit();
  }
}
