Hello,
I am building a website for my mother's cafe and I need to create a good form to order food online. I made one menu (www.aclsandvic.com/siparis.com) but the email that it sends is way to long. I tried making a new one and I like the results of the email but I soon found out that when the total amount owing is shown, it does not add the descimal places.

Here is the order page code. You can see it at www.aclsandvic.com/test.com
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>

	<head>
		<title></title>
	</head>
	<body>

<form name=orderform action="confirm-order.html">
 <table border="0" cellpadding="4" cellspacing="0">
<tr>
<th width="269"  height="33" bgcolor="#66FF66" colspan="3">Ürün</th>
<th width="140" align="center" height="33" bgcolor="#66FF66">Fiyat</th>
</tr>

<tr>
<td bgcolor="#66FF33">
<input type=checkbox name=item1A value="Domates
Çorba*2.25$"></td>
<td bgcolor="#66FF33">Domates
Çorba</td>
<td bgcolor="#66FF33" align="center">2.25 YTL</td>
</tr>

<tr>
<td bgcolor="#66FF33">
<input type=checkbox name=item1A value="Süzme
Mercimek
Çorba*2.00$"></td>
<td bgcolor="#66FF33">Süzme
Mercimek
Çorba</td>
<td bgcolor="#66FF33" align="center">2.00 YTL</td>
</tr>

<tr>
<td colspan=4 align=center>
<input type=submit value="Order">
</td>
</tr>
</table>
</form>


	</body>
</html>
Here is the confirm page. This is where the problem is i think.
www.aclsandvic.com/confirm-order.html
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<HEAD>
<title>ACL</title>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function decodeString() {
valNum = new Array();
valData = new Array();
var string, length, dataCount, orderData, grandTotal;
string = "" + unescape(location.search);
string = string.substring(1,string.length);
length = location.search.length;
orderData = "";
dataCount = 1;
for (var c = 0; c < string.length; c++)
if (string.charAt(c).indexOf("&") != -1) dataCount++;

orderData = "<table border=1 width=400>";
orderData += "<tr><td>Item</td><td>Description</td><td>Cost</td></tr>";
grandTotal = 0;
for (var i = 0; i < dataCount; i++)
{
valNum[i] = string.substring(0,string.indexOf("="));
string = string.substring(string.indexOf("=")+1,string.length);
if (i == dataCount-1) valData[i] = string;
else valData[i] = string.substring(0,string.indexOf("&"));
ampd = valData[i].indexOf("&");
pipe = valData[i].indexOf("-");
star = valData[i].indexOf("*");
line = valData[i].indexOf("$");
itemnum = string.substring(0,pipe);
itemdsc = string.substring(pipe+1,star);
itemcst = string.substring(star+1,line);
string = string.substring(ampd+1,string.length);
  
orderData += "<tr>";
orderData += "<input type=hidden name=item" + (i+1) + "num value='" + itemnum + "'>";
orderData += "<input type=hidden name=item" + (i+1) + "dsc value='" + itemdsc + "'>";
orderData += "<input type=hidden name=item" + (i+1) + "cst value='$" + itemcst + "'>";
orderData += "<td>" + itemnum + "</td>";
orderData += "<td>" + itemdsc + "</td>";
orderData += "<td>" + itemcst + "</td>";
orderData += "</tr>";
grandTotal += parseInt(itemcst);
}
orderData += "<tr>";
orderData += "<td colspan=2 align=center>Total</td><td>" + grandTotal + ".00</td>";
orderData += "</tr>";
orderData += "<tr>";
orderData += "<td colspan=3 align=center><input type=submit value='Confirm Order!'> or <a href='javascript:history.go(-1)'>Go Back</a></td>";
orderData += "</tr>";
orderData += "<input type=hidden name=grandtotal value='$" + grandTotal + ".00'>";
orderData += "</table>";
document.write(orderData);
}

function openThanks() {
window.open("confirm-order-thanks.html");
}
// End -->
</script>

</HEAD>
	<body>
<form method=post action="gdform.asp" name="emailform">
<input type=hidden name=subject value="** ACL **">

<center>
<script language="JavaScript">
<!-- Begin
decodeString();
// End -->
</script>
</center>
</form>

	</body>
</html>