function rnSubTotal(form) {

	var Sub_Total = document.EventForm.Sub_Total; // Field where the number appears

	var rlength = 2; // The number of decimal places to round to

	var newnumber = Math.round(Sub_Total.value*Math.pow(10,rlength))/Math.pow(10,rlength);

	Sub_Total.value = newnumber;

}

function rnSalesTax(form) {

	var Sales_Tax = document.EventForm.Sales_Tax;

	var rlength = 2;

	var newtax = Math.round(Sales_Tax.value*Math.pow(10,rlength))/Math.pow(10,rlength);

	Sales_Tax.value = newtax

}

function rnGrandTotal(form) {

	var Grand_Total = document.EventForm.Grand_Total;

	var rlength = 2;

	var newgrand = Math.round(Grand_Total.value*Math.pow(10,rlength))/Math.pow(10,rlength);

	Grand_Total.value = newgrand;

}

function rnDeposit(form) {

	var Security_Deposit = document.EventForm.Security_Deposit;

	var rlength = 2;

	var newdeposit = Math.round(Security_Deposit.value*Math.pow(10,rlength))/Math.pow(10,rlength);

	Security_Depsoit.value = newdeposit;

}

function rnBalance(form) {

	var Balance_txt = document.EventForm.Balance_txt;

	var rlength = 2;

	var newbalance = Math.round(Balance_txt.value*Math.pow(10,rlength))/Math.pow(10,rlength);

	Balance_txt.value = newbalance

}

function SubTotal(form) {

a=eval(form.Product_Cost.value)

b=eval(form.Num_Players.value)

c=a*b

form.Sub_Total.value=c

}

function SalesTax(form) {

a=eval(form.Sub_Total.value)

b=eval(form.Tax_Rate.value)

c=a*b

form.Sales_Tax.value=c

}

function GrandTotal(form) {

a=eval(form.Sub_Total.value)

b=eval(form.Sales_Tax.value)

c=eval(form.Shooting_Fee.value)

d=eval(form.Extra_Items.value)

e=a+b+c+d

form.Grand_Total.value=e

}

function SecurityDeposit(form) {

a=eval(form.Grand_Total.value)

b=(".25")

c=a*b

form.Security_Deposit.value=c

}

function Balance(form) {

a=eval(form.Grand_Total.value)

b=eval(form.Security_Deposit.value)

c=a-b

form.Balance_txt.value=c

}


