//date

today = new Date();
day = today.getDate();
monthint = today.getMonth();
y = today.getYear();
y += (y < 1900) ? 1900 : 0;
allmonths = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
datestring = allmonths[monthint]+" "+day+", "+y;

//date end

//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 + " %";
}

//end BAC calculator

//Short form check box
function CheckCheckBox(frm)
  {
    if (!frm.CheckForm.checked)
      frm.CheckForm.focus()
  }

//end check box