function calcBAC(oz, prcAlc, weight, time, target, drunk, notdrunk, waynotdrunk, always) {
	var pBAC = Math.max((oz * prcAlc * 0.075) / weight - (time * 0.015), 0.0);
	
	if (target.hasChildNodes()) { 
		target.replaceChild(document.createTextNode("This person's blood alcohol content is " + (new Number(pBAC)).toPrecision(3) + "%."), target.firstChild);
	 } else { 
		target.appendChild(document.createTextNode("This person's blood alcohol content is " + (new Number(pBAC)).toPrecision(3) + "%."));
	}
	
	always.style.display = "block";
	if (pBAC == 0.000) {
		drunk.style.display = "none";
		notdrunk.style.display = "none";
		waynotdrunk.style.display = "block";
	} else if (pBAC < .08) {
		drunk.style.display = "none";
		notdrunk.style.display = "block";
		waynotdrunk.style.display = "none";
	} else {
		drunk.style.display = "block";
		notdrunk.style.display = "none";
		waynotdrunk.style.display = "none";
	}
}
