
More JavaScript Calculators
5 Function | Ad Calculator | Adjusted Cost Base | Advanced | Age Calculator | Airport Distance | Armor | Atmosphere | Blood Alcohol Content | Basic | Beat Counter | Best Price | Binary Converter | Body Mass Index | Bubble Sort | Simple Calculator | Calories Burned | Circle Solver | Compound Interest | Cosine | Date Difference | Day Of Week | Distance Speed Time | Dog Years | Driving Distance | Expression Solver | Factors | Fibonacci Sequence | Field Depth | Function Grapher | GPA | Graphing Function | Group Work | Horsepower | Income | Interest Rate | Kinetic Energy | Lap Time | Lcm And Gcd | Leap Year | Male Body | Miles Per Gallon | Money Counter | Parabola Grapher | Paycheck | Percent | Percent Of Increase | Periodic Table | Phone Text | Phone Bill | Polygon | Pregnancy | Prime Number | Pythagorean | Quadratic Solver | Quadratic | Radioactive | Random Distribution | Room Size | Running | Savings Estimator | Scientific | Sine | Square Root | Stock | Straight Distance | Tangent | Tax | Top Speed Rpm | Wavelength | Win Calculator | Wind Chill | World Population | Simple Multiplication
Description
Calculates an individual's blood alcohol content based on the quantity of beverages consumed, the alcohol percentage in each drink, the person's weight, and the time spent consuming the drink....View A Script Demo
Calculates an individual's blood alcohol content based on the quantity of beverages consumed, the alcohol percentage in each drink, the person's weight, and the time spent consuming the drink....View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: James P. Dildine (jpd@wlsmail.com) -->
<!-- Web Site: http://www.mste.uiuc.edu/dildine -->
<!-- Begin
function solveBAC(form) {
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 == "NaN")
mesage = "Please try again.";
if (result > 0.08)
message = "In MOST and possibly ALL states you would be considered intoxicated and arrested for DUI.";
if (result < 0.08)
message = "You are not legally intoxicated";
}
form.message.value = message;
form.bacamount.value = result + " %";
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<table>
<tr><td>
<ul>
<li>FLUID OUNCES CONSUMED<br>
(Beer ~ 12 oz. Wine Glass ~ 4 oz. 1 Shot ~ 1.5 oz)</li>
<li>YOUR WEIGHT (Lbs)</li>
<li>ALCOHOL PERCENTAGE IN BEVERAGE<br>
(Beer ~ 4-4.5% Wine ~ 15-20% 1 Shot ~ 30-50%)</li>
<li>HOURS CONSUMING DRINK</li>
</ul>
</td>
</tr>
</table>
<form method=post name=bacform>
<table border=4>
<tr>
<td align=center>
Fluid Ounces Consumed
</td>
<td align=center>
<input type=text name=ounces size=6>
</td>
<td align=center>
Percent Alcohol
</td>
<td align=center>
<input type=text name=percent size=6>
</td>
</tr>
<tr>
<td align=center>
Your Weight (Lbs)
</td>
<td align=center>
<input type=text name=weight size=6>
</td>
<td align=center>
Hours Consuming Drink
</td>
<td align=center>
<input type=text name=hours size=6>
</td>
</tr>
<tr>
<td colspan=4 align=center>
<input type=button name=bac value="Calculate Your BAC %" onClick="javascript:solveBAC(this.form)">
</td>
</tr>
<tr>
<td align=center>
BAC Percentage
</td>
<td colspan=3 align=center>
<input type=text name=bacamount size=21>
</td>
</tr>
<tr>
<td align=center>
BAC Analysis
</td>
<td colspan=3 align=center>
<textarea name=message rows=3 cols=35 wrap=virtual></textarea>
</td>
</tr>
</table>
</form>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: James P. Dildine (jpd@wlsmail.com) -->
<!-- Web Site: http://www.mste.uiuc.edu/dildine -->
<!-- Begin
function solveBAC(form) {
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 == "NaN")
mesage = "Please try again.";
if (result > 0.08)
message = "In MOST and possibly ALL states you would be considered intoxicated and arrested for DUI.";
if (result < 0.08)
message = "You are not legally intoxicated";
}
form.message.value = message;
form.bacamount.value = result + " %";
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<table>
<tr><td>
<ul>
<li>FLUID OUNCES CONSUMED<br>
(Beer ~ 12 oz. Wine Glass ~ 4 oz. 1 Shot ~ 1.5 oz)</li>
<li>YOUR WEIGHT (Lbs)</li>
<li>ALCOHOL PERCENTAGE IN BEVERAGE<br>
(Beer ~ 4-4.5% Wine ~ 15-20% 1 Shot ~ 30-50%)</li>
<li>HOURS CONSUMING DRINK</li>
</ul>
</td>
</tr>
</table>
<form method=post name=bacform>
<table border=4>
<tr>
<td align=center>
Fluid Ounces Consumed
</td>
<td align=center>
<input type=text name=ounces size=6>
</td>
<td align=center>
Percent Alcohol
</td>
<td align=center>
<input type=text name=percent size=6>
</td>
</tr>
<tr>
<td align=center>
Your Weight (Lbs)
</td>
<td align=center>
<input type=text name=weight size=6>
</td>
<td align=center>
Hours Consuming Drink
</td>
<td align=center>
<input type=text name=hours size=6>
</td>
</tr>
<tr>
<td colspan=4 align=center>
<input type=button name=bac value="Calculate Your BAC %" onClick="javascript:solveBAC(this.form)">
</td>
</tr>
<tr>
<td align=center>
BAC Percentage
</td>
<td colspan=3 align=center>
<input type=text name=bacamount size=21>
</td>
</tr>
<tr>
<td align=center>
BAC Analysis
</td>
<td colspan=3 align=center>
<textarea name=message rows=3 cols=35 wrap=virtual></textarea>
</td>
</tr>
</table>
</form>
</center>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

