<!--
function ver(v){
	return isNaN(v) || v=="";
}
function calc1(){
	f=document.calcfrm;
	if (ver(f.tf1.value) || ver(f.tf2.value)){
		alert("Need numeric values in fields.");
		return;
	}
	x=(f.tf2.value/60)*f.tf1.value;
	x=Math.ceil(x*100)/100;
	f.tf7.value=f.tf4.value=f.tf3.value=x;
}
function calc2(){
	f=document.calcfrm;
	if (ver(f.tf4.value) || ver(f.tf5.value)){
		alert("Need numeric values in fields.");
		return;
	}
	x=f.tf4.value*f.tf5.value;
	x=Math.ceil(x*100)/100;
	f.tf6.value=x;
}
function calc3(){
	f=document.calcfrm;
	if (ver(f.tf7.value) || ver(f.tf8.value)){
		alert("Need numeric values in fields.");
		return;
	}
	if (f.tf8.value==0){
		alert("Can't divide by zero.");
		return;
	}
	x=f.tf7.value/f.tf8.value;
	x=Math.ceil(x*100)/100;
	f.tf9.value=x;
}
myOW=window.opener.location.toString();
myOW=myOW.replace("fleetfueling.php","");

//-->