<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript">
function calculate(){
var f = document.form1;
var first = f.t1.value;
var second = f.t2.value;
var third = f.t3.value;
var fourth = parseFloat(first) + parseFloat(second) + parseFloat(third);
f.t4.value = fourth;
f.totalPrice.value = (fourth * 18.95).toFixed(2);
}
function calculate1(){
var f = document.form;
var first = f.t1a.value;
var second = f.t2a.value;
var third = f.t3a.value;
var fourth = parseFloat(first) + parseFloat(second) + parseFloat(third);
f.t4a.value = fourth;
f.totalPrice1.value = (fourth * 18.95).toFixed(2);
}
function totalprice(){
var a = document.form2
var totala = f.totalPrice.value;
var totalb = f.totalPrice.value;
var i = parseInt(totala) + parseInt(totalb)
f.completeTotal.value = i;
}
</script>
</head>
<body>
<form name="form1"><input type="text" name="t1" value=".0"><input type="text" name="t2" value="0"><input type="text" name="t3" value="0"><input type="text" name="t4">
<INPUT type="text" name="totalPrice" onFocus="document.form1.totalPrice.blur()" readonly="true">
<INPUT type="button" value="calculate" onClick="return calculate()">
</form>
<hr width="720">
<form name="form">
<br>
<input type="text" name="t1a" value=".0"><input type="text" name="t2a" value="0"><input type="text" name="t3a" value="0"><input type="text" name="t4a">
<INPUT type="text" name="totalPrice1" onFocus="document.form1.totalPrice1.blur()" readonly="true">
<INPUT type="button" value="calculate" onClick="return calculate1()">
</form>
<hr>
<br>
<form name="form2">
<INPUT type="text" name="completeTotal" onFocus="document.form1.completeTotal.blur()" readonly="true">
<INPUT type="button" value="totalprice" onClick="return totalprice()">
</form>
</body>
</html>
<html>
<head>
<title>Untitled</title>
<script language="JavaScript">
function calculate(){
var f = document.form1;
var first = f.t1.value;
var second = f.t2.value;
var third = f.t3.value;
var fourth = parseFloat(first) + parseFloat(second) + parseFloat(third);
f.t4.value = fourth;
f.totalPrice.value = (fourth * 18.95).toFixed(2);
}
function calculate1(){
var f = document.form;
var first = f.t1a.value;
var second = f.t2a.value;
var third = f.t3a.value;
var fourth = parseFloat(first) + parseFloat(second) + parseFloat(third);
f.t4a.value = fourth;
f.totalPrice1.value = (fourth * 18.95).toFixed(2);
}
function totalprice(){
var a = document.form2
var totala = f.totalPrice.value;
var totalb = f.totalPrice.value;
var i = parseInt(totala) + parseInt(totalb)
f.completeTotal.value = i;
}
</script>
</head>
<body>
<form name="form1"><input type="text" name="t1" value=".0"><input type="text" name="t2" value="0"><input type="text" name="t3" value="0"><input type="text" name="t4">
<INPUT type="text" name="totalPrice" onFocus="document.form1.totalPrice.blur()" readonly="true">
<INPUT type="button" value="calculate" onClick="return calculate()">
</form>
<hr width="720">
<form name="form">
<br>
<input type="text" name="t1a" value=".0"><input type="text" name="t2a" value="0"><input type="text" name="t3a" value="0"><input type="text" name="t4a">
<INPUT type="text" name="totalPrice1" onFocus="document.form1.totalPrice1.blur()" readonly="true">
<INPUT type="button" value="calculate" onClick="return calculate1()">
</form>
<hr>
<br>
<form name="form2">
<INPUT type="text" name="completeTotal" onFocus="document.form1.completeTotal.blur()" readonly="true">
<INPUT type="button" value="totalprice" onClick="return totalprice()">
</form>
</body>
</html>