//NavCell RollOver Function
function navMouseOverHighlight(i) {
  i.style.backgroundColor='#ffcc66';
}

function navMouseOutReg(i) {
  i.style.backgroundColor='#fff1e9';
}

function subnavMouseOverHighlight(i) {
  i.style.backgroundColor='#ffcc66';
}

function subnavMouseOutReg(i) {
  i.style.backgroundColor='#fae3d6';
}

function XsubnavMouseOverHighlight(i) {
  i.style.backgroundColor='#ffcc66';
}

function XsubnavMouseOutReg(i) {
  i.style.backgroundColor='#faccb2';
}

//BAC calculator
function solveBAC(form) {
var message;
var ounces = eval(form.ounces.value);
var percent = eval(form.percent.value);
var weight = eval(form.weight.value);
var hours = eval(form.hours.value);

var result = (ounces * percent * 0.075 / weight) - (hours * 0.015);
if (result < 0) {
message = "There is a negligible amount of alcohol in your system.  You are not legally intoxicated.";
result = "-- neglible amount --";
}
else {
if (result > 0.35)
  message = "Call the hospital if this is your alcohol level. You are probably close to a coma or death.";
    else if (result > 0.08)
      message = "In MOST and possibly ALL states you would be considered intoxicated and arrested for DUI if driving.";
        else if (result < 0.08)
        message = "You are below the legal limit of most states.  However, you can still be charged with DUI / DWI if your driving is impaired at this alcohol level.";
else message = "Enter all information before calculating.";
       }
form.message.value = message;
form.bacamount.value = result + " %";
}

//Short form check box
function CheckCheckBox(frm)
  {
    if (!frm.CheckForm.checked)
      frm.CheckForm.focus()
  }